diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2018-09-28 15:25:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-28 15:25:54 +0200 |
commit | a23d5240987392f4eb140eefbb81882ef6ae6a5a (patch) | |
tree | bd937e80a031e5cb2464c49a4d3c3c2c25a98f5b /build | |
parent | 3182b8b063065b6a3bbad4778b83b97b557edf1a (diff) | |
parent | 108a8d6c4c696016d0b32ee3a82b693718a011a7 (diff) | |
download | nextcloud-server-a23d5240987392f4eb140eefbb81882ef6ae6a5a.tar.gz nextcloud-server-a23d5240987392f4eb140eefbb81882ef6ae6a5a.zip |
Merge pull request #11427 from nextcloud/enhancement/noid/ldap-numerical-ids
extend integration tests with users with numerical IDs
Diffstat (limited to 'build')
-rw-r--r-- | build/integration/ldap_features/openldap-numerical-id.feature | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/build/integration/ldap_features/openldap-numerical-id.feature b/build/integration/ldap_features/openldap-numerical-id.feature new file mode 100644 index 00000000000..2d87ba33e6e --- /dev/null +++ b/build/integration/ldap_features/openldap-numerical-id.feature @@ -0,0 +1,31 @@ +Feature: LDAP + Background: + Given using api version "2" + And having a valid LDAP configuration + And modify LDAP configuration + | ldapExpertUsernameAttr | employeeNumber | + | ldapLoginFilter | (&(objectclass=inetorgperson)(employeeNumber=%uid)) | + +# Those tests are dedicated to ensure Nc is working when it is provided with +# users having numerical IDs + +Scenario: Look for a expected LDAP users + Given As an "admin" + And sending "GET" to "/cloud/users" + Then the OCS status code should be "200" + And the "users" result should match + | 92379 | 1 | + | 50194 | 1 | + +Scenario: check default home of an LDAP user + Given As an "admin" + And sending "GET" to "/cloud/users/92379" + Then the OCS status code should be "200" + And the record's fields should match + | storageLocation | /dev/shm/nc_int/92379 | + +Scenario: Test by logging in + Given cookies are reset + And Logging in using web as "92379" + And Sending a "GET" to "/remote.php/webdav/welcome.txt" with requesttoken + Then the HTTP status code should be "200" |