aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-ce
diff options
context:
space:
mode:
authorLéo Geoffroy <leo.geoffroy@sonarsource.com>2023-07-06 11:56:59 +0200
committersonartech <sonartech@sonarsource.com>2023-07-07 20:03:21 +0000
commit0b0712fc0aeb5abf2bff1689833874b68e44297d (patch)
treec705b8139e1e6f26b0beb81a01bbacd5093206c7 /server/sonar-ce
parent71bd033da7c32709d7547d5d0b8c9088b7ad94e4 (diff)
downloadsonarqube-0b0712fc0aeb5abf2bff1689833874b68e44297d.tar.gz
sonarqube-0b0712fc0aeb5abf2bff1689833874b68e44297d.zip
SONAR-19850 Switch all tests with different uuids by default
Diffstat (limited to 'server/sonar-ce')
-rw-r--r--server/sonar-ce/src/it/java/org/sonar/ce/analysis/cache/cleaning/AnalysisCacheCleaningSchedulerImplIT.java2
-rw-r--r--server/sonar-ce/src/it/java/org/sonar/ce/container/ComputeEngineContainerImplIT.java2
-rw-r--r--server/sonar-ce/src/it/java/org/sonar/ce/monitoring/CeDatabaseMBeanImplIT.java2
-rw-r--r--server/sonar-ce/src/it/java/org/sonar/ce/notification/ReportAnalysisFailureNotificationExecutionListenerIT.java2
-rw-r--r--server/sonar-ce/src/it/java/org/sonar/ce/queue/InternalCeQueueImplIT.java2
-rw-r--r--server/sonar-ce/src/it/java/org/sonar/ce/queue/NextPendingTaskPickerIT.java2
-rw-r--r--server/sonar-ce/src/it/java/org/sonar/ce/taskprocessor/CeWorkerImplIT.java2
7 files changed, 7 insertions, 7 deletions
diff --git a/server/sonar-ce/src/it/java/org/sonar/ce/analysis/cache/cleaning/AnalysisCacheCleaningSchedulerImplIT.java b/server/sonar-ce/src/it/java/org/sonar/ce/analysis/cache/cleaning/AnalysisCacheCleaningSchedulerImplIT.java
index 2b049fe59fe..fe6683c7753 100644
--- a/server/sonar-ce/src/it/java/org/sonar/ce/analysis/cache/cleaning/AnalysisCacheCleaningSchedulerImplIT.java
+++ b/server/sonar-ce/src/it/java/org/sonar/ce/analysis/cache/cleaning/AnalysisCacheCleaningSchedulerImplIT.java
@@ -47,7 +47,7 @@ public class AnalysisCacheCleaningSchedulerImplIT {
private System2 system2 = mock(System2.class);
private final static UuidFactory uuidFactory = new SequenceUuidFactory();
@Rule
- public DbTester dbTester = DbTester.create(system2, true);
+ public DbTester dbTester = DbTester.create(system2);
private DbSession dbSession = dbTester.getSession();
private ScannerAnalysisCacheDao scannerAnalysisCacheDao = dbTester.getDbClient().scannerAnalysisCacheDao();
diff --git a/server/sonar-ce/src/it/java/org/sonar/ce/container/ComputeEngineContainerImplIT.java b/server/sonar-ce/src/it/java/org/sonar/ce/container/ComputeEngineContainerImplIT.java
index 529c1478a45..8a57a3f413a 100644
--- a/server/sonar-ce/src/it/java/org/sonar/ce/container/ComputeEngineContainerImplIT.java
+++ b/server/sonar-ce/src/it/java/org/sonar/ce/container/ComputeEngineContainerImplIT.java
@@ -62,7 +62,7 @@ public class ComputeEngineContainerImplIT {
public TemporaryFolder tempFolder = new TemporaryFolder();
@Rule
- public DbTester db = DbTester.create(System2.INSTANCE, true);
+ public DbTester db = DbTester.create(System2.INSTANCE);
private final ServiceLoaderWrapper serviceLoaderWrapper = mock(ServiceLoaderWrapper.class);
private final ProcessProperties processProperties = new ProcessProperties(serviceLoaderWrapper);
diff --git a/server/sonar-ce/src/it/java/org/sonar/ce/monitoring/CeDatabaseMBeanImplIT.java b/server/sonar-ce/src/it/java/org/sonar/ce/monitoring/CeDatabaseMBeanImplIT.java
index 5d1e6df57bb..8f43bd9b081 100644
--- a/server/sonar-ce/src/it/java/org/sonar/ce/monitoring/CeDatabaseMBeanImplIT.java
+++ b/server/sonar-ce/src/it/java/org/sonar/ce/monitoring/CeDatabaseMBeanImplIT.java
@@ -37,7 +37,7 @@ import static org.assertj.core.api.Assertions.assertThat;
public class CeDatabaseMBeanImplIT {
@Rule
- public DbTester dbTester = DbTester.create(System2.INSTANCE, true);
+ public DbTester dbTester = DbTester.create(System2.INSTANCE);
private final CeDatabaseMBeanImpl underTest = new CeDatabaseMBeanImpl(dbTester.getDbClient());
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 5e9f98b99b0..843fb7688b2 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
@@ -65,7 +65,7 @@ import static org.sonar.db.component.ComponentTesting.newDirectory;
public class ReportAnalysisFailureNotificationExecutionListenerIT {
@Rule
- public DbTester dbTester = DbTester.create(System2.INSTANCE, true);
+ public DbTester dbTester = DbTester.create(System2.INSTANCE);
private final Random random = new Random();
private final DbClient dbClient = dbTester.getDbClient();
diff --git a/server/sonar-ce/src/it/java/org/sonar/ce/queue/InternalCeQueueImplIT.java b/server/sonar-ce/src/it/java/org/sonar/ce/queue/InternalCeQueueImplIT.java
index a5e7cc459ee..48d5f440f85 100644
--- a/server/sonar-ce/src/it/java/org/sonar/ce/queue/InternalCeQueueImplIT.java
+++ b/server/sonar-ce/src/it/java/org/sonar/ce/queue/InternalCeQueueImplIT.java
@@ -76,7 +76,7 @@ public class InternalCeQueueImplIT {
private final System2 system2 = new AlwaysIncreasingSystem2();
@Rule
- public DbTester db = DbTester.create(system2, true);
+ public DbTester db = DbTester.create(system2);
private final DbSession session = db.getSession();
private final UuidFactory uuidFactory = UuidFactoryImpl.INSTANCE;
diff --git a/server/sonar-ce/src/it/java/org/sonar/ce/queue/NextPendingTaskPickerIT.java b/server/sonar-ce/src/it/java/org/sonar/ce/queue/NextPendingTaskPickerIT.java
index 4b90610038d..e4cda8dc5e1 100644
--- a/server/sonar-ce/src/it/java/org/sonar/ce/queue/NextPendingTaskPickerIT.java
+++ b/server/sonar-ce/src/it/java/org/sonar/ce/queue/NextPendingTaskPickerIT.java
@@ -58,7 +58,7 @@ public class NextPendingTaskPickerIT {
private NextPendingTaskPicker underTest;
@Rule
- public DbTester db = DbTester.create(alwaysIncreasingSystem2, true);
+ public DbTester db = DbTester.create(alwaysIncreasingSystem2);
@Before
public void before() {
diff --git a/server/sonar-ce/src/it/java/org/sonar/ce/taskprocessor/CeWorkerImplIT.java b/server/sonar-ce/src/it/java/org/sonar/ce/taskprocessor/CeWorkerImplIT.java
index 5081a7e27d1..1fbc8fd3a47 100644
--- a/server/sonar-ce/src/it/java/org/sonar/ce/taskprocessor/CeWorkerImplIT.java
+++ b/server/sonar-ce/src/it/java/org/sonar/ce/taskprocessor/CeWorkerImplIT.java
@@ -85,7 +85,7 @@ public class CeWorkerImplIT {
@Rule
public LogTester logTester = new LogTester();
@Rule
- public DbTester db = DbTester.create(system2, true);
+ public DbTester db = DbTester.create(system2);
private DbSession session = db.getSession();