diff options
author | Pierre <pierre.guillot@sonarsource.com> | 2022-11-10 10:05:44 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-11-10 20:02:47 +0000 |
commit | f2b691a5853d36eb7dbfdba856390fd10f08d4b4 (patch) | |
tree | 3a0d34bcf3eb2e4b64339b13f7a443f480785673 | |
parent | 2bf8736eefebd968b1526c7c0eb4f0eff303ffc3 (diff) | |
download | sonarqube-f2b691a5853d36eb7dbfdba856390fd10f08d4b4.tar.gz sonarqube-f2b691a5853d36eb7dbfdba856390fd10f08d4b4.zip |
SONAR-17590 make hostpot search endpoint public
2 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/hotspot/ws/SearchAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/hotspot/ws/SearchAction.java index 94380c40e49..f3f52032a64 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/hotspot/ws/SearchAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/hotspot/ws/SearchAction.java @@ -230,11 +230,11 @@ public class SearchAction implements HotspotsWsAction { + "For applications, it also requires 'Browse' permission on its child projects. <br>" + "When issue indexation is in progress returns 503 service unavailable HTTP code.") .setSince("8.1") - .setInternal(true) .setChangelog( new Change("9.6", "Added parameters 'pciDss-3.2' and 'pciDss-4.0"), new Change("9.7", "Hotspot flows in the response may contain a description and a type"), - new Change("9.7", "Hotspot in the response contain the corresponding ruleKey")); + new Change("9.7", "Hotspot in the response contain the corresponding ruleKey"), + new Change("9.8", "Endpoint visibility change from internal to public")); action.addPagingParams(100); action.createParam(PARAM_PROJECT_KEY) diff --git a/server/sonar-webserver-webapi/src/test/java/org/sonar/server/hotspot/ws/SearchActionTest.java b/server/sonar-webserver-webapi/src/test/java/org/sonar/server/hotspot/ws/SearchActionTest.java index 4942128a7ad..654397fd3ed 100644 --- a/server/sonar-webserver-webapi/src/test/java/org/sonar/server/hotspot/ws/SearchActionTest.java +++ b/server/sonar-webserver-webapi/src/test/java/org/sonar/server/hotspot/ws/SearchActionTest.java @@ -171,7 +171,7 @@ public class SearchActionTest { WebService.Param sonarsourceSecurityParam = actionTester.getDef().param(PARAM_SONARSOURCE_SECURITY); WebService.Param filesParam = actionTester.getDef().param(PARAM_FILES); - assertThat(actionTester.getDef().isInternal()).isTrue(); + assertThat(actionTester.getDef().isInternal()).isFalse(); assertThat(onlyMineParam).isNotNull(); assertThat(onlyMineParam.isRequired()).isFalse(); assertThat(actionTester.getDef().param(PARAM_ONLY_MINE).possibleValues()) |