1
0

SwiftTest.php 815 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace Test\Files\ObjectStore;
  8. use OC\Files\ObjectStore\Swift;
  9. /**
  10. * @group PRIMARY-swift
  11. */
  12. class SwiftTest extends ObjectStoreTest {
  13. /**
  14. * @return \OCP\Files\ObjectStore\IObjectStore
  15. */
  16. protected function getInstance() {
  17. $config = \OC::$server->getConfig()->getSystemValue('objectstore');
  18. if (!is_array($config) || $config['class'] !== 'OC\\Files\\ObjectStore\\Swift') {
  19. $this->markTestSkipped('objectstore not configured for swift');
  20. }
  21. return new Swift($config['arguments']);
  22. }
  23. public function testFseekSize(): void {
  24. $this->markTestSkipped('Swift does not support seeking at the moment');
  25. }
  26. }