diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2022-03-29 16:20:40 -0500 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-04-01 08:22:58 +0000 |
commit | dc84e9f271f4a72de0b55c0cfd141bf67e1ddeb8 (patch) | |
tree | 53d489c0daf9151261fcab862bd6ba23020e3697 /server/sonar-webserver-auth | |
parent | d27e2321560f15d7d5a59e1c99c80891d7632bdd (diff) | |
download | sonarqube-dc84e9f271f4a72de0b55c0cfd141bf67e1ddeb8.tar.gz sonarqube-dc84e9f271f4a72de0b55c0cfd141bf67e1ddeb8.zip |
SONAR-16139 Drop api/users/set_setting and related db table
Diffstat (limited to 'server/sonar-webserver-auth')
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)); |