aboutsummaryrefslogtreecommitdiffstats
path: root/build/integration/ldap_features/openldap-uid-username.feature
diff options
context:
space:
mode:
Diffstat (limited to 'build/integration/ldap_features/openldap-uid-username.feature')
-rw-r--r--build/integration/ldap_features/openldap-uid-username.feature28
1 files changed, 27 insertions, 1 deletions
diff --git a/build/integration/ldap_features/openldap-uid-username.feature b/build/integration/ldap_features/openldap-uid-username.feature
index aa6010875c1..d267870ca26 100644
--- a/build/integration/ldap_features/openldap-uid-username.feature
+++ b/build/integration/ldap_features/openldap-uid-username.feature
@@ -11,8 +11,34 @@ Feature: LDAP
Then the OCS status code should be "200"
And the "users" result should match
| alice | 1 |
+ | elisa | 1 |
| ghost | 0 |
+ Scenario: check default home of an LDAP user
+ Given As an "admin"
+ And sending "GET" to "/cloud/users/alice"
+ Then the OCS status code should be "200"
+ And the record's fields should match
+ | storageLocation | /dev/shm/nc_int/alice |
+
+ Scenario: check custom relative home of an LDAP user
+ Given modify LDAP configuration
+ | homeFolderNamingRule | sn |
+ And As an "admin"
+ And sending "GET" to "/cloud/users/alice"
+ Then the OCS status code should be "200"
+ And the record's fields should match
+ | storageLocation | /dev/shm/nc_int/Alfgeirdottir |
+
+ Scenario: check custom absolute home of an LDAP user
+ Given modify LDAP configuration
+ | homeFolderNamingRule | roomNumber |
+ And As an "admin"
+ And sending "GET" to "/cloud/users/elisa"
+ Then the OCS status code should be "200"
+ And the record's fields should match
+ | storageLocation | /dev/shm/elisa-data |
+
Scenario: Fetch all users, invoking pagination
Given modify LDAP configuration
| ldapBaseUsers | ou=PagingTest,dc=nextcloud,dc=ci |
@@ -45,7 +71,7 @@ Feature: LDAP
| leo | 1 |
| stigur | 1 |
- Scenario: Fetch first foall users, invoking pagination
+ Scenario: Fetch from second batch of all users, invoking pagination
Given modify LDAP configuration
| ldapBaseUsers | ou=PagingTest,dc=nextcloud,dc=ci |
| ldapPagingSize | 2 |