소스 검색

SONAR-19764 Fix flaky test incorrect_quality_gate_information

tags/10.2.0.77647
Alain Kermis 9 달 전
부모
커밋
d82fa82f7c
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4
    4
      server/sonar-webserver-webapi/src/it/java/org/sonar/server/projectanalysis/ws/SearchActionIT.java

+ 4
- 4
server/sonar-webserver-webapi/src/it/java/org/sonar/server/projectanalysis/ws/SearchActionIT.java 파일 보기

@@ -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

Loading…
취소
저장