diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-10-02 14:48:30 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-10-02 18:04:42 +0200 |
commit | 3601435b31bfdeaee7a7e2251d275e4b1a9e254e (patch) | |
tree | 6ff7f0df01d1351f37325e930cce037c03f57cb3 /tests | |
parent | cf6b9cb7a653e875f693a8364642411b46d38d95 (diff) | |
download | sonarqube-3601435b31bfdeaee7a7e2251d275e4b1a9e254e.tar.gz sonarqube-3601435b31bfdeaee7a7e2251d275e4b1a9e254e.zip |
SONAR-9896 Webhook must support basic authentication
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/test/java/org/sonarqube/tests/user/LocalAuthenticationTest.java | 4 | ||||
-rw-r--r-- | tests/src/test/java/org/sonarqube/tests/webhook/WebhooksTest.java | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/src/test/java/org/sonarqube/tests/user/LocalAuthenticationTest.java b/tests/src/test/java/org/sonarqube/tests/user/LocalAuthenticationTest.java index d5b8a50240c..7c17b06599a 100644 --- a/tests/src/test/java/org/sonarqube/tests/user/LocalAuthenticationTest.java +++ b/tests/src/test/java/org/sonarqube/tests/user/LocalAuthenticationTest.java @@ -139,7 +139,7 @@ public class LocalAuthenticationTest { } @Test - public void basic_authentication_does_not_support_utf8_passwords() { + public void basic_authentication_supports_utf8_passwords() { String login = "user_with_utf8_password"; // see http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt String password = "κόσμε"; @@ -148,7 +148,7 @@ public class LocalAuthenticationTest { tester.users().generate(u -> u.setLogin(login).setPassword(password)); // authenticate - assertThat(checkAuthenticationWithAuthenticateWebService(login, password)).isFalse(); + assertThat(checkAuthenticationWithAuthenticateWebService(login, password)).isTrue(); } @Test diff --git a/tests/src/test/java/org/sonarqube/tests/webhook/WebhooksTest.java b/tests/src/test/java/org/sonarqube/tests/webhook/WebhooksTest.java index 975a5dc9366..2539ab6bb6d 100644 --- a/tests/src/test/java/org/sonarqube/tests/webhook/WebhooksTest.java +++ b/tests/src/test/java/org/sonarqube/tests/webhook/WebhooksTest.java @@ -195,8 +195,7 @@ public class WebhooksTest { assertThat(detail.getPayload()).isNotEmpty(); assertThat(detail.getErrorStacktrace()) .contains("java.lang.IllegalArgumentException") - .contains("unexpected url") - .contains("this_is_not_an_url"); + .contains("Webhook URL is not valid: this_is_not_an_url"); } @Test |