diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-03-09 10:14:16 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-03-09 10:14:16 +0100 |
commit | a2a020abc7e4fca309185338ad71883d18ac53c3 (patch) | |
tree | d4f08c940234fe7ee482a103790b83edf41a8022 /tests/upgrade | |
parent | b9799ecd20c760f5b5ac9aa334abcbd9d4ed1b64 (diff) | |
download | sonarqube-a2a020abc7e4fca309185338ad71883d18ac53c3.tar.gz sonarqube-a2a020abc7e4fca309185338ad71883d18ac53c3.zip |
Fix WS assertion in upgrade tests
Diffstat (limited to 'tests/upgrade')
-rw-r--r-- | tests/upgrade/src/test/java/org/sonarsource/sonarqube/upgrade/UpgradeTest.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/upgrade/src/test/java/org/sonarsource/sonarqube/upgrade/UpgradeTest.java b/tests/upgrade/src/test/java/org/sonarsource/sonarqube/upgrade/UpgradeTest.java index 78108ddc1a4..991ef037cdb 100644 --- a/tests/upgrade/src/test/java/org/sonarsource/sonarqube/upgrade/UpgradeTest.java +++ b/tests/upgrade/src/test/java/org/sonarsource/sonarqube/upgrade/UpgradeTest.java @@ -78,7 +78,6 @@ public class UpgradeTest { checkSystemStatus(ServerStatusResponse.Status.UP); assertThat(countFiles(PROJECT_KEY)).isEqualTo(files); - browseWebapp(); scanProject(); assertThat(countFiles(PROJECT_KEY)).isEqualTo(files); browseWebapp(); @@ -92,9 +91,9 @@ public class UpgradeTest { private void browseWebapp() { testUrl("/"); - testUrl("/api/issues/search"); - testUrl("/api/components/tree"); - testUrl("/api/measures/component_tree?baseComponentKey=org.apache.struts%3Astruts-core"); + testUrl("/api/issues/search?projectKeys=org.apache.struts%3Astruts-core"); + testUrl("/api/components/tree?baseComponentKey=org.apache.struts%3Astruts-core"); + testUrl("/api/measures/component_tree?baseComponentKey=org.apache.struts%3Astruts-core&metricKeys=ncloc,files,violations"); testUrl("/api/qualityprofiles/search"); testUrl("/issues/index"); testUrl("/dashboard/index/org.apache.struts:struts-parent"); |