diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-01-19 12:48:50 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-01-19 12:48:50 +0100 |
commit | f2c9d04eac7c0875040b3e46cc1dccc7d290789f (patch) | |
tree | 79f2451221e2f7e2f92f163f9290130a8573ffb7 /build/integration/ldap_features | |
parent | 01d469dfea5c3a3db4ddd449b322f3f9f5ae98b9 (diff) | |
download | nextcloud-server-f2c9d04eac7c0875040b3e46cc1dccc7d290789f.tar.gz nextcloud-server-f2c9d04eac7c0875040b3e46cc1dccc7d290789f.zip |
test against OCS v2 instead
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'build/integration/ldap_features')
-rw-r--r-- | build/integration/ldap_features/ldap-ocs.feature | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/build/integration/ldap_features/ldap-ocs.feature b/build/integration/ldap_features/ldap-ocs.feature index 7d3a4fd9491..d925df3256d 100644 --- a/build/integration/ldap_features/ldap-ocs.feature +++ b/build/integration/ldap_features/ldap-ocs.feature @@ -1,9 +1,11 @@ Feature: LDAP + Background: + Given using api version "2" Scenario: Creating an new, empty configuration Given As an "admin" When sending "POST" to "/apps/user_ldap/api/v1/config" - Then the OCS status code should be "100" + Then the OCS status code should be "200" And the HTTP status code should be "200" And the response should contain a tag "configID" @@ -11,31 +13,31 @@ Feature: LDAP Given As an "admin" When sending "DELETE" to "/apps/user_ldap/api/v1/config/s666" Then the OCS status code should be "404" - And the HTTP status code should be "200" + And the HTTP status code should be "404" Scenario: Delete an invalid configuration Given As an "admin" When sending "DELETE" to "/apps/user_ldap/api/v1/config/hack0r" Then the OCS status code should be "400" - And the HTTP status code should be "200" + And the HTTP status code should be "400" Scenario: Create and delete a configuration Given As an "admin" And creating an LDAP configuration at "/apps/user_ldap/api/v1/config" When deleting the LDAP configuration - Then the OCS status code should be "100" + Then the OCS status code should be "200" And the HTTP status code should be "200" Scenario: Create and modify a configuration Given As an "admin" And creating an LDAP configuration at "/apps/user_ldap/api/v1/config" When setting "ldapHost" of the LDAP configuration to "ldaps://my.ldap.server" - Then the OCS status code should be "100" + Then the OCS status code should be "200" And the HTTP status code should be "200" # Testing an invalid config key When setting "crack0r" of the LDAP configuration to "foobar" Then the OCS status code should be "400" - And the HTTP status code should be "200" + And the HTTP status code should be "400" Scenario: Modiying a non-existing configuration Given As an "admin" @@ -43,4 +45,4 @@ Feature: LDAP | key | ldapHost | | value | ldaps://my.ldap.server | Then the OCS status code should be "404" - And the HTTP status code should be "200" + And the HTTP status code should be "404" |