]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9181 Make WS api/projects/search public
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Wed, 6 Sep 2017 14:29:51 +0000 (16:29 +0200)
committerStas Vilchik <stas.vilchik@sonarsource.com>
Mon, 11 Sep 2017 09:28:29 +0000 (11:28 +0200)
server/sonar-server/src/main/java/org/sonar/server/project/ws/SearchAction.java
server/sonar-server/src/test/java/org/sonar/server/project/ws/SearchActionTest.java

index d7b62b90be4a172581d48efda1f05f8667e956dd..4c68af58ebed65465ef3f2738dae03ed1d895225 100644 (file)
@@ -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);
index c3dbd732374031753874b95bd034e7fe88b8e990..1e0ea685dda6d5f9cacb506fc6c5673646697eea 100644 (file)
@@ -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)