2018-06-04 08:17:49 -04:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2018-06-04 08:17:49 -04:00
|
|
|
/**
|
2024-05-10 09:09:14 -04:00
|
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2018-06-04 08:17:49 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace Test\Files\ObjectStore;
|
|
|
|
|
|
|
|
|
|
use OC\Files\ObjectStore\Azure;
|
2025-06-12 12:31:58 -04:00
|
|
|
use OCP\IConfig;
|
|
|
|
|
use OCP\Server;
|
2018-06-04 08:17:49 -04:00
|
|
|
|
2025-10-20 19:52:40 -04:00
|
|
|
#[\PHPUnit\Framework\Attributes\Group('PRIMARY-azure')]
|
2025-05-12 10:17:59 -04:00
|
|
|
class AzureTest extends ObjectStoreTestCase {
|
2018-06-04 08:17:49 -04:00
|
|
|
protected function getInstance() {
|
2025-06-12 12:31:58 -04:00
|
|
|
$config = Server::get(IConfig::class)->getSystemValue('objectstore');
|
2018-06-04 08:17:49 -04:00
|
|
|
if (!is_array($config) || $config['class'] !== 'OC\\Files\\ObjectStore\\Azure') {
|
|
|
|
|
$this->markTestSkipped('objectstore not configured for azure');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return new Azure($config['arguments']);
|
|
|
|
|
}
|
2022-08-26 09:59:29 -04:00
|
|
|
|
2024-09-15 16:32:31 -04:00
|
|
|
public function testFseekSize(): void {
|
2022-08-26 09:59:29 -04:00
|
|
|
$this->markTestSkipped('azure does not support seeking at the moment');
|
|
|
|
|
}
|
2018-06-04 08:17:49 -04:00
|
|
|
}
|