From d2b47f13435daa66f2c8015a62efc1a5e6728e11 Mon Sep 17 00:00:00 2001 From: Savindu Dimal Date: Fri, 16 Jun 2023 15:33:28 +0530 Subject: [PATCH] Update APILoggingTest Add verification for correlationId existence in API logs --- .../org/wso2/am/integration/tests/logging/APILoggingTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/logging/APILoggingTest.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/logging/APILoggingTest.java index 3f4f680ee5..b6c627b4db 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/logging/APILoggingTest.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/logging/APILoggingTest.java @@ -150,6 +150,7 @@ public void testAPIPerAPILoggingTestcase() throws Exception { String logLine; while ((logLine = bufferedReader.readLine()) != null) { assertTrue(logLine.contains("INFO {API_LOG} " + API_NAME)); + assertTrue(logLine.contains("correlationId")); } }