diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2017-09-06 16:29:51 +0200 |
---|---|---|
committer | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-09-11 11:28:29 +0200 |
commit | 8cd67853ecc669b921e73b345636dab7af2eaaa7 (patch) | |
tree | e420d2e94aac911f57f234ec51eadfd704bbf279 | |
parent | 920bebc83b3ac1f7badf7976c919d16088320078 (diff) | |
download | sonarqube-8cd67853ecc669b921e73b345636dab7af2eaaa7.tar.gz sonarqube-8cd67853ecc669b921e73b345636dab7af2eaaa7.zip |
SONAR-9181 Make WS api/projects/search public
-rw-r--r-- | server/sonar-server/src/main/java/org/sonar/server/project/ws/SearchAction.java | 1 | ||||
-rw-r--r-- | server/sonar-server/src/test/java/org/sonar/server/project/ws/SearchActionTest.java | 2 |
2 files changed, 1 insertions, 2 deletions
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.<br>" + "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.<br>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) |