aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/ObjectStore/AzureTest.php
blob: 5d4234532a66aa16b64ecac24d0565052e092f6e (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
<?php
/**
 * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */

namespace Test\Files\ObjectStore;

use OC\Files\ObjectStore\Azure;

/**
 * @group PRIMARY-azure
 */
class AzureTest extends ObjectStoreTest {
	protected function getInstance() {
		$config = \OC::$server->getConfig()->getSystemValue('objectstore');
		if (!is_array($config) || $config['class'] !== 'OC\\Files\\ObjectStore\\Azure') {
			$this->markTestSkipped('objectstore not configured for azure');
		}

		return new Azure($config['arguments']);
	}

	public function testFseekSize() {
		$this->markTestSkipped('azure does not support seeking at the moment');
	}
}