VersionedAmazonS3Test.php 636 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\Files_External\Tests\Storage;
  8. /**
  9. * @group DB
  10. */
  11. class VersionedAmazonS3Test extends Amazons3Test {
  12. protected function setUp(): void {
  13. parent::setUp();
  14. try {
  15. $this->instance->getConnection()->putBucketVersioning([
  16. 'Bucket' => $this->instance->getBucket(),
  17. 'VersioningConfiguration' => [
  18. 'Status' => 'Enabled',
  19. ],
  20. ]);
  21. } catch (\Exception $e) {
  22. $this->markTestSkipped("s3 backend doesn't seem to support versioning");
  23. }
  24. }
  25. }