@@ -6,8 +6,8 @@ SonarQube provides the capability to not only show the health of an application | |||
## Links | |||
- [Website](https://www.sonarqube.org) | |||
- [Download](https://www.sonarqube.org/downloads/) | |||
- [Website](https://www.sonarsource.com/products/sonarqube) | |||
- [Download](https://www.sonarsource.com/products/sonarqube/downloads) | |||
- [Documentation](https://docs.sonarsource.com/sonarqube) | |||
- [Twitter](https://twitter.com/SonarQube) | |||
- [SonarSource](https://www.sonarsource.com), author of SonarQube |
@@ -625,10 +625,10 @@ subprojects { | |||
pom { | |||
name = 'SonarQube' | |||
description = project.description | |||
url = 'http://www.sonarqube.org/' | |||
url = 'https://www.sonarsource.com/products/sonarqube' | |||
organization { | |||
name = 'SonarSource' | |||
url = 'http://www.sonarsource.com' | |||
url = 'https://www.sonarsource.com' | |||
} | |||
licenses { | |||
license { |
@@ -104,7 +104,7 @@ public class PersistProjectLinksStepIT extends BaseStepTest { | |||
.setRef(1) | |||
.setType(ComponentType.PROJECT) | |||
.addChildRef(2) | |||
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("http://www.sonarqube.org").build()) | |||
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("https://www.sonarsource.com/products/sonarqube").build()) | |||
.addLink(ScannerReport.ComponentLink.newBuilder().setType(SCM).setHref("https://github.com/SonarSource/sonar").build()) | |||
.addLink(ScannerReport.ComponentLink.newBuilder().setType(ISSUE).setHref("http://jira.sonarsource.com/").build()) | |||
.addLink(ScannerReport.ComponentLink.newBuilder().setType(CI).setHref("http://bamboo.ci.codehaus.org/browse/SONAR").build()) | |||
@@ -115,7 +115,7 @@ public class PersistProjectLinksStepIT extends BaseStepTest { | |||
assertThat(db.getDbClient().projectLinkDao().selectByProjectUuid(db.getSession(), project.projectUuid())) | |||
.extracting(ProjectLinkDto::getType, ProjectLinkDto::getHref, ProjectLinkDto::getName) | |||
.containsExactlyInAnyOrder( | |||
tuple("homepage", "http://www.sonarqube.org", null), | |||
tuple("homepage", "https://www.sonarsource.com/products/sonarqube", null), | |||
tuple("scm", "https://github.com/SonarSource/sonar", null), | |||
tuple("issue", "http://jira.sonarsource.com/", null), | |||
tuple("ci", "http://bamboo.ci.codehaus.org/browse/SONAR", null)); | |||
@@ -124,21 +124,21 @@ public class PersistProjectLinksStepIT extends BaseStepTest { | |||
@Test | |||
public void nothing_to_do_when_link_already_exists() { | |||
mockBranch(true); | |||
db.projectLinks().insertProvidedLink(project.getProjectDto(), l -> l.setType("homepage").setName("Home").setHref("http://www.sonarqube.org")); | |||
db.projectLinks().insertProvidedLink(project.getProjectDto(), l -> l.setType("homepage").setName("Home").setHref("https://www.sonarsource.com/products/sonarqube")); | |||
treeRootHolder.setRoot(ReportComponent.builder(Component.Type.PROJECT, 1).setUuid(project.getMainBranchComponent().uuid()).build()); | |||
reportReader.putComponent(ScannerReport.Component.newBuilder() | |||
.setRef(1) | |||
.setType(ComponentType.PROJECT) | |||
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("http://www.sonarqube.org").build()) | |||
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("https://www.sonarsource.com/products/sonarqube").build()) | |||
.build()); | |||
underTest.execute(new TestComputationStepContext()); | |||
assertThat(db.getDbClient().projectLinkDao().selectByProjectUuid(db.getSession(), project.projectUuid())) | |||
.extracting(ProjectLinkDto::getType, ProjectLinkDto::getHref) | |||
.containsExactlyInAnyOrder(tuple("homepage", "http://www.sonarqube.org")); | |||
.containsExactlyInAnyOrder(tuple("homepage", "https://www.sonarsource.com/products/sonarqube")); | |||
} | |||
@Test | |||
@@ -153,7 +153,7 @@ public class PersistProjectLinksStepIT extends BaseStepTest { | |||
reportReader.putComponent(ScannerReport.Component.newBuilder() | |||
.setRef(2) | |||
.setType(ComponentType.MODULE) | |||
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("http://www.sonarqube.org").build()) | |||
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("https://www.sonarsource.com/products/sonarqube").build()) | |||
.build()); | |||
underTest.execute(new TestComputationStepContext()); | |||
@@ -176,7 +176,7 @@ public class PersistProjectLinksStepIT extends BaseStepTest { | |||
reportReader.putComponent(ScannerReport.Component.newBuilder() | |||
.setRef(2) | |||
.setType(ComponentType.FILE) | |||
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("http://www.sonarqube.org").build()) | |||
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("https://www.sonarsource.com/products/sonarqube").build()) | |||
.build()); | |||
underTest.execute(new TestComputationStepContext()); | |||
@@ -193,14 +193,14 @@ public class PersistProjectLinksStepIT extends BaseStepTest { | |||
reportReader.putComponent(ScannerReport.Component.newBuilder() | |||
.setRef(1) | |||
.setType(ComponentType.PROJECT) | |||
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("http://www.sonarqube.org").build()) | |||
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("https://www.sonarsource.com/products/sonarqube").build()) | |||
.build()); | |||
underTest.execute(new TestComputationStepContext()); | |||
assertThat(db.getDbClient().projectLinkDao().selectByProjectUuid(db.getSession(), project.getProjectDto().getUuid())) | |||
.extracting(ProjectLinkDto::getType, ProjectLinkDto::getHref) | |||
.containsExactlyInAnyOrder(tuple("homepage", "http://www.sonarqube.org")); | |||
.containsExactlyInAnyOrder(tuple("homepage", "https://www.sonarsource.com/products/sonarqube")); | |||
} | |||
@Test | |||
@@ -245,8 +245,8 @@ public class PersistProjectLinksStepIT extends BaseStepTest { | |||
reportReader.putComponent(ScannerReport.Component.newBuilder() | |||
.setRef(1) | |||
.setType(ComponentType.PROJECT) | |||
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("http://www.sonarqube.org").build()) | |||
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("http://www.sonarqube.org").build()) | |||
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("https://www.sonarsource.com/products/sonarqube").build()) | |||
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("https://www.sonarsource.com/products/sonarqube").build()) | |||
.build()); | |||
assertThatThrownBy(() -> underTest.execute(new TestComputationStepContext())) |
@@ -52,7 +52,7 @@ public class HandleUnanalyzedLanguagesStep implements ComputationStep { | |||
static final String DESCRIPTION = "Check upgrade possibility for not analyzed code files."; | |||
private static final String LANGUAGE_UPGRADE_MESSAGE = "%s detected in this project during the last analysis. %s cannot be analyzed with your" + | |||
" current SonarQube edition. Please consider <a target=\"_blank\" href=\"https://www.sonarqube.org/trial-request/developer-edition/?referrer=sonarqube-cpp\">upgrading to" + | |||
" current SonarQube edition. Please consider <a target=\"_blank\" href=\"https://www.sonarsource.com/plans-and-pricing/developer/?referrer=sonarqube-cpp\">upgrading to" + | |||
" Developer Edition</a> to find Bugs, Code Smells, Vulnerabilities and Security Hotspots in %s."; | |||
private final BatchReportReader reportReader; |
@@ -110,7 +110,7 @@ public class HandleUnanalyzedLanguagesStepTest { | |||
.containsExactly(tuple( | |||
"10 unanalyzed C, 20 unanalyzed C++ and 1000 unanalyzed SomeLang files were detected in this project during the last analysis. C," + | |||
" C++ and SomeLang cannot be analyzed with your current SonarQube edition. Please consider" + | |||
" <a target=\"_blank\" href=\"https://www.sonarqube.org/trial-request/developer-edition/?referrer=sonarqube-cpp\">upgrading to Developer Edition</a> to find Bugs," + | |||
" <a target=\"_blank\" href=\"https://www.sonarsource.com/plans-and-pricing/developer/?referrer=sonarqube-cpp\">upgrading to Developer Edition</a> to find Bugs," + | |||
" Code Smells, Vulnerabilities and Security Hotspots in these files.", | |||
MessageType.SUGGEST_DEVELOPER_EDITION_UPGRADE)); | |||
assertThat(measureRepository.getAddedRawMeasure(PROJECT_REF, UNANALYZED_C_KEY).get().getIntValue()).isEqualTo(10); | |||
@@ -130,7 +130,7 @@ public class HandleUnanalyzedLanguagesStepTest { | |||
List<CeTaskMessages.Message> messages = argumentCaptor.getAllValues(); | |||
assertThat(messages).extracting(CeTaskMessages.Message::getText).containsExactly( | |||
"10 unanalyzed C files were detected in this project during the last analysis. C cannot be analyzed with your current SonarQube edition. Please" + | |||
" consider <a target=\"_blank\" href=\"https://www.sonarqube.org/trial-request/developer-edition/?referrer=sonarqube-cpp\">upgrading to Developer" + | |||
" consider <a target=\"_blank\" href=\"https://www.sonarsource.com/plans-and-pricing/developer/?referrer=sonarqube-cpp\">upgrading to Developer" + | |||
" Edition</a> to find Bugs, Code Smells, Vulnerabilities and Security Hotspots in this file."); | |||
assertThat(measureRepository.getAddedRawMeasure(PROJECT_REF, UNANALYZED_C_KEY).get().getIntValue()).isEqualTo(10); | |||
assertThat(measureRepository.getAddedRawMeasure(PROJECT_REF, UNANALYZED_CPP_KEY)).isEmpty(); | |||
@@ -149,7 +149,7 @@ public class HandleUnanalyzedLanguagesStepTest { | |||
List<CeTaskMessages.Message> messages = argumentCaptor.getAllValues(); | |||
assertThat(messages).extracting(CeTaskMessages.Message::getText).containsExactly( | |||
"1 unanalyzed C++ file was detected in this project during the last analysis. C++ cannot be analyzed with your current SonarQube edition. Please" + | |||
" consider <a target=\"_blank\" href=\"https://www.sonarqube.org/trial-request/developer-edition/?referrer=sonarqube-cpp\">upgrading to Developer" + | |||
" consider <a target=\"_blank\" href=\"https://www.sonarsource.com/plans-and-pricing/developer/?referrer=sonarqube-cpp\">upgrading to Developer" + | |||
" Edition</a> to find Bugs, Code Smells, Vulnerabilities and Security Hotspots in this file."); | |||
assertThat(measureRepository.getAddedRawMeasure(PROJECT_REF, UNANALYZED_CPP_KEY).get().getIntValue()).isOne(); | |||
assertThat(measureRepository.getAddedRawMeasure(PROJECT_REF, UNANALYZED_C_KEY)).isEmpty(); |
@@ -140,7 +140,7 @@ public class ProjectLinkDaoIT { | |||
.setProjectUuid(project2.uuid()) | |||
.setType("homepage") | |||
.setName("Home") | |||
.setHref("http://www.sonarqube.org")); | |||
.setHref("https://www.sonarsource.com/products/sonarqube")); | |||
db.getSession().commit(); | |||
ProjectLinkDto reloaded = underTest.selectByUuid(db.getSession(), link.getUuid()); | |||
@@ -148,7 +148,7 @@ public class ProjectLinkDaoIT { | |||
assertThat(reloaded.getProjectUuid()).isEqualTo(project2.uuid()); | |||
assertThat(reloaded.getType()).isEqualTo("homepage"); | |||
assertThat(reloaded.getName()).isEqualTo("Home"); | |||
assertThat(reloaded.getHref()).isEqualTo("http://www.sonarqube.org"); | |||
assertThat(reloaded.getHref()).isEqualTo("https://www.sonarsource.com/products/sonarqube"); | |||
assertThat(reloaded.getCreatedAt()).isEqualTo(PAST); | |||
assertThat(reloaded.getUpdatedAt()).isEqualTo(NOW); | |||
} |
@@ -32,7 +32,7 @@ public class ProjectLinkDtoTest { | |||
.setProjectUuid("EFGH") | |||
.setType("homepage") | |||
.setName("Home") | |||
.setHref("http://www.sonarqube.org") | |||
.setHref("https://www.sonarsource.com/products/sonarqube") | |||
.setCreatedAt(1_000_000_000L) | |||
.setUpdatedAt(5_000_000_000L); | |||
@@ -40,7 +40,7 @@ public class ProjectLinkDtoTest { | |||
assertThat(dto.getProjectUuid()).isEqualTo("EFGH"); | |||
assertThat(dto.getType()).isEqualTo("homepage"); | |||
assertThat(dto.getName()).isEqualTo("Home"); | |||
assertThat(dto.getHref()).isEqualTo("http://www.sonarqube.org"); | |||
assertThat(dto.getHref()).isEqualTo("https://www.sonarsource.com/products/sonarqube"); | |||
assertThat(dto.getCreatedAt()).isEqualTo(1_000_000_000L); | |||
assertThat(dto.getUpdatedAt()).isEqualTo(5_000_000_000L); | |||
} |
@@ -41,15 +41,19 @@ export default function FormattingHelp() { | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>https://sonarqube.org</td> | |||
<td>https://www.sonarsource.com/products/sonarqube</td> | |||
<td className="markdown"> | |||
<a href="https://sonarqube.org">https://sonarqube.org</a> | |||
<a href="https://www.sonarsource.com/products/sonarqube"> | |||
https://www.sonarsource.com/products/sonarqube | |||
</a> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td className="text-top">[SonarQube™ Home Page](https://www.sonarqube.org)</td> | |||
<td className="text-top"> | |||
[SonarQube™ Home Page](https://www.sonarsource.com/products/sonarqube) | |||
</td> | |||
<td className="markdown text-top"> | |||
<a href="https://www.sonarqube.org">SonarQube™ Home Page</a> | |||
<a href="https://www.sonarsource.com/products/sonarqube">SonarQube™ Home Page</a> | |||
</td> | |||
</tr> | |||
<tr> |
@@ -34,7 +34,7 @@ export default function GlobalFooterBranding() { | |||
<div> | |||
This application is based on{' '} | |||
<a | |||
href="https://www.sonarqube.org/?referrer=sonarqube" | |||
href="https://www.sonarsource.com/products/sonarqube/?referrer=sonarqube" | |||
rel="noopener noreferrer" | |||
target="_blank" | |||
title="SonarQube™" |
@@ -58,7 +58,7 @@ export function PromotionNotification(props: CurrentUserContextInterface) { | |||
<div className="toaster-actions spacer-left padded-left display-flex-column display-flex-center"> | |||
<a | |||
className="button button-primary big-spacer-bottom" | |||
href="https://www.sonarqube.org/sonarlint/?referrer=sonarqube-welcome" | |||
href="https://www.sonarsource.com/products/sonarlint/?referrer=sonarqube-welcome" | |||
rel="noreferrer" | |||
onClick={onClick} | |||
target="_blank" |
@@ -36,7 +36,7 @@ exports[`should render correctly: loggedIn 1`] = ` | |||
> | |||
<a | |||
className="button button-primary big-spacer-bottom" | |||
href="https://www.sonarqube.org/sonarlint/?referrer=sonarqube-welcome" | |||
href="https://www.sonarsource.com/products/sonarlint/?referrer=sonarqube-welcome" | |||
onClick={[Function]} | |||
rel="noreferrer" | |||
target="_blank" |
@@ -32,7 +32,7 @@ export default function NoWorkersSupportPopup() { | |||
</p> | |||
<p> | |||
<Link | |||
to="https://www.sonarqube.org/trial-request/enterprise-edition/?referrer=sonarqube-background-tasks" | |||
to="https://www.sonarsource.com/plans-and-pricing/enterprise/?referrer=sonarqube-background-tasks" | |||
target="_blank" | |||
> | |||
{translate('learn_more')} |
@@ -64,7 +64,7 @@ export function SonarLintPromotion({ currentUser, qgConditions }: SonarLintPromo | |||
link: ( | |||
<> | |||
<DiscreetLink | |||
to="https://www.sonarqube.org/sonarlint/?referrer=sonarqube" | |||
to="https://www.sonarsource.com/products/sonarlint/features/connected-mode/?referrer=sonarqube" | |||
rel="noopener noreferrer" | |||
target="_blank" | |||
showExternalIcon={false} |
@@ -99,11 +99,11 @@ export function EmbedDocsPopup() { | |||
<ItemDivider /> | |||
<ItemHeader id="stay_connected">{translate('docs.stay_connected')}</ItemHeader> | |||
<IconLink | |||
link="https://www.sonarqube.org/whats-new/?referrer=sonarqube" | |||
link="https://www.sonarsource.com/products/sonarqube/whats-new/?referrer=sonarqube" | |||
text={translate('docs.news')} | |||
/> | |||
<IconLink | |||
link="https://www.sonarqube.org/roadmap/?referrer=sonarqube" | |||
link="https://www.sonarsource.com/products/sonarqube/roadmap/?referrer=sonarqube" | |||
text={translate('docs.roadmap')} | |||
/> | |||
<IconLink |
@@ -49,7 +49,7 @@ export function SonarLintBadge({ quickFixAvailable }: { quickFixAvailable?: bool | |||
values={{ | |||
link: ( | |||
<Link | |||
to="https://www.sonarqube.org/sonarlint/?referrer=sonarqube-quick-fix" | |||
to="https://www.sonarsource.com/products/sonarlint/features/connected-mode/?referrer=sonarqube-quick-fix" | |||
target="_blank" | |||
> | |||
SonarLint |
@@ -106,7 +106,7 @@ export function SystemUpgradeForm(props: Readonly<Props>) { | |||
<div className="modal-foot"> | |||
<Link | |||
className="pull-left link-no-underline display-flex-center" | |||
to="https://www.sonarqube.org/downloads/?referrer=sonarqube" | |||
to="https://www.sonarsource.com/products/sonarqube/downloads/?referrer=sonarqube" | |||
target="_blank" | |||
> | |||
{translate('system.see_sonarqube_downloads')} |
@@ -60,7 +60,7 @@ export default function SystemUpgradeItem(props: SystemUpgradeItemProps) { | |||
{!isPatch && ( | |||
<Link | |||
className="spacer-left medium" | |||
to="https://www.sonarqube.org/whats-new/?referrer=sonarqube" | |||
to="https://www.sonarsource.com/products/sonarqube/whats-new/?referrer=sonarqube" | |||
target="_blank" | |||
> | |||
{translate('system.see_whats_new')} |
@@ -82,7 +82,7 @@ exports[`should display correctly for new_minor_version 1`] = ` | |||
<ForwardRef(Link) | |||
className="pull-left link-no-underline display-flex-center" | |||
target="_blank" | |||
to="https://www.sonarqube.org/downloads/?referrer=sonarqube" | |||
to="https://www.sonarsource.com/products/sonarqube/downloads/?referrer=sonarqube" | |||
> | |||
system.see_sonarqube_downloads | |||
</ForwardRef(Link)> | |||
@@ -183,7 +183,7 @@ exports[`should display correctly for new_patch 1`] = ` | |||
<ForwardRef(Link) | |||
className="pull-left link-no-underline display-flex-center" | |||
target="_blank" | |||
to="https://www.sonarqube.org/downloads/?referrer=sonarqube" | |||
to="https://www.sonarsource.com/products/sonarqube/downloads/?referrer=sonarqube" | |||
> | |||
system.see_sonarqube_downloads | |||
</ForwardRef(Link)> | |||
@@ -284,7 +284,7 @@ exports[`should display correctly for pre_lts 1`] = ` | |||
<ForwardRef(Link) | |||
className="pull-left link-no-underline display-flex-center" | |||
target="_blank" | |||
to="https://www.sonarqube.org/downloads/?referrer=sonarqube" | |||
to="https://www.sonarsource.com/products/sonarqube/downloads/?referrer=sonarqube" | |||
> | |||
system.see_sonarqube_downloads | |||
</ForwardRef(Link)> | |||
@@ -385,7 +385,7 @@ exports[`should display correctly for previous_lts 1`] = ` | |||
<ForwardRef(Link) | |||
className="pull-left link-no-underline display-flex-center" | |||
target="_blank" | |||
to="https://www.sonarqube.org/downloads/?referrer=sonarqube" | |||
to="https://www.sonarsource.com/products/sonarqube/downloads/?referrer=sonarqube" | |||
> | |||
system.see_sonarqube_downloads | |||
</ForwardRef(Link)> | |||
@@ -480,7 +480,7 @@ exports[`should display correctly for undefined 1`] = ` | |||
<ForwardRef(Link) | |||
className="pull-left link-no-underline display-flex-center" | |||
target="_blank" | |||
to="https://www.sonarqube.org/downloads/?referrer=sonarqube" | |||
to="https://www.sonarsource.com/products/sonarqube/downloads/?referrer=sonarqube" | |||
> | |||
system.see_sonarqube_downloads | |||
</ForwardRef(Link)> |
@@ -13,7 +13,7 @@ exports[`should display correctly 1`] = ` | |||
<ForwardRef(Link) | |||
className="spacer-left medium" | |||
target="_blank" | |||
to="https://www.sonarqube.org/whats-new/?referrer=sonarqube" | |||
to="https://www.sonarsource.com/products/sonarqube/whats-new/?referrer=sonarqube" | |||
> | |||
system.see_whats_new | |||
</ForwardRef(Link)> | |||
@@ -112,7 +112,7 @@ exports[`should display correctly 2`] = ` | |||
<ForwardRef(Link) | |||
className="spacer-left medium" | |||
target="_blank" | |||
to="https://www.sonarqube.org/whats-new/?referrer=sonarqube" | |||
to="https://www.sonarsource.com/products/sonarqube/whats-new/?referrer=sonarqube" | |||
> | |||
system.see_whats_new | |||
</ForwardRef(Link)> | |||
@@ -303,7 +303,7 @@ exports[`should display correctly 4`] = ` | |||
<ForwardRef(Link) | |||
className="spacer-left medium" | |||
target="_blank" | |||
to="https://www.sonarqube.org/whats-new/?referrer=sonarqube" | |||
to="https://www.sonarsource.com/products/sonarqube/whats-new/?referrer=sonarqube" | |||
> | |||
system.see_whats_new | |||
</ForwardRef(Link)> | |||
@@ -402,7 +402,7 @@ exports[`should display correctly 5`] = ` | |||
<ForwardRef(Link) | |||
className="spacer-left medium" | |||
target="_blank" | |||
to="https://www.sonarqube.org/whats-new/?referrer=sonarqube" | |||
to="https://www.sonarsource.com/products/sonarqube/whats-new/?referrer=sonarqube" | |||
> | |||
system.see_whats_new | |||
</ForwardRef(Link)> | |||
@@ -501,7 +501,7 @@ exports[`should display correctly 6`] = ` | |||
<ForwardRef(Link) | |||
className="spacer-left medium" | |||
target="_blank" | |||
to="https://www.sonarqube.org/whats-new/?referrer=sonarqube" | |||
to="https://www.sonarsource.com/products/sonarqube/whats-new/?referrer=sonarqube" | |||
> | |||
system.see_whats_new | |||
</ForwardRef(Link)> | |||
@@ -600,7 +600,7 @@ exports[`should display correctly 7`] = ` | |||
<ForwardRef(Link) | |||
className="spacer-left medium" | |||
target="_blank" | |||
to="https://www.sonarqube.org/whats-new/?referrer=sonarqube" | |||
to="https://www.sonarsource.com/products/sonarqube/whats-new/?referrer=sonarqube" | |||
> | |||
system.see_whats_new | |||
</ForwardRef(Link)> |
@@ -1,3 +1,3 @@ | |||
{ | |||
"message": "Login message set by admin with a link to [SonarQube Home Page](https://www.sonarqube.org)" | |||
"message": "Login message set by admin with a link to [SonarQube Home Page](https://www.sonarsource.com/products/sonarqube)" | |||
} |
@@ -42,8 +42,8 @@ public class LoginMessageActionTest { | |||
private final LoginMessageFeature loginMessageFeature = mock(LoginMessageFeature.class); | |||
private final LoginMessageAction underTest = new LoginMessageAction(dbClient, loginMessageFeature); | |||
private final WsActionTester ws = new WsActionTester(underTest); | |||
private static final String LOGIN_MESSAGE_TEXT = "test link [SonarQube™ Home Page](https://www.sonarqube.org)\n* list 1\n* list 2"; | |||
private static final String FORMATTED_LOGIN_MESSAGE_TEXT = "test link \\u003ca href\\u003d\\\"https://www.sonarqube.org\\\" target\\u003d\\\"_blank\\\" rel\\u003d\\\"noopener noreferrer\\\"\\u003eSonarQube\\u0026trade; Home Page\\u003c/a\\u003e\\u003cbr/\\u003e\\u003cul\\u003e\\u003cli\\u003elist 1\\u003c/li\\u003e\\n\\u003cli\\u003elist 2\\u003c/li\\u003e\\u003c/ul\\u003e"; | |||
private static final String LOGIN_MESSAGE_TEXT = "test link [SonarQube™ Home Page](https://www.sonarsource.com/products/sonarqube)\n* list 1\n* list 2"; | |||
private static final String FORMATTED_LOGIN_MESSAGE_TEXT = "test link \\u003ca href\\u003d\\\"https://www.sonarsource.com/products/sonarqube\\\" target\\u003d\\\"_blank\\\" rel\\u003d\\\"noopener noreferrer\\\"\\u003eSonarQube\\u0026trade; Home Page\\u003c/a\\u003e\\u003cbr/\\u003e\\u003cul\\u003e\\u003cli\\u003elist 1\\u003c/li\\u003e\\n\\u003cli\\u003elist 2\\u003c/li\\u003e\\u003c/ul\\u003e"; | |||
private static final String JSON_RESPONSE = "{\"message\":\"" + FORMATTED_LOGIN_MESSAGE_TEXT + "\"}"; | |||
private static final String EMPTY_JSON_RESPONSE = "{\"message\":\"\"}"; | |||
private PropertiesDao propertiesDao; |