aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao/src/testFixtures/java/org
diff options
context:
space:
mode:
authorBelen Pruvost <belen.pruvost@sonarsource.com>2021-11-02 11:39:57 +0100
committersonartech <sonartech@sonarsource.com>2021-11-03 20:03:31 +0000
commit9f52d281c9697b69ec44cc592445525b50e50182 (patch)
treeb8bab3d77b70641fbb53e52e48a403175b0d1963 /server/sonar-db-dao/src/testFixtures/java/org
parent9b05c5200ec98fb1e49edc55584e9284437095e0 (diff)
downloadsonarqube-9f52d281c9697b69ec44cc592445525b50e50182.tar.gz
sonarqube-9f52d281c9697b69ec44cc592445525b50e50182.zip
SONAR-15602 - Quality Gate permission delegation logs
Diffstat (limited to 'server/sonar-db-dao/src/testFixtures/java/org')
-rw-r--r--server/sonar-db-dao/src/testFixtures/java/org/sonar/db/qualitygate/QualityGateDbTester.java17
1 files changed, 10 insertions, 7 deletions
diff --git a/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/qualitygate/QualityGateDbTester.java b/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/qualitygate/QualityGateDbTester.java
index 1243594bf5f..de312d84cb1 100644
--- a/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/qualitygate/QualityGateDbTester.java
+++ b/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/qualitygate/QualityGateDbTester.java
@@ -107,19 +107,22 @@ public class QualityGateDbTester {
public void addGroupPermission(QualityGateDto qualityGateDto, GroupDto group) {
dbClient.qualityGateGroupPermissionsDao().insert(dbSession, new QualityGateGroupPermissionsDto()
- .setUuid(Uuids.createFast())
- .setGroupUuid(group.getUuid())
- .setQualityGateUuid(qualityGateDto.getUuid())
+ .setUuid(Uuids.createFast())
+ .setGroupUuid(group.getUuid())
+ .setQualityGateUuid(qualityGateDto.getUuid()),
+ qualityGateDto.getName(),
+ group.getName()
);
dbSession.commit();
}
public void addUserPermission(QualityGateDto qualityGateDto, UserDto user) {
dbClient.qualityGateUserPermissionDao().insert(dbSession, new QualityGateUserPermissionsDto()
- .setUuid(Uuids.createFast())
- .setUserUuid(user.getUuid())
- .setQualityGateUuid(qualityGateDto.getUuid())
- );
+ .setUuid(Uuids.createFast())
+ .setUserUuid(user.getUuid())
+ .setQualityGateUuid(qualityGateDto.getUuid()),
+ qualityGateDto.getName(),
+ user.getLogin());
dbSession.commit();
}
}