diff options
author | Robin Appelman <robin@icewind.nl> | 2024-09-20 10:28:19 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-09-27 14:45:39 +0200 |
commit | a5f8a2625f2fd681e6b3ffb45ab25f90e8583873 (patch) | |
tree | 7bd29a2d8e8bcc6b6a9784df858760f674ba9712 /tests | |
parent | 4f88123d2ba649fb6fe2df3d069a297c101dd019 (diff) | |
download | nextcloud-server-a5f8a2625f2fd681e6b3ffb45ab25f90e8583873.tar.gz nextcloud-server-a5f8a2625f2fd681e6b3ffb45ab25f90e8583873.zip |
test: re-add object store primary storage phpunit tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/preseed-config.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/preseed-config.php b/tests/preseed-config.php index 3095690e483..1524861bf6c 100644 --- a/tests/preseed-config.php +++ b/tests/preseed-config.php @@ -38,6 +38,21 @@ if (getenv('OBJECT_STORE') === 's3') { 'use_path_style' => true ] ]; +} elseif (getenv('OBJECT_STORE') === 's3-multibucket') { + $CONFIG['objectstore_multibucket'] = [ + 'class' => 'OC\\Files\\ObjectStore\\S3', + 'arguments' => [ + 'bucket' => 'nextcloud', + 'autocreate' => true, + 'key' => getenv('OBJECT_STORE_KEY') ?: 'nextcloud', + 'secret' => getenv('OBJECT_STORE_SECRET') ?: 'nextcloud', + 'hostname' => getenv('OBJECT_STORE_HOST') ?: 'localhost', + 'port' => 9000, + 'use_ssl' => false, + // required for some non amazon s3 implementations + 'use_path_style' => true + ] + ]; } elseif (getenv('OBJECT_STORE') === 'azure') { $CONFIG['objectstore'] = [ 'class' => 'OC\\Files\\ObjectStore\\Azure', |