improve fail info and disable cache for a case

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2018-08-12 22:45:22 +02:00
parent 96f5210fc4
commit 919c7b8531
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
2 changed files with 2 additions and 1 deletions

View File

@ -183,7 +183,7 @@ class LDAPContext implements Context {
public function theRecordFieldsShouldMatch(TableNode $expectations) {
foreach($expectations->getRowsHash() as $k => $v) {
$value = (string)simplexml_load_string($this->response->getBody())->data[0]->$k;
Assert::assertEquals($v, $value);
Assert::assertEquals($v, $value, "got $value");
}
$backend = (string)simplexml_load_string($this->response->getBody())->data[0]->backend;

View File

@ -75,6 +75,7 @@ Feature: LDAP
Given modify LDAP configuration
| ldapBaseUsers | ou=PagingTest,dc=nextcloud,dc=ci |
| ldapPagingSize | 2 |
| ldapCacheTTL | 0 |
And As an "admin"
And sending "GET" to "/cloud/users?limit=10&offset=2"
Then the OCS status code should be "200"