aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-03-09 23:38:57 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-03-09 23:38:57 +0100
commitf5c674d695ae510cf4184c6388fa58a8c86f532d (patch)
tree39d728f28f0b6a4652f6eedb3b0323aa9c4d4d26
parentada5b9d39a29eb6679526a41e4caecff2415bc9a (diff)
downloadsonarqube-f5c674d695ae510cf4184c6388fa58a8c86f532d.tar.gz
sonarqube-f5c674d695ae510cf4184c6388fa58a8c86f532d.zip
Make web services api/webhooks/* public
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/webhook/ws/WebhookDeliveriesAction.java1
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/webhook/ws/WebhookDeliveryAction.java1
-rw-r--r--server/sonar-server/src/test/java/org/sonar/server/webhook/ws/WebhookDeliveriesActionTest.java2
-rw-r--r--server/sonar-server/src/test/java/org/sonar/server/webhook/ws/WebhookDeliveryActionTest.java2
4 files changed, 2 insertions, 4 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/webhook/ws/WebhookDeliveriesAction.java b/server/sonar-server/src/main/java/org/sonar/server/webhook/ws/WebhookDeliveriesAction.java
index 0519aac7a00..08562c8f600 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/webhook/ws/WebhookDeliveriesAction.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/webhook/ws/WebhookDeliveriesAction.java
@@ -64,7 +64,6 @@ public class WebhookDeliveriesAction implements WebhooksWsAction {
"Require 'Administer' permission on the related project.<br/>" +
"Note that additional information are returned by api/webhooks/delivery.")
.setResponseExample(Resources.getResource(this.getClass(), "example-deliveries.json"))
- .setInternal(true)
.setHandler(this);
action.createParam(COMPONENT_PARAM)
diff --git a/server/sonar-server/src/main/java/org/sonar/server/webhook/ws/WebhookDeliveryAction.java b/server/sonar-server/src/main/java/org/sonar/server/webhook/ws/WebhookDeliveryAction.java
index f60a7de8b16..41e5bb65ff9 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/webhook/ws/WebhookDeliveryAction.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/webhook/ws/WebhookDeliveryAction.java
@@ -61,7 +61,6 @@ public class WebhookDeliveryAction implements WebhooksWsAction {
"Require 'Administer System' permission.<br/>" +
"Note that additional information are returned by api/webhooks/delivery.")
.setResponseExample(Resources.getResource(this.getClass(), "example-delivery.json"))
- .setInternal(true)
.setHandler(this);
action.createParam(PARAM_ID)
diff --git a/server/sonar-server/src/test/java/org/sonar/server/webhook/ws/WebhookDeliveriesActionTest.java b/server/sonar-server/src/test/java/org/sonar/server/webhook/ws/WebhookDeliveriesActionTest.java
index 3303a74a1f4..abcab6adcce 100644
--- a/server/sonar-server/src/test/java/org/sonar/server/webhook/ws/WebhookDeliveriesActionTest.java
+++ b/server/sonar-server/src/test/java/org/sonar/server/webhook/ws/WebhookDeliveriesActionTest.java
@@ -70,7 +70,7 @@ public class WebhookDeliveriesActionTest {
public void test_definition() {
assertThat(ws.getDef().params()).extracting(WebService.Param::key).containsOnly("componentKey", "ceTaskId");
assertThat(ws.getDef().isPost()).isFalse();
- assertThat(ws.getDef().isInternal()).isTrue();
+ assertThat(ws.getDef().isInternal()).isFalse();
assertThat(ws.getDef().responseExampleAsString()).isNotEmpty();
}
diff --git a/server/sonar-server/src/test/java/org/sonar/server/webhook/ws/WebhookDeliveryActionTest.java b/server/sonar-server/src/test/java/org/sonar/server/webhook/ws/WebhookDeliveryActionTest.java
index ff7921f46cb..ecbc6e757dc 100644
--- a/server/sonar-server/src/test/java/org/sonar/server/webhook/ws/WebhookDeliveryActionTest.java
+++ b/server/sonar-server/src/test/java/org/sonar/server/webhook/ws/WebhookDeliveryActionTest.java
@@ -71,7 +71,7 @@ public class WebhookDeliveryActionTest {
public void test_definition() {
assertThat(ws.getDef().params()).extracting(WebService.Param::key).containsOnly("deliveryId");
assertThat(ws.getDef().isPost()).isFalse();
- assertThat(ws.getDef().isInternal()).isTrue();
+ assertThat(ws.getDef().isInternal()).isFalse();
assertThat(ws.getDef().responseExampleAsString()).isNotEmpty();
}