aboutsummaryrefslogtreecommitdiffstats
path: root/it
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2017-02-03 09:52:54 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2017-02-06 16:07:41 +0100
commit09e689ec112a163535a98a682c9a10a06e34de00 (patch)
tree18fd5119a10537bc65f575f9d016e0c8996aeb30 /it
parentdc4b076e6f48f2db09d33b45e96ad703da3bc893 (diff)
downloadsonarqube-09e689ec112a163535a98a682c9a10a06e34de00.tar.gz
sonarqube-09e689ec112a163535a98a682c9a10a06e34de00.zip
SONAR-8208 Remove property "sonar.authenticator.createUser"
Diffstat (limited to 'it')
-rw-r--r--it/it-tests/src/test/java/it/user/RealmAuthenticationTest.java26
1 files changed, 0 insertions, 26 deletions
diff --git a/it/it-tests/src/test/java/it/user/RealmAuthenticationTest.java b/it/it-tests/src/test/java/it/user/RealmAuthenticationTest.java
index bbf78cb077e..defd825a670 100644
--- a/it/it-tests/src/test/java/it/user/RealmAuthenticationTest.java
+++ b/it/it-tests/src/test/java/it/user/RealmAuthenticationTest.java
@@ -24,7 +24,6 @@ import com.google.common.collect.Maps;
import com.sonar.orchestrator.Orchestrator;
import java.util.Map;
import javax.annotation.CheckForNull;
-import org.apache.commons.lang.RandomStringUtils;
import org.junit.After;
import org.junit.Before;
import org.junit.ClassRule;
@@ -85,7 +84,6 @@ public class RealmAuthenticationTest {
public void resetData() throws Exception {
setServerProperty(orchestrator, USERS_PROPERTY, null);
setServerProperty(orchestrator, "sonar.security.updateUserAttributes", null);
- setServerProperty(orchestrator, "sonar.authenticator.createUsers", null);
USER_RULE.resetUsers();
}
@@ -215,30 +213,6 @@ public class RealmAuthenticationTest {
verifyAuthenticationIsNotOk(username, "wrong");
}
- /**
- * SONAR-1334 (createUsers=false)
- */
- @Test
- public void shouldNotCreateNewUsers() {
- // Given clean Sonar installation and no users in external system
- setServerProperty(orchestrator, "sonar.authenticator.createUsers", "false");
- // Use a random user name because if we use existing disabled user then it doesn't work because rails doesn't handle this case
- // (it's using User.find_by_login to know if user exists or not
- String username = RandomStringUtils.randomAlphanumeric(20);
- String password = "1234567";
- Map<String, String> users = Maps.newHashMap();
-
- // When user not exists in external system
- // Then
- verifyAuthenticationIsNotOk(username, password);
-
- // When user created in external system
- users.put(username + ".password", password);
- updateUsersInExtAuth(users);
- // Then
- verifyAuthenticationIsNotOk(username, password);
- }
-
// SONAR-3258
@Test
public void shouldAutomaticallyReactivateDeletedUser() throws Exception {