From 5e0e88d7c19479494215af17d23e07b26dd62dbc Mon Sep 17 00:00:00 2001 From: Amir Skalka Date: Mon, 4 Nov 2019 14:26:17 +0200 Subject: Validate audit of request id on incoming requests to MSO ServiceInstanceMsoApiTest to verify incoming requests in audit log as well to headers and outgoing requests in logs. Issue-ID: VID-253 Change-Id: I4d94e6de4e2a844f2e0104df6c45b5070465de1e Signed-off-by: Amir Skalka --- .../src/test/java/org/onap/vid/api/ServiceInstanceMsoApiTest.java | 1 + 1 file changed, 1 insertion(+) (limited to 'vid-automation/src/test/java/org/onap/vid/api/ServiceInstanceMsoApiTest.java') diff --git a/vid-automation/src/test/java/org/onap/vid/api/ServiceInstanceMsoApiTest.java b/vid-automation/src/test/java/org/onap/vid/api/ServiceInstanceMsoApiTest.java index 28b407697..8bc2a7390 100644 --- a/vid-automation/src/test/java/org/onap/vid/api/ServiceInstanceMsoApiTest.java +++ b/vid-automation/src/test/java/org/onap/vid/api/ServiceInstanceMsoApiTest.java @@ -139,6 +139,7 @@ public class ServiceInstanceMsoApiTest extends BaseMsoApiTest{ ResponseEntity responseEntity = restTemplate.postForEntity(buildUri(MSO_ACTIVATE_FABRIC_CONFIGURATION), requestBody, String.class); String requestId = responseEntity.getHeaders().getFirst("X-ECOMP-RequestID-echo"); LoggerFormatTest.assertHeadersAndMetricLogs(restTemplate, uri, requestId, msoRootPath, 1); + LoggerFormatTest.verifyExistenceOfIncomingReqsInAuditLogs(restTemplate, uri, requestId, MSO_ACTIVATE_FABRIC_CONFIGURATION); } @Test(dataProvider = "errorCodes") -- cgit 1.2.3-korg