mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Run s3 tests again
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
506265a984
commit
3f44fd00e2
2 changed files with 3 additions and 6 deletions
|
|
@ -2124,6 +2124,7 @@ steps:
|
|||
- name: object-store
|
||||
image: ghcr.io/nextcloud/continuous-integration-php7.4:php7.4-3
|
||||
environment:
|
||||
OBJECT_STORE: s3
|
||||
CODECOV_TOKEN:
|
||||
from_secret: CODECOV_TOKEN
|
||||
commands:
|
||||
|
|
@ -2157,6 +2158,7 @@ steps:
|
|||
- name: object-store
|
||||
image: ghcr.io/nextcloud/continuous-integration-php7.4:php7.4-3
|
||||
environment:
|
||||
OBJECT_STORE: azure
|
||||
CODECOV_TOKEN:
|
||||
from_secret: CODECOV_TOKEN
|
||||
commands:
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ class NonSeekableStream extends Wrapper {
|
|||
class S3Test extends ObjectStoreTest {
|
||||
protected function getInstance() {
|
||||
$config = \OC::$server->getConfig()->getSystemValue('objectstore');
|
||||
if (!is_array($config) || $config['class'] !== 'OC\\Files\\ObjectStore\\S3') {
|
||||
if (!is_array($config) || $config['class'] !== S3::class) {
|
||||
$this->markTestSkipped('objectstore not configured for s3');
|
||||
}
|
||||
|
||||
|
|
@ -70,11 +70,6 @@ class S3Test extends ObjectStoreTest {
|
|||
}
|
||||
|
||||
public function testUploadNonSeekable() {
|
||||
$config = \OC::$server->getConfig()->getSystemValue('objectstore');
|
||||
if (!is_array($config) || $config['class'] !== 'OC\\Files\\ObjectStore\\S3') {
|
||||
$this->markTestSkipped('objectstore not configured for s3');
|
||||
}
|
||||
|
||||
$s3 = $this->getInstance();
|
||||
|
||||
$s3->writeObject('multiparttest', NonSeekableStream::wrap(fopen(__FILE__, 'r')));
|
||||
|
|
|
|||
Loading…
Reference in a new issue