Skip to content

Commit

Permalink
PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielzolty committed Nov 1, 2023
1 parent 6407aa0 commit 8ea2781
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public enum ExceptionCode {
NOT_ENOUGH_SPANS(50010, "not enough spans in the trace"),
COLLECTOR_ID_NOT_MATCHED(50011, "span collector-id attribute does not match"),
NULL_VAR(50012, "variable is null"),
EXPECTED_LOG_NOT_FOUND(50013, "Expected Log Not Found"),
EXPECTED_LOG_NOT_FOUND(50013, "expected log not found"),

// build validator
VALIDATION_TYPE_NOT_EXISTED(60001, "validation type not existed"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,11 @@ public void testSuccessfullLogMessage() throws Exception {
outputLogEvent.setMessage(message);
List<OutputLogEvent> eventList = new ArrayList<>();
eventList.add(outputLogEvent);
CWLogValidator validator = runValidation(validationConfig, context, eventList);
ProcessingReport report = validator.getProcessingReport();
assertTrue(report.isSuccess());
runValidation(validationConfig, context, eventList);
}

@Test
public void testFailedLogMessage() throws Exception {
public void testFailedNoTraceId() throws Exception {
ValidationConfig validationConfig = new ValidationConfig();
validationConfig.setCallingType("http");
validationConfig.setExpectedLogStructureTemplate(
Expand Down

0 comments on commit 8ea2781

Please sign in to comment.