diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-04-24 12:04:29 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-08-09 23:45:12 +0200 |
commit | b069b132267aee0f34da5bf16c828de66ec518ed (patch) | |
tree | fe5fa083a8d240308c6137c2c2fa0e7f17e93eb8 /build/integration/ldap_features/openldap-uid-username.feature | |
parent | 0f6d98eed2e45623514ed7445aedf599a9d8d185 (diff) | |
download | nextcloud-server-b069b132267aee0f34da5bf16c828de66ec518ed.tar.gz nextcloud-server-b069b132267aee0f34da5bf16c828de66ec518ed.zip |
convert pagination tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'build/integration/ldap_features/openldap-uid-username.feature')
-rw-r--r-- | build/integration/ldap_features/openldap-uid-username.feature | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/build/integration/ldap_features/openldap-uid-username.feature b/build/integration/ldap_features/openldap-uid-username.feature index a8bb20abf8e..aa6010875c1 100644 --- a/build/integration/ldap_features/openldap-uid-username.feature +++ b/build/integration/ldap_features/openldap-uid-username.feature @@ -12,3 +12,51 @@ Feature: LDAP And the "users" result should match | alice | 1 | | ghost | 0 | + + Scenario: Fetch all users, invoking pagination + Given modify LDAP configuration + | ldapBaseUsers | ou=PagingTest,dc=nextcloud,dc=ci | + | ldapPagingSize | 2 | + And As an "admin" + And sending "GET" to "/cloud/users" + Then the OCS status code should be "200" + And the "users" result should match + | ebba | 1 | + | eindis | 1 | + | fjolnir | 1 | + | gunna | 1 | + | juliana | 1 | + | leo | 1 | + | stigur | 1 | + + Scenario: Fetch all users, invoking pagination + Given modify LDAP configuration + | ldapBaseUsers | ou=PagingTest,dc=nextcloud,dc=ci | + | ldapPagingSize | 2 | + And As an "admin" + And sending "GET" to "/cloud/users?limit=10" + Then the OCS status code should be "200" + And the "users" result should match + | ebba | 1 | + | eindis | 1 | + | fjolnir | 1 | + | gunna | 1 | + | juliana | 1 | + | leo | 1 | + | stigur | 1 | + + Scenario: Fetch first foall users, invoking pagination + Given modify LDAP configuration + | ldapBaseUsers | ou=PagingTest,dc=nextcloud,dc=ci | + | ldapPagingSize | 2 | + And As an "admin" + And sending "GET" to "/cloud/users?limit=10&offset=2" + Then the OCS status code should be "200" + And the "users" result should contain "5" of + | ebba | + | eindis | + | fjolnir | + | gunna | + | juliana | + | leo | + | stigur | |