]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19031 - Make api/hotspots/change_status public.
authorAntoine Vinot <antoine.vinot@sonarsource.com>
Mon, 24 Apr 2023 13:14:01 +0000 (15:14 +0200)
committersonartech <sonartech@sonarsource.com>
Mon, 24 Apr 2023 20:04:24 +0000 (20:04 +0000)
server/sonar-webserver-webapi/src/it/java/org/sonar/server/hotspot/ws/ChangeStatusActionIT.java
server/sonar-webserver-webapi/src/main/java/org/sonar/server/hotspot/ws/ChangeStatusAction.java

index 75ed4a3b7e26a196338ae75d01387140297102b9..826d50e49e0abb7f44aad2354ddc4295598696b9 100644 (file)
@@ -99,8 +99,8 @@ public class ChangeStatusActionIT {
   private WsActionTester actionTester = new WsActionTester(underTest);
 
   @Test
-  public void ws_is_internal() {
-    assertThat(actionTester.getDef().isInternal()).isTrue();
+  public void define_shouldMarkWebServiceAsPublic() {
+    assertThat(actionTester.getDef().isInternal()).isFalse();
   }
 
   @Test
index e68986cfa4243e39f14b3da99c11c6792a0a9936..8a7cf079fb79eb6b8ea3d0dabafe13310bb512fe 100644 (file)
@@ -23,6 +23,7 @@ import java.util.Objects;
 import javax.annotation.CheckForNull;
 import javax.annotation.Nullable;
 import org.sonar.api.issue.DefaultTransitions;
+import org.sonar.api.server.ws.Change;
 import org.sonar.api.server.ws.Request;
 import org.sonar.api.server.ws.Response;
 import org.sonar.api.server.ws.WebService;
@@ -76,7 +77,8 @@ public class ChangeStatusAction implements HotspotsWsAction {
       .setDescription("Change the status of a Security Hotpot.<br/>" +
         "Requires the 'Administer Security Hotspot' permission.")
       .setSince("8.1")
-      .setInternal(true);
+      .setChangelog(
+        new Change("10.1", "Endpoint visibility change from internal to public"));
 
     action.createParam(PARAM_HOTSPOT_KEY)
       .setDescription("Key of the Security Hotspot")