]> source.dussan.org Git - sonarqube.git/commitdiff
Improve reliability of UpgradeTest 1806/head
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 16 Mar 2017 13:41:35 +0000 (14:41 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 17 Mar 2017 10:50:44 +0000 (11:50 +0100)
Do not test URLs on old versions of SQ. Checks
are not valid.

tests/upgrade/src/test/java/org/sonarsource/sonarqube/upgrade/UpgradeTest.java

index 59d5abde85711bf8c48532de90731ae1d14e34fc..96c0d296960b7a80360e56232ce201dd6f17c54d 100644 (file)
@@ -120,7 +120,9 @@ public class UpgradeTest {
 
   private void upgrade(Version sqVersion) {
     checkSystemStatus(sqVersion, ServerStatusResponse.Status.DB_MIGRATION_NEEDED);
-    checkUrlsBeforeUpgrade();
+    if (sqVersion.equals(VERSION_CURRENT)) {
+      checkUrlsBeforeUpgrade();
+    }
     ServerMigrationResponse serverMigrationResponse = new ServerMigrationCall(orchestrator).callAndWait();
     assertThat(serverMigrationResponse.getStatus())
       .describedAs("Migration status of version " + sqVersion + " should be MIGRATION_SUCCEEDED")