diff options
author | Robin Appelman <robin@icewind.nl> | 2016-11-16 12:43:38 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-01-02 14:17:19 +0100 |
commit | ac2542f0f074cc7ec0f5ffdc6970a9981a4fac02 (patch) | |
tree | 93747e5dff6059e52d664ea2c0c18496db001d90 /tests/preseed-config.php | |
parent | 17d2b25ad4c8ec75dfe0ecd0a2d84cd7b5e4f89b (diff) | |
download | nextcloud-server-ac2542f0f074cc7ec0f5ffdc6970a9981a4fac02.tar.gz nextcloud-server-ac2542f0f074cc7ec0f5ffdc6970a9981a4fac02.zip |
add ci support for s3 object store
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests/preseed-config.php')
-rw-r--r-- | tests/preseed-config.php | 17 |
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 + ) + ]; +} |