diff options
author | 2019-08-16 13:40:56 +0000 | |
---|---|---|
committer | 2019-08-16 15:33:06 +0000 | |
commit | cb76469e77d6bcc0665cfc822398eb792f4a5801 (patch) | |
tree | 46da35da2a4534240f9cdcb1aa6c4d169a4a6ede /reference/logging-slf4j/src/test/java/org/onap | |
parent | 09a49ea562aed689f7200802ab1143efda581a3e (diff) |
update values in ONAPLogConstants.java
synchronize ONAPLogConstants.java with the values found in the casablance logging spec
Issue-ID: LOG-1102
Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com>
Change-Id: If955d22b11f71ddce7d3bfddabce3f50838fc01d
Diffstat (limited to 'reference/logging-slf4j/src/test/java/org/onap')
2 files changed, 5 insertions, 5 deletions
diff --git a/reference/logging-slf4j/src/test/java/org/onap/logging/ref/slf4j/ONAPLogAdapterTest.java b/reference/logging-slf4j/src/test/java/org/onap/logging/ref/slf4j/ONAPLogAdapterTest.java index 1d11bd3..bc6d96d 100644 --- a/reference/logging-slf4j/src/test/java/org/onap/logging/ref/slf4j/ONAPLogAdapterTest.java +++ b/reference/logging-slf4j/src/test/java/org/onap/logging/ref/slf4j/ONAPLogAdapterTest.java @@ -382,7 +382,7 @@ public class ONAPLogAdapterTest { adapter.setResponseCode("code0"); adapter.setResponseDescription("desc0"); adapter.setResponseSeverity(Level.INFO); - adapter.setResponseStatus(ONAPLogConstants.ResponseStatus.COMPLETED); + adapter.setResponseStatus(ONAPLogConstants.ResponseStatus.COMPLETE); assertThat(MDC.get(ONAPLogConstants.MDCs.RESPONSE_CODE), nullValue()); assertThat(MDC.get(ONAPLogConstants.MDCs.RESPONSE_DESCRIPTION), nullValue()); @@ -394,7 +394,7 @@ public class ONAPLogAdapterTest { assertThat(MDC.get(ONAPLogConstants.MDCs.RESPONSE_CODE), is("code0")); assertThat(MDC.get(ONAPLogConstants.MDCs.RESPONSE_DESCRIPTION), is("desc0")); assertThat(MDC.get(ONAPLogConstants.MDCs.RESPONSE_SEVERITY), is("INFO")); - assertThat(MDC.get(ONAPLogConstants.MDCs.RESPONSE_STATUS_CODE), is("COMPLETED")); + assertThat(MDC.get(ONAPLogConstants.MDCs.RESPONSE_STATUS_CODE), is("COMPLETE")); } /** @@ -432,7 +432,7 @@ public class ONAPLogAdapterTest { adapter.getResponseDescriptor() .setResponseCode((String)null) .setResponseSeverity(Level.INFO) - .setResponseStatus(ONAPLogConstants.ResponseStatus.COMPLETED); + .setResponseStatus(ONAPLogConstants.ResponseStatus.COMPLETE); } finally { diff --git a/reference/logging-slf4j/src/test/java/org/onap/logging/ref/slf4j/ONAPLogConstantsTest.java b/reference/logging-slf4j/src/test/java/org/onap/logging/ref/slf4j/ONAPLogConstantsTest.java index f6642f9..681b324 100644 --- a/reference/logging-slf4j/src/test/java/org/onap/logging/ref/slf4j/ONAPLogConstantsTest.java +++ b/reference/logging-slf4j/src/test/java/org/onap/logging/ref/slf4j/ONAPLogConstantsTest.java @@ -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")); |