aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-ce/src
diff options
context:
space:
mode:
authorBelen Pruvost <belen.pruvost@sonarsource.com>2021-08-16 16:55:23 +0200
committersonartech <sonartech@sonarsource.com>2021-08-19 20:08:15 +0000
commit8278254af1aa48b99348156ca7cab139ff8b783b (patch)
tree67acd907e404cb9057eb9fafdef58b1e17e2a6f8 /server/sonar-ce/src
parent9fd499fa98ca1c643b45d5a7d96aeb6fd09a999c (diff)
downloadsonarqube-8278254af1aa48b99348156ca7cab139ff8b783b.tar.gz
sonarqube-8278254af1aa48b99348156ca7cab139ff8b783b.zip
SONAR-15142 - Add component qualifier to new value in Logs
Diffstat (limited to 'server/sonar-ce/src')
-rw-r--r--server/sonar-ce/src/main/java/org/sonar/ce/db/ReadOnlyPropertiesDao.java6
-rw-r--r--server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java2
-rw-r--r--server/sonar-ce/src/test/java/org/sonar/ce/db/ReadOnlyPropertiesDaoTest.java6
3 files changed, 7 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 af6175bd1bf..f7eca8e91b9 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
@@ -44,7 +44,7 @@ public class ReadOnlyPropertiesDao extends PropertiesDao {
@Override
public void saveProperty(DbSession session, PropertyDto property, @Nullable String userLogin,
- @Nullable String projectName) {
+ @Nullable String projectName, @Nullable String qualifier) {
// do nothing
}
@@ -54,12 +54,12 @@ public class ReadOnlyPropertiesDao extends PropertiesDao {
}
@Override
- public void deleteProjectProperty(String key, String projectUuid, String projectName) {
+ public void deleteProjectProperty(String key, String projectUuid, String projectName, String qualifier) {
// do nothing
}
@Override
- public void deleteProjectProperty(String key, String projectUuid, DbSession session, String projectName) {
+ public void deleteProjectProperty(DbSession session, String key, String projectUuid, String projectName, String qualifier) {
// 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 5d4170ff6d4..50fe9c75f8f 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, null, null);
+ db.getDbClient().propertiesDao().saveProperty(db.getSession(), dto, null, 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 ae6cea38f6c..83894a129bc 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, null, null);
+ underTest.saveProperty(dbSession, propertyDto, null, null, null);
assertNoInteraction();
}
@@ -54,7 +54,7 @@ public class ReadOnlyPropertiesDaoTest {
@Test
public void deleteProjectProperty() {
- underTest.deleteProjectProperty(null, null, null);
+ underTest.deleteProjectProperty(null, null, null, null);
assertNoInteraction();
@@ -62,7 +62,7 @@ public class ReadOnlyPropertiesDaoTest {
@Test
public void deleteProjectProperty1() {
- underTest.deleteProjectProperty(null, null, dbSession, null);
+ underTest.deleteProjectProperty(dbSession, null, null, null, null);
assertNoInteraction();