diff options
author | Steve Marion <steve.marion@sonarsource.com> | 2024-12-06 17:16:31 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-12-09 20:03:17 +0000 |
commit | 57c431bd702d717509aded6c4c6e0ad8f10a74a0 (patch) | |
tree | 4607f402c39b3462dc5132466f545eec1e6e1249 /server/sonar-webserver-core | |
parent | d2b48b2ebe30fe2726a1f28656f2fdb3dd7d7706 (diff) | |
download | sonarqube-57c431bd702d717509aded6c4c6e0ad8f10a74a0.tar.gz sonarqube-57c431bd702d717509aded6c4c6e0ad8f10a74a0.zip |
SONAR-23901 replace invalid documentation upgrade url.
Diffstat (limited to 'server/sonar-webserver-core')
2 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-webserver-core/src/main/java/org/sonar/server/platform/DatabaseServerCompatibility.java b/server/sonar-webserver-core/src/main/java/org/sonar/server/platform/DatabaseServerCompatibility.java index 9e94c11a24e..81a1f84f788 100644 --- a/server/sonar-webserver-core/src/main/java/org/sonar/server/platform/DatabaseServerCompatibility.java +++ b/server/sonar-webserver-core/src/main/java/org/sonar/server/platform/DatabaseServerCompatibility.java @@ -56,7 +56,7 @@ public class DatabaseServerCompatibility implements Startable { throw MessageException.of("The version of SonarQube you are trying to upgrade from is too old. Please upgrade to the " + MIN_UPGRADE_VERSION_HUMAN_READABLE + " Long-Term Active version first."); } - String documentationLink = documentationLinkGenerator.getDocumentationLink("/setup/upgrading"); + String documentationLink = documentationLinkGenerator.getDocumentationLink("/server-upgrade-and-maintenance/upgrade/upgrade-the-server/roadmap"); String msg = String.format("The database must be manually upgraded. Please backup the database and browse /setup. " + "For more information: %s", documentationLink); LoggerFactory.getLogger(DatabaseServerCompatibility.class).warn(msg); diff --git a/server/sonar-webserver-core/src/test/java/org/sonar/server/platform/DatabaseServerCompatibilityTest.java b/server/sonar-webserver-core/src/test/java/org/sonar/server/platform/DatabaseServerCompatibilityTest.java index 2f5d577beea..19a5a4412a5 100644 --- a/server/sonar-webserver-core/src/test/java/org/sonar/server/platform/DatabaseServerCompatibilityTest.java +++ b/server/sonar-webserver-core/src/test/java/org/sonar/server/platform/DatabaseServerCompatibilityTest.java @@ -69,17 +69,17 @@ public class DatabaseServerCompatibilityTest { public void log_warning_if_requires_upgrade() { when(version.getStatus()).thenReturn(DatabaseVersion.Status.REQUIRES_UPGRADE); when(version.getVersion()).thenReturn(Optional.of(DatabaseVersion.MIN_UPGRADE_VERSION)); - when(documentationLinkGenerator.getDocumentationLink("/setup/upgrading")).thenReturn("https://docs.sonarsource.com/sonarqube/latest/setup/upgrading"); + when(documentationLinkGenerator.getDocumentationLink("/server-upgrade-and-maintenance/upgrade/upgrade-the-server/roadmap")).thenReturn("[expected doc url]"); compatibility.start(); assertThat(logTester.logs()).hasSize(4); assertThat(logTester.logs(Level.WARN)).contains( "The database must be manually upgraded. Please backup the database and browse /setup. " - + "For more information: https://docs.sonarsource.com/sonarqube/latest/setup/upgrading", + + "For more information: [expected doc url]", "################################################################################", "The database must be manually upgraded. Please backup the database and browse /setup. " - + "For more information: https://docs.sonarsource.com/sonarqube/latest/setup/upgrading", + + "For more information: [expected doc url]", "################################################################################"); } |