aboutsummaryrefslogtreecommitdiffstats
path: root/it/it-tests/src
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2017-05-19 17:13:18 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-06-09 08:26:48 +0200
commit6e71f912a66cf1c7045e8f2432b62234d5d811a1 (patch)
treef262d86d618e6c3615e31959a46b9d5b33c35403 /it/it-tests/src
parent226049fc27425f1dc7a7232864fe5da5f93eb022 (diff)
downloadsonarqube-6e71f912a66cf1c7045e8f2432b62234d5d811a1.tar.gz
sonarqube-6e71f912a66cf1c7045e8f2432b62234d5d811a1.zip
SONAR-9245 facet new_coverage in search_projects WS
Diffstat (limited to 'it/it-tests/src')
-rw-r--r--it/it-tests/src/test/java/it/projectSearch/SearchProjectsTest.java8
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 1f6e2c9cae9..a8bc32a5250 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", "new_security_rating", "new_maintainability_rating")).build());
+ "new_reliability_rating", "new_security_rating", "new_maintainability_rating", "new_coverage")).build());
checkFacet(response, "new_reliability_rating",
tuple("1", 1L),
@@ -220,6 +220,12 @@ public class SearchProjectsTest {
tuple("3", 0L),
tuple("4", 0L),
tuple("5", 0L));
+ checkFacet(response, "new_coverage",
+ tuple("*-30.0", 0L),
+ tuple("30.0-50.0", 0L),
+ tuple("50.0-70.0", 0L),
+ tuple("70.0-80.0", 0L),
+ tuple("80.0-*", 0L));
}
private void checkFacet(SearchProjectsWsResponse response, String facetKey, Tuple... values) {