integration test: pages search scenario with multiple bases

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2019-01-28 14:20:03 +01:00
parent 91b30ada8e
commit 4bd3916445
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
2 changed files with 23 additions and 1 deletions

View File

@ -1087,7 +1087,7 @@ services:
matrix: matrix:
TESTS: acceptance TESTS: acceptance
openldap: openldap:
image: nextcloudci/openldap:openldap-5 image: nextcloudci/openldap:openldap-6
environment: environment:
- SLAPD_DOMAIN=nextcloud.ci - SLAPD_DOMAIN=nextcloud.ci
- SLAPD_ORGANIZATION=Nextcloud - SLAPD_ORGANIZATION=Nextcloud

View File

@ -86,3 +86,25 @@ Feature: LDAP
| juliana | | juliana |
| leo | | leo |
| stigur | | stigur |
Scenario: Fetch from second batch of all users, invoking pagination with two bases
Given modify LDAP configuration
| ldapBaseUsers | ou=PagingTest,dc=nextcloud,dc=ci;ou=PagingTestSecondBase,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 |
And the "users" result should contain "3" of
| allisha |
| dogukan |
| lloyd |
| priscilla |
| shannah |