2021-10-14 11:28:32 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
/**
|
2024-06-06 03:55:47 -04:00
|
|
|
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2021-10-14 11:28:32 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace OCA\Files_External\Tests\Storage;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @group DB
|
2025-06-06 08:06:57 -04:00
|
|
|
* @group S3
|
2021-10-14 11:28:32 -04:00
|
|
|
*/
|
|
|
|
|
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");
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-06-07 10:35:46 -04:00
|
|
|
|
|
|
|
|
public function testCopyOverWriteDirectory(): void {
|
|
|
|
|
if (isset($this->config['minio'])) {
|
|
|
|
|
$this->markTestSkipped('MinIO has a bug with batch deletion on versioned storages, see https://github.com/minio/minio/issues/21366');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
parent::testCopyOverWriteDirectory();
|
|
|
|
|
}
|
2021-10-14 11:28:32 -04:00
|
|
|
}
|