aboutsummaryrefslogtreecommitdiffstats
path: root/it/it-tests
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2017-05-19 16:58:47 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-06-09 08:26:48 +0200
commit226049fc27425f1dc7a7232864fe5da5f93eb022 (patch)
tree0ca3a6c64d9ab03c730582f626fc48ced631cf32 /it/it-tests
parentb1072e470eeeed332b9f6ef5b221486712648749 (diff)
downloadsonarqube-226049fc27425f1dc7a7232864fe5da5f93eb022.tar.gz
sonarqube-226049fc27425f1dc7a7232864fe5da5f93eb022.zip
SONAR-9245 facet new_maintainability_rating in search_projects WS
Diffstat (limited to 'it/it-tests')
-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 048cafe626b..1f6e2c9cae9 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")).build());
+ "new_reliability_rating", "new_security_rating", "new_maintainability_rating")).build());
checkFacet(response, "new_reliability_rating",
tuple("1", 1L),
@@ -214,6 +214,12 @@ public class SearchProjectsTest {
tuple("3", 0L),
tuple("4", 0L),
tuple("5", 0L));
+ checkFacet(response, "new_maintainability_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) {