diff options
author | 2019-12-04 15:02:50 -0500 | |
---|---|---|
committer | 2019-12-04 15:58:39 -0500 | |
commit | ade7ef267161cb22cc2834e44dc6bde0597884f5 (patch) | |
tree | 302e903861919ea5a9eaa7a10a6c888333421d0b /reference/logging-filter/logging-filter-spring/src/test/java/org/onap | |
parent | fbe7e0db7cc591990c379ac1516be7a4433fe01c (diff) |
Set InvocationID value from server and client invocationIds
Issue-ID: LOG-1189
Change-Id: I471b3f415546d8950f17b91b8d6ac4d415fed076
Signed-off-by: Brittany Plummer (bp896r) <bp896r@att.com>
Diffstat (limited to 'reference/logging-filter/logging-filter-spring/src/test/java/org/onap')
-rw-r--r-- | reference/logging-filter/logging-filter-spring/src/test/java/org/onap/logging/filter/spring/SpringClientFilterTest.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/reference/logging-filter/logging-filter-spring/src/test/java/org/onap/logging/filter/spring/SpringClientFilterTest.java b/reference/logging-filter/logging-filter-spring/src/test/java/org/onap/logging/filter/spring/SpringClientFilterTest.java index 4346fc1..042e6f1 100644 --- a/reference/logging-filter/logging-filter-spring/src/test/java/org/onap/logging/filter/spring/SpringClientFilterTest.java +++ b/reference/logging-filter/logging-filter-spring/src/test/java/org/onap/logging/filter/spring/SpringClientFilterTest.java @@ -131,6 +131,8 @@ public class SpringClientFilterTest extends SpringClientFilter { assertEquals("0a908a5d-e774-4558-96ff-6edcbba65483", headers.getFirst(Constants.HttpHeaders.TRANSACTION_ID)); assertEquals("0a908a5d-e774-4558-96ff-6edcbba65483", headers.getFirst(Constants.HttpHeaders.ECOMP_REQUEST_ID)); assertNotNull(headers.getFirst(ONAPLogConstants.Headers.INVOCATION_ID)); + assertNotNull(MDC.get(ONAPLogConstants.MDCs.INVOCATION_ID)); + assertNotNull(MDC.get(ONAPLogConstants.MDCs.CLIENT_INVOCATION_ID)); assertEquals("UNKNOWN", headers.getFirst(ONAPLogConstants.Headers.PARTNER_NAME)); } |