aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-auth
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2022-03-29 16:20:40 -0500
committersonartech <sonartech@sonarsource.com>2022-04-01 08:22:58 +0000
commitdc84e9f271f4a72de0b55c0cfd141bf67e1ddeb8 (patch)
tree53d489c0daf9151261fcab862bd6ba23020e3697 /server/sonar-webserver-auth
parentd27e2321560f15d7d5a59e1c99c80891d7632bdd (diff)
downloadsonarqube-dc84e9f271f4a72de0b55c0cfd141bf67e1ddeb8.tar.gz
sonarqube-dc84e9f271f4a72de0b55c0cfd141bf67e1ddeb8.zip
SONAR-16139 Drop api/users/set_setting and related db table
Diffstat (limited to 'server/sonar-webserver-auth')
-rw-r--r--server/sonar-webserver-auth/src/test/java/org/sonar/server/user/UserUpdaterCreateTest.java13
-rw-r--r--server/sonar-webserver-auth/src/test/java/org/sonar/server/user/UserUpdaterReactivateTest.java14
2 files changed, 0 insertions, 27 deletions
diff --git a/server/sonar-webserver-auth/src/test/java/org/sonar/server/user/UserUpdaterCreateTest.java b/server/sonar-webserver-auth/src/test/java/org/sonar/server/user/UserUpdaterCreateTest.java
index e85f937ca65..55dff0fef63 100644
--- a/server/sonar-webserver-auth/src/test/java/org/sonar/server/user/UserUpdaterCreateTest.java
+++ b/server/sonar-webserver-auth/src/test/java/org/sonar/server/user/UserUpdaterCreateTest.java
@@ -294,19 +294,6 @@ public class UserUpdaterCreateTest {
}
@Test
- public void does_not_set_notifications_readDate_setting_when_creating_user_when_not_on() {
- createDefaultGroup();
-
- UserDto user = underTest.createAndCommit(db.getSession(), NewUser.builder()
- .setLogin("userLogin")
- .setName("UserName")
- .build(), u -> {
- });
-
- assertThat(dbClient.userPropertiesDao().selectByUser(session, user)).isEmpty();
- }
-
- @Test
public void create_user_and_index_other_user() {
createDefaultGroup();
UserDto otherUser = db.users().insertUser();
diff --git a/server/sonar-webserver-auth/src/test/java/org/sonar/server/user/UserUpdaterReactivateTest.java b/server/sonar-webserver-auth/src/test/java/org/sonar/server/user/UserUpdaterReactivateTest.java
index b9d68498c48..9698cd53b29 100644
--- a/server/sonar-webserver-auth/src/test/java/org/sonar/server/user/UserUpdaterReactivateTest.java
+++ b/server/sonar-webserver-auth/src/test/java/org/sonar/server/user/UserUpdaterReactivateTest.java
@@ -268,20 +268,6 @@ public class UserUpdaterReactivateTest {
}
@Test
- public void does_not_set_notifications_readDate_setting_when_reactivating_user() {
- createDefaultGroup();
- UserDto user = db.users().insertDisabledUser();
-
- underTest.reactivateAndCommit(db.getSession(), user, NewUser.builder()
- .setLogin(user.getLogin())
- .setName(user.getName())
- .build(), u -> {
- });
-
- assertThat(dbClient.userPropertiesDao().selectByUser(session, user)).isEmpty();
- }
-
- @Test
public void fail_to_reactivate_user_when_login_already_exists() {
createDefaultGroup();
UserDto user = db.users().insertUser(u -> u.setActive(false));