blob: 3f919c0dd4885d52188a43f056cfe79a059aa344 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<?php
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace Test\Files\ObjectStore;
use OC\Files\ObjectStore\Swift;
use OCP\Files\ObjectStore\IObjectStore;
use OCP\IConfig;
use OCP\Server;
/**
* @group PRIMARY-swift
*/
class SwiftTest extends ObjectStoreTestCase {
/**
* @return IObjectStore
*/
protected function getInstance() {
$config = Server::get(IConfig::class)->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');
}
}
|