2018-04-13 16:39:12 +03:00
|
|
|
Feature: LDAP
|
|
|
|
Background:
|
|
|
|
Given using api version "2"
|
|
|
|
And having a valid LDAP configuration
|
|
|
|
And modify LDAP configuration
|
|
|
|
| ldapExpertUsernameAttr | uid |
|
|
|
|
|
|
|
|
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
|
|
|
|
| alice | 1 |
|
|
|
|
| ghost | 0 |
|
2018-04-24 13:04:29 +03:00
|
|
|
|
|
|
|
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 |
|