diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2017-01-03 16:03:28 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2017-01-05 13:09:46 +0100 |
commit | 58b2a0961fc705d7f65736535d70916c5b8d46f3 (patch) | |
tree | 338262fec471f382a7c77c65e5eb0f14b6e62ae6 /it | |
parent | e23046ef19a3baa4484320e13a3ac0eaa60195b7 (diff) | |
download | sonarqube-58b2a0961fc705d7f65736535d70916c5b8d46f3.tar.gz sonarqube-58b2a0961fc705d7f65736535d70916c5b8d46f3.zip |
SONAR-8575 Set api/settings WS as public and keep only one parameter for component
Diffstat (limited to 'it')
-rw-r--r-- | it/it-tests/src/test/java/it/webhook/WebhooksTest.java | 4 | ||||
-rw-r--r-- | it/it-tests/src/test/java/util/ItUtils.java | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/it/it-tests/src/test/java/it/webhook/WebhooksTest.java b/it/it-tests/src/test/java/it/webhook/WebhooksTest.java index e55390f017d..61f3b016677 100644 --- a/it/it-tests/src/test/java/it/webhook/WebhooksTest.java +++ b/it/it-tests/src/test/java/it/webhook/WebhooksTest.java @@ -269,10 +269,10 @@ public class WebhooksTest { private void setProperty(@Nullable String componentKey, String key, @Nullable String value) { if (value == null) { - ResetRequest req = ResetRequest.builder().setKeys(key).setComponentKey(componentKey).build(); + ResetRequest req = ResetRequest.builder().setKeys(key).setComponent(componentKey).build(); adminWs.settingsService().reset(req); } else { - SetRequest req = SetRequest.builder().setKey(key).setValue(value).setComponentKey(componentKey).build(); + SetRequest req = SetRequest.builder().setKey(key).setValue(value).setComponent(componentKey).build(); adminWs.settingsService().set(req); } } diff --git a/it/it-tests/src/test/java/util/ItUtils.java b/it/it-tests/src/test/java/util/ItUtils.java index 6d8bce1a259..e0dcfc5fd3e 100644 --- a/it/it-tests/src/test/java/util/ItUtils.java +++ b/it/it-tests/src/test/java/util/ItUtils.java @@ -217,9 +217,9 @@ public class ItUtils { public static void setServerProperty(Orchestrator orchestrator, @Nullable String componentKey, String key, @Nullable String value) { if (value == null) { - newAdminWsClient(orchestrator).settingsService().reset(ResetRequest.builder().setKeys(key).setComponentKey(componentKey).build()); + newAdminWsClient(orchestrator).settingsService().reset(ResetRequest.builder().setKeys(key).setComponent(componentKey).build()); } else { - newAdminWsClient(orchestrator).settingsService().set(SetRequest.builder().setKey(key).setValue(value).setComponentKey(componentKey).build()); + newAdminWsClient(orchestrator).settingsService().set(SetRequest.builder().setKey(key).setValue(value).setComponent(componentKey).build()); } } @@ -230,7 +230,7 @@ public class ItUtils { } public static void resetSettings(Orchestrator orchestrator, @Nullable String componentKey, String... keys) { - newAdminWsClient(orchestrator).settingsService().reset(ResetRequest.builder().setKeys(keys).setComponentKey(componentKey).build()); + newAdminWsClient(orchestrator).settingsService().reset(ResetRequest.builder().setKeys(keys).setComponent(componentKey).build()); } public static void resetEmailSettings(Orchestrator orchestrator) { |