]> source.dussan.org Git - sonarqube.git/commitdiff
Split tests in LocalAuthenticationTest
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 24 Aug 2017 15:01:44 +0000 (17:01 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 25 Aug 2017 19:16:36 +0000 (21:16 +0200)
tests/src/test/java/org/sonarqube/tests/user/LocalAuthenticationTest.java

index 043dbc675a885961c34dc6e80854111a99d6e77f..716a2a80b2ee9510b38513ab620c62f2932a486a 100644 (file)
@@ -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(