diff options
author | Joseph Chou <jc2555@att.com> | 2020-04-08 17:45:38 -0400 |
---|---|---|
committer | Joseph Chou <jc2555@att.com> | 2020-04-10 12:27:47 -0400 |
commit | 8ed1d1c28fbf0e95e86f061f50bb362265ca51de (patch) | |
tree | e12e0c2fd5fe3ad4f0abc6ffac27819a1cc45168 /common-logging/src/test/java/org/onap/policy/common/logging/eelf/ErrorCodeMapTest.java | |
parent | a2ca5ed5782f32ca54d14ffde2cbcfa0e4c3fea3 (diff) |
Update common-logging for log enhancement work
Resolve missing error code, add marker/mdc for audit/metrics
Change-Id: I490b17aac86f3b63df43e267a5dbe1d1588e5fdf
Issue-ID: POLICY-2478
Signed-off-by: Joseph Chou <jc2555@att.com>
Diffstat (limited to 'common-logging/src/test/java/org/onap/policy/common/logging/eelf/ErrorCodeMapTest.java')
-rw-r--r-- | common-logging/src/test/java/org/onap/policy/common/logging/eelf/ErrorCodeMapTest.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/common-logging/src/test/java/org/onap/policy/common/logging/eelf/ErrorCodeMapTest.java b/common-logging/src/test/java/org/onap/policy/common/logging/eelf/ErrorCodeMapTest.java index 781be600..c34d9696 100644 --- a/common-logging/src/test/java/org/onap/policy/common/logging/eelf/ErrorCodeMapTest.java +++ b/common-logging/src/test/java/org/onap/policy/common/logging/eelf/ErrorCodeMapTest.java @@ -3,13 +3,14 @@ * ONAP-Logging * ================================================================================ * Copyright (C) 2018 Ericsson. All rights reserved. + * Modifications Copyright (C) 2020 AT&T. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -47,7 +48,7 @@ public class ErrorCodeMapTest { @Test public void testErrorCodeInfoGetErrorCode() { ErrorCodeInfo errorCodeInfo = ErrorCodeMap.getErrorCodeInfo(MessageCodes.EXCEPTION_ERROR); - assertEquals("POLICY-503E", errorCodeInfo.getErrorCode()); + assertEquals("500", errorCodeInfo.getErrorCode()); } @Test |