You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nextcloud-server/apps/files_external/tests/Storage/VersionedAmazonS3Test.php

28 lines
636 B

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Files_External\Tests\Storage;
/**
* @group DB
*/
class VersionedAmazonS3Test extends Amazons3Test {
protected function setUp(): void {
parent::setUp();
try {
$this->instance->getConnection()->putBucketVersioning([
'Bucket' => $this->instance->getBucket(),
'VersioningConfiguration' => [
'Status' => 'Enabled',
],
]);
} catch (\Exception $e) {
$this->markTestSkipped("s3 backend doesn't seem to support versioning");
}
}
}