diff options
author | Belen Pruvost <belen.pruvost@sonarsource.com> | 2021-08-17 23:38:09 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-08-19 20:08:15 +0000 |
commit | 7a6e871b1a37a53e76d483e0b65b811c6ac6beb9 (patch) | |
tree | c01fabd75ca6a9b476ebf6fb1c1e61b2326a9e4d /server/sonar-db-dao/src/testFixtures/java/org/sonar/db/almsettings | |
parent | 0cbc47585976e86e63753f74e285ef95b7e59657 (diff) | |
download | sonarqube-7a6e871b1a37a53e76d483e0b65b811c6ac6beb9.tar.gz sonarqube-7a6e871b1a37a53e76d483e0b65b811c6ac6beb9.zip |
SONAR-15142 - Add componentKey to all logs
Diffstat (limited to 'server/sonar-db-dao/src/testFixtures/java/org/sonar/db/almsettings')
-rw-r--r-- | server/sonar-db-dao/src/testFixtures/java/org/sonar/db/almsettings/AlmSettingsDbTester.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/almsettings/AlmSettingsDbTester.java b/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/almsettings/AlmSettingsDbTester.java index 10e245aaa8a..906d9099521 100644 --- a/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/almsettings/AlmSettingsDbTester.java +++ b/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/almsettings/AlmSettingsDbTester.java @@ -74,57 +74,57 @@ public class AlmSettingsDbTester { public final ProjectAlmSettingDto insertGitHubProjectAlmSetting(AlmSettingDto githubAlmSetting, ProjectDto project, Consumer<ProjectAlmSettingDto>... populators) { return insertProjectAlmSetting(newGithubProjectAlmSettingDto(githubAlmSetting, project), githubAlmSetting.getKey(), - project.getName(), populators); + project.getName(), project.getKey(), populators); } public ProjectAlmSettingDto insertAzureProjectAlmSetting(AlmSettingDto azureAlmSetting, ProjectDto project) { return insertProjectAlmSetting(newAzureProjectAlmSettingDto(azureAlmSetting, project), azureAlmSetting.getKey(), - project.getName()); + project.getName(), project.getKey()); } public ProjectAlmSettingDto insertAzureMonoRepoProjectAlmSetting(AlmSettingDto azureAlmSetting, ProjectDto project) { return insertProjectAlmSetting(newAzureProjectAlmSettingDto(azureAlmSetting, project), azureAlmSetting.getKey(), - project.getName(), d -> d.setMonorepo(true)); + project.getName(), project.getKey(), d -> d.setMonorepo(true)); } public ProjectAlmSettingDto insertGitlabProjectAlmSetting(AlmSettingDto gitlabAlmSetting, ProjectDto project) { return insertProjectAlmSetting(newGitlabProjectAlmSettingDto(gitlabAlmSetting, project), gitlabAlmSetting.getKey(), - project.getName()); + project.getName(), project.getKey()); } @SafeVarargs public final ProjectAlmSettingDto insertAzureProjectAlmSetting(AlmSettingDto azureAlmSetting, ProjectDto project, Consumer<ProjectAlmSettingDto>... populators) { return insertProjectAlmSetting(newAzureProjectAlmSettingDto(azureAlmSetting, project), azureAlmSetting.getKey(), - project.getName(), populators); + project.getName(), project.getKey(), populators); } @SafeVarargs public final ProjectAlmSettingDto insertGitlabProjectAlmSetting(AlmSettingDto gitlabAlmSetting, ProjectDto project, Consumer<ProjectAlmSettingDto>... populators) { return insertProjectAlmSetting(newGitlabProjectAlmSettingDto(gitlabAlmSetting, project), gitlabAlmSetting.getKey(), - project.getName(), populators); + project.getName(), project.getKey(), populators); } @SafeVarargs public final ProjectAlmSettingDto insertBitbucketCloudProjectAlmSetting(AlmSettingDto bbCloudAlmSetting, ProjectDto project, Consumer<ProjectAlmSettingDto>... populators) { return insertProjectAlmSetting(newBitbucketCloudProjectAlmSettingDto(bbCloudAlmSetting, project), bbCloudAlmSetting.getKey(), - project.getName(), populators); + project.getName(), project.getKey(), populators); } @SafeVarargs public final ProjectAlmSettingDto insertBitbucketProjectAlmSetting(AlmSettingDto bitbucketAlmSetting, ProjectDto project, Consumer<ProjectAlmSettingDto>... populators) { return insertProjectAlmSetting(newBitbucketProjectAlmSettingDto(bitbucketAlmSetting, project), - bitbucketAlmSetting.getKey(), project.getName(), populators); + bitbucketAlmSetting.getKey(), project.getName(), project.getKey(), populators); } @SafeVarargs private final ProjectAlmSettingDto insertProjectAlmSetting(ProjectAlmSettingDto dto, String key, String projectName, - Consumer<ProjectAlmSettingDto>... populators) { + String projectKey, Consumer<ProjectAlmSettingDto>... populators) { stream(populators).forEach(p -> p.accept(dto)); - db.getDbClient().projectAlmSettingDao().insertOrUpdate(db.getSession(), dto, key, projectName); + db.getDbClient().projectAlmSettingDao().insertOrUpdate(db.getSession(), dto, key, projectName, projectKey); db.commit(); return dto; } |