0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-05-22 14:01:44 +00:00
nextcloud_server/tests/lib/Files/ObjectStore/SwiftTest.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
815 B
PHP
Raw Normal View History

2014-06-13 13:27:02 +02:00
<?php
/**
* 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
*/
namespace Test\Files\ObjectStore;
2014-06-13 13:27:02 +02:00
use OC\Files\ObjectStore\Swift;
2014-06-13 13:27:02 +02:00
/**
* @group PRIMARY-swift
*/
class SwiftTest extends ObjectStoreTest {
/**
* @return \OCP\Files\ObjectStore\IObjectStore
*/
protected function getInstance() {
$config = \OC::$server->getConfig()->getSystemValue('objectstore');
if (!is_array($config) || $config['class'] !== 'OC\\Files\\ObjectStore\\Swift') {
$this->markTestSkipped('objectstore not configured for swift');
}
return new Swift($config['arguments']);
}
public function testFseekSize(): void {
$this->markTestSkipped('Swift does not support seeking at the moment');
}
2014-06-13 13:27:02 +02:00
}