2014-06-13 13:27:02 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2024-05-10 15:09:14 +02:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2014-06-13 13:27:02 +02:00
|
|
|
*/
|
|
|
|
|
2016-05-20 15:38:20 +02:00
|
|
|
namespace Test\Files\ObjectStore;
|
2014-06-13 13:27:02 +02:00
|
|
|
|
2016-05-19 08:41:01 +02:00
|
|
|
use OC\Files\ObjectStore\Swift;
|
2014-06-13 13:27:02 +02:00
|
|
|
|
2018-02-07 17:16:54 +01:00
|
|
|
/**
|
|
|
|
* @group PRIMARY-swift
|
|
|
|
*/
|
2016-08-08 15:13:44 +02:00
|
|
|
class SwiftTest extends ObjectStoreTest {
|
2015-09-28 16:38:01 +02:00
|
|
|
/**
|
2016-08-08 15:13:44 +02:00
|
|
|
* @return \OCP\Files\ObjectStore\IObjectStore
|
2015-09-28 16:38:01 +02:00
|
|
|
*/
|
2016-08-08 15:13:44 +02:00
|
|
|
protected function getInstance() {
|
2015-09-28 16:38:01 +02:00
|
|
|
$config = \OC::$server->getConfig()->getSystemValue('objectstore');
|
2016-08-08 15:13:44 +02:00
|
|
|
if (!is_array($config) || $config['class'] !== 'OC\\Files\\ObjectStore\\Swift') {
|
|
|
|
$this->markTestSkipped('objectstore not configured for swift');
|
2014-06-27 12:14:31 +02:00
|
|
|
}
|
2014-09-08 12:53:42 +02:00
|
|
|
|
2016-08-08 15:13:44 +02:00
|
|
|
return new Swift($config['arguments']);
|
2014-09-08 12:53:42 +02:00
|
|
|
}
|
2023-10-29 01:16:46 +02:00
|
|
|
|
|
|
|
public function testFseekSize(): void {
|
|
|
|
$this->markTestSkipped('Swift does not support seeking at the moment');
|
|
|
|
}
|
2014-06-13 13:27:02 +02:00
|
|
|
}
|