aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2017-09-06 16:29:51 +0200
committerStas Vilchik <stas.vilchik@sonarsource.com>2017-09-11 11:28:29 +0200
commit8cd67853ecc669b921e73b345636dab7af2eaaa7 (patch)
treee420d2e94aac911f57f234ec51eadfd704bbf279
parent920bebc83b3ac1f7badf7976c919d16088320078 (diff)
downloadsonarqube-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.java1
-rw-r--r--server/sonar-server/src/test/java/org/sonar/server/project/ws/SearchActionTest.java2
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)