From 919c7b853191ee3a657d68c346e764645dd172aa Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Sun, 12 Aug 2018 22:45:22 +0200 Subject: [PATCH] improve fail info and disable cache for a case Signed-off-by: Arthur Schiwon --- build/integration/features/bootstrap/LDAPContext.php | 2 +- build/integration/ldap_features/openldap-uid-username.feature | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build/integration/features/bootstrap/LDAPContext.php b/build/integration/features/bootstrap/LDAPContext.php index 959ff628b1..671dab3767 100644 --- a/build/integration/features/bootstrap/LDAPContext.php +++ b/build/integration/features/bootstrap/LDAPContext.php @@ -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; diff --git a/build/integration/ldap_features/openldap-uid-username.feature b/build/integration/ldap_features/openldap-uid-username.feature index d267870ca2..f01c779500 100644 --- a/build/integration/ldap_features/openldap-uid-username.feature +++ b/build/integration/ldap_features/openldap-uid-username.feature @@ -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"