aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-ce
diff options
context:
space:
mode:
authorAurelien Poscia <aurelien.poscia@sonarsource.com>2023-10-02 16:20:22 +0200
committersonartech <sonartech@sonarsource.com>2023-10-05 20:02:47 +0000
commit50039e6c422bb7e2ced8fe20e37be5314ce43e34 (patch)
tree11191cf6433c4a4b43cb154f8fb22c66767b4a2f /server/sonar-ce
parent8dc217f4ba8385c21669a54beeb45ba34318dd74 (diff)
downloadsonarqube-50039e6c422bb7e2ced8fe20e37be5314ce43e34.tar.gz
sonarqube-50039e6c422bb7e2ced8fe20e37be5314ce43e34.zip
SONAR-20630 set projects creation method
Diffstat (limited to 'server/sonar-ce')
-rw-r--r--server/sonar-ce/src/it/java/org/sonar/ce/notification/ReportAnalysisFailureNotificationExecutionListenerIT.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-ce/src/it/java/org/sonar/ce/notification/ReportAnalysisFailureNotificationExecutionListenerIT.java b/server/sonar-ce/src/it/java/org/sonar/ce/notification/ReportAnalysisFailureNotificationExecutionListenerIT.java
index 610a5329d81..c1efe768fc5 100644
--- a/server/sonar-ce/src/it/java/org/sonar/ce/notification/ReportAnalysisFailureNotificationExecutionListenerIT.java
+++ b/server/sonar-ce/src/it/java/org/sonar/ce/notification/ReportAnalysisFailureNotificationExecutionListenerIT.java
@@ -46,6 +46,7 @@ import org.sonar.db.component.BranchDto;
import org.sonar.db.component.ComponentDto;
import org.sonar.db.component.ComponentTesting;
import org.sonar.db.component.ProjectData;
+import org.sonar.db.project.CreationMethod;
import org.sonar.db.project.ProjectDto;
import org.sonar.server.notification.NotificationService;
@@ -145,7 +146,7 @@ public class ReportAnalysisFailureNotificationExecutionListenerIT {
@Test
public void onEnd_fails_with_ISE_if_branch_does_not_exist_in_DB() {
String componentUuid = randomAlphanumeric(6);
- ProjectDto project = new ProjectDto().setUuid(componentUuid).setKey(randomAlphanumeric(5)).setQualifier(Qualifiers.PROJECT);
+ ProjectDto project = new ProjectDto().setUuid(componentUuid).setKey(randomAlphanumeric(5)).setQualifier(Qualifiers.PROJECT).setCreationMethod(CreationMethod.LOCAL);
dbTester.getDbClient().projectDao().insert(dbTester.getSession(), project);
dbTester.getSession().commit();
when(ceTaskMock.getType()).thenReturn(CeTaskTypes.REPORT);