aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre <pierre.guillot@sonarsource.com>2022-11-10 10:05:44 +0100
committersonartech <sonartech@sonarsource.com>2022-11-10 20:02:47 +0000
commitf2b691a5853d36eb7dbfdba856390fd10f08d4b4 (patch)
tree3a0d34bcf3eb2e4b64339b13f7a443f480785673
parent2bf8736eefebd968b1526c7c0eb4f0eff303ffc3 (diff)
downloadsonarqube-f2b691a5853d36eb7dbfdba856390fd10f08d4b4.tar.gz
sonarqube-f2b691a5853d36eb7dbfdba856390fd10f08d4b4.zip
SONAR-17590 make hostpot search endpoint public
-rw-r--r--server/sonar-webserver-webapi/src/main/java/org/sonar/server/hotspot/ws/SearchAction.java4
-rw-r--r--server/sonar-webserver-webapi/src/test/java/org/sonar/server/hotspot/ws/SearchActionTest.java2
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())