Generate InvocationID UUID on outgoing requests and use X-InvocationID
[logging-analytics.git] / reference / logging-slf4j / src / test / java / org / onap / logging / ref / slf4j / ONAPLogConstantsTest.java
index f6642f9..d63d2fd 100644 (file)
@@ -60,7 +60,7 @@ public class ONAPLogConstantsTest {
     @Test
     public void testHeaders() {
         assertThat(ONAPLogConstants.Headers.REQUEST_ID, is("X-ONAP-RequestID"));
-        assertThat(ONAPLogConstants.Headers.INVOCATION_ID, is("X-ONAP-InvocationID"));
+        assertThat(ONAPLogConstants.Headers.INVOCATION_ID, is("X-InvocationID"));
         assertThat(ONAPLogConstants.Headers.PARTNER_NAME, is("X-ONAP-PartnerName"));
     }
 
@@ -89,7 +89,7 @@ public class ONAPLogConstantsTest {
 
     @Test
     public void testResponseStatus() {
-        assertThat(ONAPLogConstants.ResponseStatus.COMPLETED.toString(), is("COMPLETED"));
+        assertThat(ONAPLogConstants.ResponseStatus.COMPLETE.toString(), is("COMPLETE"));
         assertThat(ONAPLogConstants.ResponseStatus.ERROR.toString(), is("ERROR"));
     }
 
@@ -105,7 +105,7 @@ public class ONAPLogConstantsTest {
         assertThat(ONAPLogConstants.MDCs.REQUEST_ID.toString(), is("RequestID"));
         assertThat(ONAPLogConstants.MDCs.INVOCATION_ID.toString(), is("InvocationID"));
         assertThat(ONAPLogConstants.MDCs.PARTNER_NAME.toString(), is("PartnerName"));
-        assertThat(ONAPLogConstants.MDCs.INSTANCE_UUID.toString(), is("InstanceUUID"));
+        assertThat(ONAPLogConstants.MDCs.INSTANCE_UUID.toString(), is("InstanceID"));
         assertThat(ONAPLogConstants.MDCs.SERVICE_NAME.toString(), is("ServiceName"));
         assertThat(ONAPLogConstants.MDCs.TARGET_SERVICE_NAME.toString(), is("TargetServiceName"));