diff options
author | stanislavh <stanislav.honcharov@sonarsource.com> | 2024-04-09 14:34:20 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-04-10 20:02:53 +0000 |
commit | 03dac47b7871900ee88f0e8584b6f1b98c4738cb (patch) | |
tree | 45863a2b41cebcf451018af69d5abdaf7c99900e /server | |
parent | ecdde07064702a375eff133e94d1c1dc0b65ecf8 (diff) | |
download | sonarqube-03dac47b7871900ee88f0e8584b6f1b98c4738cb.tar.gz sonarqube-03dac47b7871900ee88f0e8584b6f1b98c4738cb.zip |
SONAR-21999 Change lts wording to lta
Diffstat (limited to 'server')
2 files changed, 3 insertions, 3 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 c7d15567768..25596c1abd8 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 @@ -52,7 +52,7 @@ public class DatabaseServerCompatibility implements Startable { if (status == DatabaseVersion.Status.REQUIRES_UPGRADE) { Optional<Long> currentVersion = this.version.getVersion(); if (currentVersion.isPresent() && currentVersion.get() < DatabaseVersion.MIN_UPGRADE_VERSION) { - throw MessageException.of("Current version is too old. Please upgrade to Long Term Support version firstly."); + throw MessageException.of("The version of SonarQube is too old. Please upgrade to the Long-Term Active version first."); } boolean blueGreen = configuration.getBoolean(ProcessProperties.Property.BLUE_GREEN_ENABLED.getKey()).orElse(false); if (!blueGreen) { 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 dd4a986497f..334ab3bb43c 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 @@ -52,7 +52,7 @@ public class DatabaseServerCompatibilityTest { } @Test - public void fail_if_requires_firstly_to_upgrade_to_lts() { + public void fail_if_requires_firstly_to_upgrade_to_lta() { DatabaseVersion version = mock(DatabaseVersion.class); when(version.getStatus()).thenReturn(DatabaseVersion.Status.REQUIRES_UPGRADE); when(version.getVersion()).thenReturn(Optional.of(12L)); @@ -60,7 +60,7 @@ public class DatabaseServerCompatibilityTest { var compatibility = new DatabaseServerCompatibility(version, config); assertThatThrownBy(compatibility::start) .isInstanceOf(MessageException.class) - .hasMessage("Current version is too old. Please upgrade to Long Term Support version firstly."); + .hasMessage("The version of SonarQube is too old. Please upgrade to the Long-Term Active version first."); } @Test |