[Pkg-owncloud-commits] [owncloud] 193/205: tests solidity

David Prévot taffit at moszumanska.debian.org
Thu Jul 2 17:37:13 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit 5f4db0540af272e4dbb29b550eb6e93904ea26e7
Author: Arthur Schiwon <blizzz at owncloud.com>
Date:   Tue Jun 30 14:09:11 2015 +0200

    tests solidity
---
 apps/user_ldap/tests/.htaccess                             | 14 ++++++++++++++
 .../integration/setup-scripts/createExplicitGroups.php     |  5 +++++
 .../integration/setup-scripts/createExplicitUsers.php      |  5 +++++
 3 files changed, 24 insertions(+)

diff --git a/apps/user_ldap/tests/.htaccess b/apps/user_ldap/tests/.htaccess
new file mode 100755
index 0000000..5e068d2
--- /dev/null
+++ b/apps/user_ldap/tests/.htaccess
@@ -0,0 +1,14 @@
+# Generated by ownCloud on 2015-06-18 14:16:40
+# line below if for Apache 2.4
+<ifModule mod_authz_core.c>
+Require all denied
+</ifModule>
+
+# line below if for Apache 2.2
+<ifModule !mod_authz_core.c>
+deny from all
+Satisfy All
+</ifModule>
+
+# section for Apache 2.2 and 2.4
+IndexIgnore *
diff --git a/apps/user_ldap/tests/integration/setup-scripts/createExplicitGroups.php b/apps/user_ldap/tests/integration/setup-scripts/createExplicitGroups.php
index 60166de..68854de 100644
--- a/apps/user_ldap/tests/integration/setup-scripts/createExplicitGroups.php
+++ b/apps/user_ldap/tests/integration/setup-scripts/createExplicitGroups.php
@@ -1,5 +1,10 @@
 <?php
 
+if(php_sapi_name() !== 'cli') {
+	print('Only via CLI, please.');
+	exit(1);
+}
+
 include __DIR__ . '/config.php';
 
 $cr = ldap_connect($host, $port);
diff --git a/apps/user_ldap/tests/integration/setup-scripts/createExplicitUsers.php b/apps/user_ldap/tests/integration/setup-scripts/createExplicitUsers.php
index 957c252..ac21d48 100644
--- a/apps/user_ldap/tests/integration/setup-scripts/createExplicitUsers.php
+++ b/apps/user_ldap/tests/integration/setup-scripts/createExplicitUsers.php
@@ -1,5 +1,10 @@
 <?php
 
+if(php_sapi_name() !== 'cli') {
+	print('Only via CLI, please.');
+	exit(1);
+}
+
 include __DIR__ . '/config.php';
 
 $cr = ldap_connect($host, $port);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list