aboutsummaryrefslogtreecommitdiffstats
path: root/build/integration/ldap_features
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-04-11 18:14:28 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-08-09 23:45:11 +0200
commit4e8db8aa11ebd075d4fe4b9b5d47bc9a17dcf8b6 (patch)
tree727d947ed9724e630398315f4b620d95c45794e7 /build/integration/ldap_features
parenta39c995083c6cec88f79558699d4d20bd66f30f2 (diff)
downloadnextcloud-server-4e8db8aa11ebd075d4fe4b9b5d47bc9a17dcf8b6.tar.gz
nextcloud-server-4e8db8aa11ebd075d4fe4b9b5d47bc9a17dcf8b6.zip
convert LDAP offline and backup server integration tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'build/integration/ldap_features')
-rw-r--r--build/integration/ldap_features/ldap-openldap.feature27
1 files changed, 27 insertions, 0 deletions
diff --git a/build/integration/ldap_features/ldap-openldap.feature b/build/integration/ldap_features/ldap-openldap.feature
index a2b16950bb1..b56f9eb2cae 100644
--- a/build/integration/ldap_features/ldap-openldap.feature
+++ b/build/integration/ldap_features/ldap-openldap.feature
@@ -58,3 +58,30 @@ Feature: LDAP
| BlueGroup | 1 |
| PurpleGroup | 1 |
| SquareGroup | 0 |
+
+ Scenario: Test backup server
+ Given having a valid LDAP configuration
+ And modify LDAP configuration
+ | ldapBackupHost | openldap |
+ | ldapBackupPort | 389 |
+ | ldapHost | foo.bar |
+ | ldapPort | 2456 |
+ And Logging in using web as "alice"
+ Then the HTTP status code should be "200"
+
+ Scenario: Test backup server offline
+ Given having a valid LDAP configuration
+ And modify LDAP configuration
+ | ldapBackupHost | off.line |
+ | ldapBackupPort | 3892 |
+ | ldapHost | foo.bar |
+ | ldapPort | 2456 |
+ Then Expect ServerException on failed web login as "alice"
+
+ Scenario: Test LDAP server offline, no backup server
+ Given having a valid LDAP configuration
+ And modify LDAP configuration
+ | ldapHost | foo.bar |
+ | ldapPort | 2456 |
+ Then Expect ServerException on failed web login as "alice"
+