Skip to content

Commit ad8576f

Browse files
Merge pull request nextcloud#57185 from nextcloud/fix/fix-files-external-tests
2 parents 6eb8e8d + 663f682 commit ad8576f

File tree

10 files changed

+16
-10
lines changed

10 files changed

+16
-10
lines changed

.github/workflows/files-external-smb.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@ jobs:
5353

5454
services:
5555
samba:
56-
image: ghcr.io/nextcloud/continuous-integration-samba:latest # zizmor: ignore[unpinned-images]
56+
image: ghcr.io/servercontainers/samba:smbd-only-a3.18.0-s4.18.2-r0
57+
env:
58+
ACCOUNT_test: test
59+
UID_test: 1000
60+
SAMBA_VOLUME_CONFIG_test: "[public]; path=/tmp; valid users = test; guest ok = no; read only = no; browseable = yes"
61+
options: >-
62+
--health-cmd=true
5763
ports:
5864
- 445:445
5965

apps/files_external/tests/Storage/Amazons3MultiPartTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Amazons3MultiPartTest extends \Test\Files\Storage\Storage {
2525
protected function setUp(): void {
2626
parent::setUp();
2727

28-
$this->loadConfig('files_external/tests/config.amazons3.php');
28+
$this->loadConfig(__DIR__ . '/../config.amazons3.php');
2929

3030
$this->instance = new AmazonS3($this->config + [
3131
'putSizeLimit' => 1,

apps/files_external/tests/Storage/Amazons3Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Amazons3Test extends \Test\Files\Storage\Storage {
2626
protected function setUp(): void {
2727
parent::setUp();
2828

29-
$this->loadConfig('files_external/tests/config.amazons3.php');
29+
$this->loadConfig(__DIR__ . '/../config.amazons3.php');
3030
$this->instance = new AmazonS3($this->config);
3131
}
3232

apps/files_external/tests/Storage/FtpTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected function setUp(): void {
2424
parent::setUp();
2525

2626
$id = $this->getUniqueID();
27-
$this->loadConfig('files_external/tests/config.ftp.php');
27+
$this->loadConfig(__DIR__ . '/../config.ftp.php');
2828

2929
$rootInstance = new FTP($this->config);
3030
$rootInstance->mkdir($id);

apps/files_external/tests/Storage/OwncloudTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected function setUp(): void {
2424
parent::setUp();
2525

2626
$id = $this->getUniqueID();
27-
$this->loadConfig('files_external/tests/config.php');
27+
$this->loadConfig(__DIR__ . '/../config.php');
2828
$this->config['owncloud']['root'] .= '/' . $id; //make sure we have an new empty folder to work in
2929
$this->instance = new OwnCloud($this->config['owncloud']);
3030
$this->instance->mkdir('/');

apps/files_external/tests/Storage/SFTP_KeyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected function setUp(): void {
2424
parent::setUp();
2525

2626
$id = $this->getUniqueID();
27-
$this->loadConfig('files_external/tests/config.php');
27+
$this->loadConfig(__DIR__ . '/../config.php');
2828
// Make sure we have an new empty folder to work in
2929
$this->config['sftp_key']['root'] .= '/' . $id;
3030
$this->instance = new SFTP_Key($this->config['sftp_key']);

apps/files_external/tests/Storage/SftpTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function setUp(): void {
2828
parent::setUp();
2929

3030
$id = $this->getUniqueID();
31-
$this->loadConfig('files_external/tests/config.sftp.php');
31+
$this->loadConfig(__DIR__ . '/../config.sftp.php');
3232
$this->config['root'] .= '/' . $id; //make sure we have an new empty folder to work in
3333
$this->instance = new SFTP($this->config);
3434
$this->instance->mkdir('/');

apps/files_external/tests/Storage/SmbTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function setUp(): void {
3232
parent::setUp();
3333

3434
$id = $this->getUniqueID();
35-
$this->loadConfig('files_external/tests/config.smb.php');
35+
$this->loadConfig(__DIR__ . '/../config.smb.php');
3636
if (substr($this->config['root'], -1, 1) != '/') {
3737
$this->config['root'] .= '/';
3838
}

apps/files_external/tests/Storage/SwiftTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class SwiftTest extends \Test\Files\Storage\Storage {
2929
protected function setUp(): void {
3030
parent::setUp();
3131

32-
$this->loadConfig('files_external/tests/config.swift.php');
32+
$this->loadConfig(__DIR__ . '/../config.swift.php');
3333
$this->instance = new Swift($this->config);
3434
}
3535

apps/files_external/tests/Storage/WebdavTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected function setUp(): void {
2727
parent::setUp();
2828

2929
$id = $this->getUniqueID();
30-
$this->loadConfig('files_external/tests/config.webdav.php');
30+
$this->loadConfig(__DIR__ . '/../config.webdav.php');
3131
if (isset($this->config['wait'])) {
3232
$this->waitDelay = $this->config['wait'];
3333
}

0 commit comments

Comments
 (0)