aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-ce-common
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2023-05-09 10:19:14 -0500
committersonartech <sonartech@sonarsource.com>2023-05-10 20:05:28 +0000
commit6a464448365f76f318527260cb109388a5f93be5 (patch)
tree348d19ba72b08e501f59a197a7355ba7b97b46f6 /server/sonar-ce-common
parent913143e3a509d0ebe516bb0ce9865a15f78dfea0 (diff)
downloadsonarqube-6a464448365f76f318527260cb109388a5f93be5.tar.gz
sonarqube-6a464448365f76f318527260cb109388a5f93be5.zip
[NO JIRA] Fix ComponentdbTester to support different main branch UUIDs
Diffstat (limited to 'server/sonar-ce-common')
-rw-r--r--server/sonar-ce-common/src/it/java/org/sonar/ce/queue/CeQueueImplIT.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-ce-common/src/it/java/org/sonar/ce/queue/CeQueueImplIT.java b/server/sonar-ce-common/src/it/java/org/sonar/ce/queue/CeQueueImplIT.java
index 296cf548629..0823582b04d 100644
--- a/server/sonar-ce-common/src/it/java/org/sonar/ce/queue/CeQueueImplIT.java
+++ b/server/sonar-ce-common/src/it/java/org/sonar/ce/queue/CeQueueImplIT.java
@@ -239,7 +239,7 @@ public class CeQueueImplIT {
@Test
public void massSubmit_populates_component_name_and_key_of_CeTask_if_project_and_branch_exists() {
- ComponentDto project = insertComponent(ComponentTesting.newPrivateProjectDto("PROJECT_1"));
+ ComponentDto project = db.components().insertPublicProject(p -> p.setUuid("PROJECT_1").setBranchUuid("PROJECT_1")).getMainBranchComponent();
ComponentDto branch1 = db.components().insertProjectBranch(project);
ComponentDto branch2 = db.components().insertProjectBranch(project);
CeTaskSubmit taskSubmit1 = createTaskSubmit(CeTaskTypes.REPORT, Component.fromDto(branch1.uuid(), project.uuid()), null);