diff options
author | Belen Pruvost <belen.pruvost@sonarsource.com> | 2021-07-20 13:56:34 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-07-27 20:03:02 +0000 |
commit | 9453e6a5c554f4e29309c31466e1c1a102adc61c (patch) | |
tree | c991bb4ecba60958cecfeb60cd96054604dba7b8 /server/sonar-ce | |
parent | ce304c7995552e8d6af222db2b30ae230288815b (diff) | |
download | sonarqube-9453e6a5c554f4e29309c31466e1c1a102adc61c.tar.gz sonarqube-9453e6a5c554f4e29309c31466e1c1a102adc61c.zip |
SONAR-15142 - Log Permission, Plugin, Secret Key, License and Settings
Diffstat (limited to 'server/sonar-ce')
3 files changed, 9 insertions, 7 deletions
diff --git a/server/sonar-ce/src/main/java/org/sonar/ce/db/ReadOnlyPropertiesDao.java b/server/sonar-ce/src/main/java/org/sonar/ce/db/ReadOnlyPropertiesDao.java index a5e900a17b7..af6175bd1bf 100644 --- a/server/sonar-ce/src/main/java/org/sonar/ce/db/ReadOnlyPropertiesDao.java +++ b/server/sonar-ce/src/main/java/org/sonar/ce/db/ReadOnlyPropertiesDao.java @@ -20,6 +20,7 @@ package org.sonar.ce.db; import java.util.Map; +import javax.annotation.Nullable; import org.sonar.api.utils.System2; import org.sonar.core.util.UuidFactory; import org.sonar.db.DbSession; @@ -42,7 +43,8 @@ public class ReadOnlyPropertiesDao extends PropertiesDao { } @Override - public void saveProperty(DbSession session, PropertyDto property) { + public void saveProperty(DbSession session, PropertyDto property, @Nullable String userLogin, + @Nullable String projectName) { // do nothing } @@ -52,12 +54,12 @@ public class ReadOnlyPropertiesDao extends PropertiesDao { } @Override - public void deleteProjectProperty(String key, String projectUuid) { + public void deleteProjectProperty(String key, String projectUuid, String projectName) { // do nothing } @Override - public void deleteProjectProperty(String key, String projectUuid, DbSession session) { + public void deleteProjectProperty(String key, String projectUuid, DbSession session, String projectName) { // do nothing } diff --git a/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java b/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java index 872b23dc2b4..5d4170ff6d4 100644 --- a/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java +++ b/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java @@ -144,7 +144,7 @@ public class ComputeEngineContainerImplTest { private void insertProperty(String key, String value) { PropertyDto dto = new PropertyDto().setKey(key).setValue(value); - db.getDbClient().propertiesDao().saveProperty(db.getSession(), dto); + db.getDbClient().propertiesDao().saveProperty(db.getSession(), dto, null, null); db.commit(); } diff --git a/server/sonar-ce/src/test/java/org/sonar/ce/db/ReadOnlyPropertiesDaoTest.java b/server/sonar-ce/src/test/java/org/sonar/ce/db/ReadOnlyPropertiesDaoTest.java index 1c683b6791b..ae6cea38f6c 100644 --- a/server/sonar-ce/src/test/java/org/sonar/ce/db/ReadOnlyPropertiesDaoTest.java +++ b/server/sonar-ce/src/test/java/org/sonar/ce/db/ReadOnlyPropertiesDaoTest.java @@ -40,7 +40,7 @@ public class ReadOnlyPropertiesDaoTest { @Test public void insertProperty() { - underTest.saveProperty(dbSession, propertyDto); + underTest.saveProperty(dbSession, propertyDto, null, null); assertNoInteraction(); } @@ -54,7 +54,7 @@ public class ReadOnlyPropertiesDaoTest { @Test public void deleteProjectProperty() { - underTest.deleteProjectProperty(null, null); + underTest.deleteProjectProperty(null, null, null); assertNoInteraction(); @@ -62,7 +62,7 @@ public class ReadOnlyPropertiesDaoTest { @Test public void deleteProjectProperty1() { - underTest.deleteProjectProperty(null, null, dbSession); + underTest.deleteProjectProperty(null, null, dbSession, null); assertNoInteraction(); |