summaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests/config.php
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-06-07 00:04:46 +0200
committerThomas Mueller <thomas.mueller@tmit.eu>2013-06-07 00:04:46 +0200
commit058c15a9f46a69b4849d489b9b53041a5defb6f5 (patch)
treee01b1445e0fe4823cc432145dab2bcf0eaad507b /apps/files_external/tests/config.php
parent81b6cab94fcaa5c3bc76a92d38997cd7928cb37d (diff)
downloadnextcloud-server-058c15a9f46a69b4849d489b9b53041a5defb6f5.tar.gz
nextcloud-server-058c15a9f46a69b4849d489b9b53041a5defb6f5.zip
Read configuratons for external filesystem test from a private place.
This will help not to accidentially push private data and enable testing on our ci server.
Diffstat (limited to 'apps/files_external/tests/config.php')
-rw-r--r--apps/files_external/tests/config.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/files_external/tests/config.php b/apps/files_external/tests/config.php
index 1d4f30c713d..bac594b485f 100644
--- a/apps/files_external/tests/config.php
+++ b/apps/files_external/tests/config.php
@@ -1,4 +1,13 @@
<?php
+
+// in case there are private configurations in the users home -> use them
+$privateConfigFile = $_SERVER['HOME'] . '/owncloud-extfs-test-config.php';
+if (file_exists($privateConfigFile)) {
+ $config = include($privateConfigFile);
+ return $config;
+}
+
+// this is now more a template now for your private configurations
return array(
'ftp'=>array(
'run'=>false,