From 9f52d281c9697b69ec44cc592445525b50e50182 Mon Sep 17 00:00:00 2001 From: Belen Pruvost Date: Tue, 2 Nov 2021 11:39:57 +0100 Subject: SONAR-15602 - Quality Gate permission delegation logs --- .../org/sonar/db/qualitygate/QualityGateDbTester.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'server/sonar-db-dao/src/testFixtures/java/org') 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(); } } -- cgit v1.2.3