summaryrefslogtreecommitdiffstats
path: root/tests/preseed-config.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/preseed-config.php')
-rw-r--r--tests/preseed-config.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/preseed-config.php b/tests/preseed-config.php
index e2c5a55fa58..53579406472 100644
--- a/tests/preseed-config.php
+++ b/tests/preseed-config.php
@@ -21,3 +21,20 @@ if (is_dir(OC::$SERVERROOT.'/apps2')) {
if (substr(strtolower(PHP_OS), 0, 3) === 'win') {
$CONFIG['openssl'] = ['config' => OC::$SERVERROOT . '/tests/data/openssl.cnf'];
}
+
+if (getenv('OBJECT_STORE') === 's3') {
+ $CONFIG['objectstore'] = [
+ 'class' => 'OC\\Files\\ObjectStore\\S3',
+ 'arguments' => array(
+ 'bucket' => 'nextcloud',
+ 'autocreate' => true,
+ 'key' => 'dummy',
+ 'secret' => 'dummy',
+ 'hostname' => 'localhost',
+ 'port' => 4569,
+ 'use_ssl' => false,
+ // required for some non amazon s3 implementations
+ 'use_path_style' => true
+ )
+ ];
+}