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-base/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-base/src/test/java/org/onap')
2 files changed, 3 insertions, 0 deletions
diff --git a/reference/logging-filter/logging-filter-base/src/test/java/org/onap/logging/filter/base/MDCSetupTest.java b/reference/logging-filter/logging-filter-base/src/test/java/org/onap/logging/filter/base/MDCSetupTest.java index 68b977d..6340ef1 100644 --- a/reference/logging-filter/logging-filter-base/src/test/java/org/onap/logging/filter/base/MDCSetupTest.java +++ b/reference/logging-filter/logging-filter-base/src/test/java/org/onap/logging/filter/base/MDCSetupTest.java @@ -117,6 +117,7 @@ public class MDCSetupTest extends MDCSetup { headers.put(ONAPLogConstants.Headers.INVOCATION_ID, invocationId); setInvocationId(new SimpleHashMap(headers)); assertEquals(invocationId, MDC.get(ONAPLogConstants.MDCs.SERVER_INVOCATION_ID)); + assertEquals(invocationId, MDC.get(ONAPLogConstants.MDCs.INVOCATION_ID)); } @Test @@ -124,6 +125,7 @@ public class MDCSetupTest extends MDCSetup { HashMap<String, String> headers = new HashMap<>(); setInvocationId(new SimpleHashMap(headers)); assertNotNull(MDC.get(ONAPLogConstants.MDCs.SERVER_INVOCATION_ID)); + assertNotNull(MDC.get(ONAPLogConstants.MDCs.INVOCATION_ID)); } @Test diff --git a/reference/logging-filter/logging-filter-base/src/test/java/org/onap/logging/filter/base/MetricLogClientFilterTest.java b/reference/logging-filter/logging-filter-base/src/test/java/org/onap/logging/filter/base/MetricLogClientFilterTest.java index 48da3fa..a0e1a2b 100644 --- a/reference/logging-filter/logging-filter-base/src/test/java/org/onap/logging/filter/base/MetricLogClientFilterTest.java +++ b/reference/logging-filter/logging-filter-base/src/test/java/org/onap/logging/filter/base/MetricLogClientFilterTest.java @@ -76,6 +76,7 @@ public class MetricLogClientFilterTest { String invocationId = metricLogClientFilter.setInvocationId(); assertEquals(invocationId, MDC.get(ONAPLogConstants.MDCs.CLIENT_INVOCATION_ID)); + assertEquals(invocationId, MDC.get(ONAPLogConstants.MDCs.INVOCATION_ID)); } @Test |