aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-08-22 10:07:23 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-08-22 12:20:15 +0200
commitc20afce399c3e73ee946d4cb7a0a4578bbbe7348 (patch)
tree65fba5c316b177bcf338088b870fae1772c801b3 /tests
parent3e7ecb3992300d43b866f817f47a925ca5792fb9 (diff)
downloadsonarqube-c20afce399c3e73ee946d4cb7a0a4578bbbe7348.tar.gz
sonarqube-c20afce399c3e73ee946d4cb7a0a4578bbbe7348.zip
Add integration test on web authentication with UTF-8 password
Diffstat (limited to 'tests')
-rw-r--r--tests/src/test/java/org/sonarqube/tests/user/LocalAuthenticationTest.java14
1 files changed, 11 insertions, 3 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 dc3e31c9bb2..043dbc675a8 100644
--- a/tests/src/test/java/org/sonarqube/tests/user/LocalAuthenticationTest.java
+++ b/tests/src/test/java/org/sonarqube/tests/user/LocalAuthenticationTest.java
@@ -25,7 +25,6 @@ import java.util.UUID;
import org.junit.After;
import org.junit.Before;
import org.junit.ClassRule;
-import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.sonarqube.pageobjects.LoginPage;
@@ -133,9 +132,18 @@ public class LocalAuthenticationTest {
}
@Test
- @Ignore
public void web_login_form_should_support_utf8_passwords() {
- // TODO selenium
+ String login = "user_with_utf8_password";
+ // see http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt
+ String password = "κόσμε";
+
+ // create user with a UTF-8 password
+ tester.users().generate(u -> u.setLogin(login).setPassword(password));
+
+ tester.openBrowser()
+ .logIn()
+ .submitCredentials(login, password)
+ .shouldBeLoggedIn();
}
@Test