aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-03-16 14:41:35 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-03-17 11:50:44 +0100
commit8759b3933d8bc4a147b7242e1838a39b82bcc719 (patch)
tree4ed7f6156f8ded0cc5ecac43e71c210d1e9fc265 /tests
parent26911c74d9e194ec7c5449ee51f140919a9c9e02 (diff)
downloadsonarqube-8759b3933d8bc4a147b7242e1838a39b82bcc719.tar.gz
sonarqube-8759b3933d8bc4a147b7242e1838a39b82bcc719.zip
Improve reliability of UpgradeTest
Do not test URLs on old versions of SQ. Checks are not valid.
Diffstat (limited to 'tests')
-rw-r--r--tests/upgrade/src/test/java/org/sonarsource/sonarqube/upgrade/UpgradeTest.java4
1 files changed, 3 insertions, 1 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 59d5abde857..96c0d296960 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
@@ -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")