aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/test/java/org
diff options
context:
space:
mode:
authorMark Rekveld <mark.rekveld@sonarsource.com>2021-01-14 14:07:06 +0100
committersonartech <sonartech@sonarsource.com>2021-01-14 20:30:31 +0000
commitfdb9e5604214fea10568d3798a8475a9302aad52 (patch)
tree53e2bd4e1af5a1b2d5aecb912fb9e1923e522791 /sonar-scanner-engine/src/test/java/org
parentdf9f136ff0ebffba8e32b98c100da9923deb6f0a (diff)
downloadsonarqube-fdb9e5604214fea10568d3798a8475a9302aad52.tar.gz
sonarqube-fdb9e5604214fea10568d3798a8475a9302aad52.zip
SONAR-14340 - ‘Not authorized’ analysis should prompt for a token, not login/password
Diffstat (limited to 'sonar-scanner-engine/src/test/java/org')
-rw-r--r--sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/DefaultScannerWsClientTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/DefaultScannerWsClientTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/DefaultScannerWsClientTest.java
index 0895fe1e936..edb626dc205 100644
--- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/DefaultScannerWsClientTest.java
+++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/DefaultScannerWsClientTest.java
@@ -93,7 +93,7 @@ public class DefaultScannerWsClientTest {
public void fail_if_requires_credentials() {
expectedException.expect(MessageException.class);
expectedException
- .expectMessage("Not authorized. Analyzing this project requires to be authenticated. Please provide the values of the properties sonar.login and sonar.password.");
+ .expectMessage("Not authorized. Analyzing this project requires authentication. Please provide a user token in sonar.login or other credentials in sonar.login and sonar.password.");
WsRequest request = newRequest();
WsResponse response = newResponse().setCode(401);