]> source.dussan.org Git - sonarqube.git/commitdiff
Make web services api/webhooks/* public
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 9 Mar 2017 22:38:57 +0000 (23:38 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 9 Mar 2017 22:38:57 +0000 (23:38 +0100)
server/sonar-server/src/main/java/org/sonar/server/webhook/ws/WebhookDeliveriesAction.java
server/sonar-server/src/main/java/org/sonar/server/webhook/ws/WebhookDeliveryAction.java
server/sonar-server/src/test/java/org/sonar/server/webhook/ws/WebhookDeliveriesActionTest.java
server/sonar-server/src/test/java/org/sonar/server/webhook/ws/WebhookDeliveryActionTest.java

index 0519aac7a00ed944e0e8186da1cc2f14ce8efa27..08562c8f600f2745cd82e7e0f87094b06abbd211 100644 (file)
@@ -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)
index f60a7de8b1620bd598cc0f674d0e8a395a88ae66..41e5bb65ff9f3cc9d29402c860506d1ad2fbebed 100644 (file)
@@ -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)
index 3303a74a1f4aa5e5e496ec3e82e2ec99a0358219..abcab6adcce6c22f36246ac531b0113da8eef53c 100644 (file)
@@ -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();
   }
 
index ff7921f46cb52d40017cbf2c35a951512a90ed95..ecbc6e757dcf7608b57906a7f9a4cdb2bd2c94f2 100644 (file)
@@ -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();
   }