diff options
author | Robin Appelman <robin@icewind.nl> | 2024-09-20 10:28:19 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-10-09 14:50:02 +0200 |
commit | 90a6a75e116cd3892b3b1d18b5c00c2e48120d51 (patch) | |
tree | af662372c45c202adf1fa01a3da00e15d119af62 /tests | |
parent | f23f6ff63aa03a722151580811e37d3cd51b2985 (diff) | |
download | nextcloud-server-90a6a75e116cd3892b3b1d18b5c00c2e48120d51.tar.gz nextcloud-server-90a6a75e116cd3892b3b1d18b5c00c2e48120d51.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 c62b4471280..8a56e43c7a0 100644 --- a/tests/preseed-config.php +++ b/tests/preseed-config.php @@ -34,6 +34,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', |