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 | |
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')
-rw-r--r-- | build/integration/ldap_features/ldap-openldap.feature | 41 | ||||
-rw-r--r-- | build/integration/ldap_features/openldap-uid-username.feature | 48 |
2 files changed, 68 insertions, 21 deletions
diff --git a/build/integration/ldap_features/ldap-openldap.feature b/build/integration/ldap_features/ldap-openldap.feature index 311334a7b49..299142cfedc 100644 --- a/build/integration/ldap_features/ldap-openldap.feature +++ b/build/integration/ldap_features/ldap-openldap.feature @@ -80,26 +80,25 @@ Feature: LDAP | PurpleGroup | 1 | | SquareGroup | 0 | - Scenario: Test backup server - Given 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 modify LDAP configuration - | ldapBackupHost | off.line | - | ldapBackupPort | 3892 | - | ldapHost | foo.bar | - | ldapPort | 2456 | - Then Expect ServerException on failed web login as "alice" + Scenario: Test backup server + Given 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 LDAP server offline, no backup server - Given modify LDAP configuration - | ldapHost | foo.bar | - | ldapPort | 2456 | - Then Expect ServerException on failed web login as "alice" + Scenario: Test backup server offline + Given 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 modify LDAP configuration + | ldapHost | foo.bar | + | ldapPort | 2456 | + Then Expect ServerException on failed web login as "alice" 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 | |