diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2017-05-19 14:29:20 +0200 |
---|---|---|
committer | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-06-09 08:26:48 +0200 |
commit | b1072e470eeeed332b9f6ef5b221486712648749 (patch) | |
tree | 5f43747aee7771701f9285a89a9ff5a114f92169 /it/it-tests/src | |
parent | b6ad5cfbba96fd03e03ec12a2fd45b96874368c3 (diff) | |
download | sonarqube-b1072e470eeeed332b9f6ef5b221486712648749.tar.gz sonarqube-b1072e470eeeed332b9f6ef5b221486712648749.zip |
SONAR-9245 facet new_security_rating in search_projects WS
Diffstat (limited to 'it/it-tests/src')
-rw-r--r-- | it/it-tests/src/test/java/it/projectSearch/SearchProjectsTest.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/it/it-tests/src/test/java/it/projectSearch/SearchProjectsTest.java b/it/it-tests/src/test/java/it/projectSearch/SearchProjectsTest.java index 3dc6497bb82..048cafe626b 100644 --- a/it/it-tests/src/test/java/it/projectSearch/SearchProjectsTest.java +++ b/it/it-tests/src/test/java/it/projectSearch/SearchProjectsTest.java @@ -200,7 +200,7 @@ public class SearchProjectsTest { analyzeProject(projectKey, "shared/xoo-history-v2"); SearchProjectsWsResponse response = searchProjects(SearchProjectsRequest.builder().setOrganization(organizationKey).setFacets(asList( - "new_reliability_rating")).build()); + "new_reliability_rating", "new_security_rating")).build()); checkFacet(response, "new_reliability_rating", tuple("1", 1L), @@ -208,6 +208,12 @@ public class SearchProjectsTest { tuple("3", 0L), tuple("4", 0L), tuple("5", 0L)); + checkFacet(response, "new_security_rating", + tuple("1", 1L), + tuple("2", 0L), + tuple("3", 0L), + tuple("4", 0L), + tuple("5", 0L)); } private void checkFacet(SearchProjectsWsResponse response, String facetKey, Tuple... values) { |