From: Teryk Bellahsene Date: Wed, 6 Sep 2017 14:29:51 +0000 (+0200) Subject: SONAR-9181 Make WS api/projects/search public X-Git-Tag: 6.6-RC1~412 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8cd67853ecc669b921e73b345636dab7af2eaaa7;p=sonarqube.git SONAR-9181 Make WS api/projects/search public --- diff --git a/server/sonar-server/src/main/java/org/sonar/server/project/ws/SearchAction.java b/server/sonar-server/src/main/java/org/sonar/server/project/ws/SearchAction.java index d7b62b90be4..4c68af58ebe 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/project/ws/SearchAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/project/ws/SearchAction.java @@ -83,7 +83,6 @@ public class SearchAction implements ProjectsWsAction { .setSince("6.3") .setDescription("Search for projects or views to administrate them.
" + "Requires 'System Administrator' permission") - .setInternal(true) .addPagingParams(100, MAX_PAGE_SIZE) .setResponseExample(getClass().getResource("search-example.json")) .setHandler(this); diff --git a/server/sonar-server/src/test/java/org/sonar/server/project/ws/SearchActionTest.java b/server/sonar-server/src/test/java/org/sonar/server/project/ws/SearchActionTest.java index c3dbd732374..1e0ea685dda 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/project/ws/SearchActionTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/project/ws/SearchActionTest.java @@ -288,7 +288,7 @@ public class SearchActionTest { assertThat(action.key()).isEqualTo("search"); assertThat(action.isPost()).isFalse(); assertThat(action.description()).isEqualTo("Search for projects or views to administrate them.
Requires 'System Administrator' permission"); - assertThat(action.isInternal()).isTrue(); + assertThat(action.isInternal()).isFalse(); assertThat(action.since()).isEqualTo("6.3"); assertThat(action.handler()).isEqualTo(ws.getDef().handler()); assertThat(action.params()).hasSize(8).extracting(Param::key)