]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19764 Fix flaky test incorrect_quality_gate_information
authorAlain Kermis <alain.kermis@sonarsource.com>
Thu, 31 Aug 2023 13:28:40 +0000 (15:28 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 31 Aug 2023 20:02:57 +0000 (20:02 +0000)
server/sonar-webserver-webapi/src/it/java/org/sonar/server/projectanalysis/ws/SearchActionIT.java

index fc0fd970b5f0080bffa35151590fae9dccdb133a..4dda87318fef013bdb20cb1b62adbcd31d1da67c 100644 (file)
@@ -334,7 +334,7 @@ public class SearchActionIT {
 
     assertThat(logTester.getLogs(LoggerLevel.ERROR))
       .extracting(LogAndArguments::getFormattedMsg)
-      .containsExactly(
+      .contains(
         format("Incorrect changes : [uuid=%s change=ADDED, branch=master] and [uuid=%s, change=ADDED, branch=master]", changeDto1.getUuid(), changeDto2.getUuid()));
   }
 
@@ -362,7 +362,7 @@ public class SearchActionIT {
 
     assertThat(logTester.getLogs(LoggerLevel.ERROR))
       .extracting(LogAndArguments::getFormattedMsg)
-      .containsExactly("Unknown change FAILED_QUALITY_GATE for eventComponentChange uuid: " + changeDto1.getUuid());
+      .contains("Unknown change FAILED_QUALITY_GATE for eventComponentChange uuid: " + changeDto1.getUuid());
   }
 
   @Test
@@ -393,7 +393,7 @@ public class SearchActionIT {
 
     assertThat(logTester.getLogs(LoggerLevel.ERROR))
       .extracting(LogAndArguments::getFormattedMsg)
-      .containsExactly(
+      .contains(
         format("Too many changes on same project (3) for eventComponentChange uuids : %s,%s,%s", changeDto1.getUuid(), changeDto2.getUuid(), changeDto3.getUuid()));
   }
 
@@ -433,7 +433,7 @@ public class SearchActionIT {
 
     assertThat(logTester.getLogs(LoggerLevel.ERROR))
       .extracting(LogAndArguments::getFormattedMsg)
-      .containsExactly("Unable to retrieve data from event uuid=E11");
+      .contains("Unable to retrieve data from event uuid=E11");
   }
 
   @Test