diff options
author | 2020-02-20 22:11:55 +0000 | |
---|---|---|
committer | 2020-03-17 21:44:17 +0000 | |
commit | 8c42d51ee002a1f6b05c2a0783bd8ee7946f9124 (patch) | |
tree | 43bd4e0930522c367002dcc4fb2990a55681a792 /reference/logging-filter/logging-filter-spring/src/test/java/org/onap/logging/filter | |
parent | 7748e30556c68e710832e5f1612f9c5c7e3a854e (diff) |
metric log updates and util fix
make metric log more flexible
Issue-ID: LOG-1202
Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com>
Change-Id: I13d6f52d5bc302e3aef65ad39c8df7c8effd1935
Diffstat (limited to 'reference/logging-filter/logging-filter-spring/src/test/java/org/onap/logging/filter')
-rw-r--r-- | reference/logging-filter/logging-filter-spring/src/test/java/org/onap/logging/filter/spring/SpringClientFilterTest.java | 7 |
1 files changed, 2 insertions, 5 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 042e6f1..ea54345 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 @@ -120,10 +120,9 @@ public class SpringClientFilterTest extends SpringClientFilter { @Test public void setupHeadersTest() { - MDC.put(ONAPLogConstants.MDCs.REQUEST_ID, "0a908a5d-e774-4558-96ff-6edcbba65483"); - HttpHeaders headers = new HttpHeaders(); - setupHeaders(clientRequest, headers); + setupHeaders(clientRequest, headers, "0a908a5d-e774-4558-96ff-6edcbba65483", + "4d93e6e2-ff27-4818-9752-1cfe3090d3f1"); assertEquals("0a908a5d-e774-4558-96ff-6edcbba65483", headers.getFirst(ONAPLogConstants.Headers.REQUEST_ID)); assertEquals("0a908a5d-e774-4558-96ff-6edcbba65483", headers.getFirst(Constants.HttpHeaders.HEADER_REQUEST_ID)); @@ -131,8 +130,6 @@ 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)); } |