From df6e23c98ce3d5a50c417a085f2095f42b663efa Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 7 Feb 2018 17:16:54 +0100 Subject: add ci for swift primary storage Signed-off-by: Robin Appelman --- tests/preseed-config.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests/preseed-config.php') diff --git a/tests/preseed-config.php b/tests/preseed-config.php index 7c080038734..5fbdc565417 100644 --- a/tests/preseed-config.php +++ b/tests/preseed-config.php @@ -34,3 +34,19 @@ if (getenv('OBJECT_STORE') === 's3') { ) ]; } +if (getenv('OBJECT_STORE') === 'swift') { + $swiftHost = getenv('DRONE') === 'true' ? 'dockswift' : 'localhost'; + $CONFIG['objectstore'] = [ + 'class' => 'OC\\Files\\ObjectStore\\Swift', + 'arguments' => array( + 'autocreate' => true, + 'username' => 'swift', + 'tenantName' => 'service', + 'password' => 'swift', + 'serviceName' => 'swift', + 'region' => 'regionOne', + 'url' => "http://$swiftHost:5000/v2.0", + 'bucket' => 'nextcloud' + ) + ]; +} -- cgit v1.2.3