Browse Source
test: only skip tests failing on localstack for localstack
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/53378/head
Ferdinand Thiessen
7 months ago
No known key found for this signature in database
GPG Key ID: 45FAE7268762B400
3 changed files with
11 additions and
4 deletions
-
.github/workflows/files-external-s3.yml
-
apps/files_external/tests/Storage/Amazons3MultiPartTest.php
-
apps/files_external/tests/Storage/Amazons3Test.php
|
|
|
@ -146,7 +146,7 @@ jobs: |
|
|
|
env: |
|
|
|
SERVICES: s3 |
|
|
|
DEBUG: 1 |
|
|
|
image: localstack/localstack@sha256:b52c16663c70b7234f217cb993a339b46686e30a1a5d9279cb5feeb2202f837c # v4.4.0 |
|
|
|
image: localstack/localstack@sha256:9d4253786e0effe974d77fe3c390358391a56090a4fff83b4600d8a64404d95d # v4.5.0 |
|
|
|
ports: |
|
|
|
- "4566:4566" |
|
|
|
|
|
|
|
@ -173,7 +173,7 @@ jobs: |
|
|
|
composer install |
|
|
|
./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-host=127.0.0.1 --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password |
|
|
|
./occ app:enable --force files_external |
|
|
|
echo "<?php return ['run' => true,'hostname' => 'localhost','key' => 'ignored','secret' => 'ignored', 'bucket' => 'bucket', 'port' => 4566, 'use_ssl' => false, 'autocreate' => true, 'use_path_style' => true];" > apps/files_external/tests/config.amazons3.php |
|
|
|
echo "<?php return ['run' => true, 'localstack' => true, 'hostname' => 'localhost','key' => 'ignored','secret' => 'ignored', 'bucket' => 'bucket', 'port' => 4566, 'use_ssl' => false, 'autocreate' => true, 'use_path_style' => true];" > apps/files_external/tests/config.amazons3.php |
|
|
|
|
|
|
|
- name: PHPUnit |
|
|
|
run: | |
|
|
|
|
|
|
|
@ -48,6 +48,10 @@ class Amazons3MultiPartTest extends \Test\Files\Storage\Storage { |
|
|
|
} |
|
|
|
|
|
|
|
public function testHashInFileName(): void { |
|
|
|
$this->markTestSkipped('Localstack has a bug with hashes in filename'); |
|
|
|
if (isset($this->config['localstack'])) { |
|
|
|
$this->markTestSkipped('Localstack has a bug with hashes in filename'); |
|
|
|
} |
|
|
|
|
|
|
|
parent::testHashInFileName(); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -46,6 +46,9 @@ class Amazons3Test extends \Test\Files\Storage\Storage { |
|
|
|
} |
|
|
|
|
|
|
|
public function testHashInFileName(): void { |
|
|
|
$this->markTestSkipped('Localstack has a bug with hashes in filename'); |
|
|
|
if (isset($this->config['localstack'])) { |
|
|
|
$this->markTestSkipped('Localstack has a bug with hashes in filename'); |
|
|
|
} |
|
|
|
parent::testHashInFileName(); |
|
|
|
} |
|
|
|
} |