aboutsummaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap/LDAPContext.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2017-01-19 11:09:04 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2017-01-19 11:09:04 +0100
commit01d469dfea5c3a3db4ddd449b322f3f9f5ae98b9 (patch)
tree6159aedc9f7feba01dd3d503ff61605ee2a83708 /build/integration/features/bootstrap/LDAPContext.php
parent18a75bec0d87b847790e0c5b695e3d02993ca710 (diff)
downloadnextcloud-server-01d469dfea5c3a3db4ddd449b322f3f9f5ae98b9.tar.gz
nextcloud-server-01d469dfea5c3a3db4ddd449b322f3f9f5ae98b9.zip
add LDAP OCS Api for modifying a configuration
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'build/integration/features/bootstrap/LDAPContext.php')
-rw-r--r--build/integration/features/bootstrap/LDAPContext.php19
1 files changed, 15 insertions, 4 deletions
diff --git a/build/integration/features/bootstrap/LDAPContext.php b/build/integration/features/bootstrap/LDAPContext.php
index 92e21715cd4..3a66641685a 100644
--- a/build/integration/features/bootstrap/LDAPContext.php
+++ b/build/integration/features/bootstrap/LDAPContext.php
@@ -40,9 +40,9 @@ class LDAPContext implements Context {
}
/**
- * @Given /^creating a configuration at "([^"]*)"$/
+ * @Given /^creating an LDAP configuration at "([^"]*)"$/
*/
- public function creatingAConfigurationAt($apiUrl) {
+ public function creatingAnLDAPConfigurationAt($apiUrl) {
$this->apiUrl = $apiUrl;
$this->sendingToWith('POST', $this->apiUrl, null);
$configElements = $this->response->xml()->data[0]->configID;
@@ -50,9 +50,20 @@ class LDAPContext implements Context {
}
/**
- * @When /^deleting the configuration$/
+ * @When /^deleting the LDAP configuration$/
*/
- public function deletingTheConfiguration() {
+ public function deletingTheLDAPConfiguration() {
$this->sendingToWith('DELETE', $this->apiUrl . '/' . $this->configID, null);
}
+
+ /**
+ * @When /^setting "([^"]*)" of the LDAP configuration to "([^"]*)"$/
+ */
+ public function settingOfTheLDAPConfigurationTo($key, $value) {
+ $this->sendingToWith(
+ 'PUT',
+ $this->apiUrl . '/' . $this->configID,
+ new \Behat\Gherkin\Node\TableNode([['key', $key], ['value', $value]])
+ );
+ }
}