diff options
author | Ittay Stern <ittay.stern@att.com> | 2019-11-07 14:17:41 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-11-07 14:17:41 +0000 |
commit | ebef5249cb9d282ace976feac8517a7b44add450 (patch) | |
tree | 42eec74e3d514f093861abfe94be176acf1fdae6 /vid-automation/src/test/java/org/onap/vid/more/LoggerFormatTest.java | |
parent | 31e625a118836d02a95b18ff806903ed23deb25d (diff) | |
parent | a868f407c6b80ea0c533fc534d45b9e04e69521a (diff) |
Merge "Validations in different tests for audit log"
Diffstat (limited to 'vid-automation/src/test/java/org/onap/vid/more/LoggerFormatTest.java')
-rw-r--r-- | vid-automation/src/test/java/org/onap/vid/more/LoggerFormatTest.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/vid-automation/src/test/java/org/onap/vid/more/LoggerFormatTest.java b/vid-automation/src/test/java/org/onap/vid/more/LoggerFormatTest.java index 6c4058f1e..1105a3f4c 100644 --- a/vid-automation/src/test/java/org/onap/vid/more/LoggerFormatTest.java +++ b/vid-automation/src/test/java/org/onap/vid/more/LoggerFormatTest.java @@ -162,9 +162,13 @@ public class LoggerFormatTest extends BaseApiTest { String path){ List<String> logLines = getRequestLogLines(requestId, LogName.audit2019, restTemplate, uri); String requestIdPrefix = "RequestID="; - assertThat("request id must be found in exactly two rows - entry & exit message in audit log, and include the req path", + assertThat("\nENTRY & EXIT logs are expected to include RequestId: " + requestId + + " \nAnd request path: " + + path + + "\nin exactly two rows - inside the audit log matching lines:\n" + + String.join("\n", logLines) + "\n", logLines, - containsInRelativeOrder( + contains( allOf( containsString(requestIdPrefix+requestId), containsString("ENTRY"), |