don't add new LDAP configs if one is already present
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
919c7b8531
commit
24ef41454c
|
@ -32,6 +32,14 @@ class LDAPContext implements Context {
|
||||||
|
|
||||||
protected $apiUrl;
|
protected $apiUrl;
|
||||||
|
|
||||||
|
/** @AfterScenario */
|
||||||
|
public function teardown() {
|
||||||
|
if($this->configID === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$this->sendingTo('DELETE', $this->apiUrl . '/' . $this->configID);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Given /^the response should contain a tag "([^"]*)"$/
|
* @Given /^the response should contain a tag "([^"]*)"$/
|
||||||
*/
|
*/
|
||||||
|
@ -173,7 +181,6 @@ class LDAPContext implements Context {
|
||||||
$uidsFound++;
|
$uidsFound++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
error_log('result array ' . json_encode($extractedIDsArray)); ## TODO remove debug statement
|
|
||||||
Assert::assertSame((int)$expectedCount, $uidsFound);
|
Assert::assertSame((int)$expectedCount, $uidsFound);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,6 @@ Feature: LDAP
|
||||||
Given modify LDAP configuration
|
Given modify LDAP configuration
|
||||||
| ldapBaseUsers | ou=PagingTest,dc=nextcloud,dc=ci |
|
| ldapBaseUsers | ou=PagingTest,dc=nextcloud,dc=ci |
|
||||||
| ldapPagingSize | 2 |
|
| ldapPagingSize | 2 |
|
||||||
| ldapCacheTTL | 0 |
|
|
||||||
And As an "admin"
|
And As an "admin"
|
||||||
And sending "GET" to "/cloud/users?limit=10&offset=2"
|
And sending "GET" to "/cloud/users?limit=10&offset=2"
|
||||||
Then the OCS status code should be "200"
|
Then the OCS status code should be "200"
|
||||||
|
|
Loading…
Reference in New Issue