diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-08-24 17:01:44 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-08-25 21:16:36 +0200 |
commit | 51add9c146a5448ce130d6d83f7220bef7316f92 (patch) | |
tree | 670e0e98416013d181fa81a95ad9330695f059a2 /tests/src/test/java/org | |
parent | 8255b26efe3fb3500bdba5dcede29984edca33f7 (diff) | |
download | sonarqube-51add9c146a5448ce130d6d83f7220bef7316f92.tar.gz sonarqube-51add9c146a5448ce130d6d83f7220bef7316f92.zip |
Split tests in LocalAuthenticationTest
Diffstat (limited to 'tests/src/test/java/org')
-rw-r--r-- | tests/src/test/java/org/sonarqube/tests/user/LocalAuthenticationTest.java | 14 |
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 043dbc675a8..716a2a80b2e 100644 --- a/tests/src/test/java/org/sonarqube/tests/user/LocalAuthenticationTest.java +++ b/tests/src/test/java/org/sonarqube/tests/user/LocalAuthenticationTest.java @@ -167,18 +167,26 @@ public class LocalAuthenticationTest { } @Test - public void authentication_through_ui() { + public void test_authentication_in_ui() { tester.runHtmlTests( "/user/LocalAuthenticationTest/login_successful.html", "/user/LocalAuthenticationTest/login_wrong_password.html", - "/user/LocalAuthenticationTest/should_not_be_unlogged_when_going_to_login_page.html", - "/user/LocalAuthenticationTest/redirect_to_login_when_not_enough_privilege.html", + "/user/LocalAuthenticationTest/should_not_be_unlogged_when_going_to_login_page.html"); + } + + @Test + public void test_authentication_redirects_in_ui() { + tester.runHtmlTests( + "/user/LocalAuthenticationTest/redirect_to_login_when_not_enough_privilege.html", // SONAR-2132 "/user/LocalAuthenticationTest/redirect_to_original_url_after_direct_login.html", "/user/LocalAuthenticationTest/redirect_to_original_url_with_parameters_after_direct_login.html", // SONAR-2009 "/user/LocalAuthenticationTest/redirect_to_original_url_after_indirect_login.html"); + } + @Test + public void force_authentication_in_ui() { setServerProperty(orchestrator, "sonar.forceAuthentication", "true"); tester.runHtmlTests( |