diff options
author | Jorge Hernandez <jorge.hernandez-herrero@att.com> | 2019-08-30 12:37:14 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-08-30 12:37:14 +0000 |
commit | 1281abe9fdb4a2e0a4f4880b8e0b9b375a0b9a3d (patch) | |
tree | 71b68a8376d8d1a08f299ad975d15ed399d6a323 /policy-utils/src/test | |
parent | 6c01f857fef517e162faea4b7abbbb2bb067fe7d (diff) | |
parent | 60449686fb38104c4232650f7e4423d9d348c221 (diff) |
Merge "Remove AlertSeverity from logback in drools-pdp"
Diffstat (limited to 'policy-utils/src/test')
-rw-r--r-- | policy-utils/src/test/java/org/onap/policy/drools/utils/logging/MdcTransactionTest.java | 8 | ||||
-rw-r--r-- | policy-utils/src/test/resources/logback-test.xml | 10 |
2 files changed, 6 insertions, 12 deletions
diff --git a/policy-utils/src/test/java/org/onap/policy/drools/utils/logging/MdcTransactionTest.java b/policy-utils/src/test/java/org/onap/policy/drools/utils/logging/MdcTransactionTest.java index 9c0cf968..76fee77a 100644 --- a/policy-utils/src/test/java/org/onap/policy/drools/utils/logging/MdcTransactionTest.java +++ b/policy-utils/src/test/java/org/onap/policy/drools/utils/logging/MdcTransactionTest.java @@ -66,7 +66,6 @@ public class MdcTransactionTest { assertNull(MDC.get(MdcTransactionConstants.RESPONSE_CODE)); assertNull(MDC.get(MdcTransactionConstants.RESPONSE_DESCRIPTION)); assertNull(MDC.get(MdcTransactionConstants.SEVERITY)); - assertNull(MDC.get(MdcTransactionConstants.ALERT_SEVERITY)); assertNull(MDC.get(MdcTransactionConstants.TARGET_ENTITY)); assertNull(MDC.get(MdcTransactionConstants.TARGET_SERVICE_NAME)); assertNull(MDC.get(MdcTransactionConstants.TARGET_VIRTUAL_ENTITY)); @@ -100,7 +99,7 @@ public class MdcTransactionTest { assertNull(trans.getProcessKey()); assertNull(trans.getClientIpAddress()); assertNull(trans.getRemoteHost()); - assertNull(trans.getAlertSeverity()); + assertNull(trans.getSeverity()); assertNull(trans.getTargetVirtualEntity()); } @@ -136,7 +135,6 @@ public class MdcTransactionTest { .setResponseCode("response-code") .setResponseDescription("response-description") .setSeverity("severity") - .setAlertSeverity("alert-severity") .setTargetEntity("target-entity") .setTargetServiceName("target-service-name") .setTargetVirtualEntity("target-virtual-entity") @@ -157,7 +155,6 @@ public class MdcTransactionTest { assertNotNull(MDC.get(MdcTransactionConstants.RESPONSE_CODE)); assertNotNull(MDC.get(MdcTransactionConstants.RESPONSE_DESCRIPTION)); assertNotNull(MDC.get(MdcTransactionConstants.SEVERITY)); - assertNotNull(MDC.get(MdcTransactionConstants.ALERT_SEVERITY)); assertNotNull(MDC.get(MdcTransactionConstants.TARGET_ENTITY)); assertNotNull(MDC.get(MdcTransactionConstants.TARGET_SERVICE_NAME)); assertNotNull(MDC.get(MdcTransactionConstants.TARGET_VIRTUAL_ENTITY)); @@ -177,7 +174,6 @@ public class MdcTransactionTest { assertEquals(trans.getResponseCode(), MDC.get(MdcTransactionConstants.RESPONSE_CODE)); assertEquals(trans.getResponseDescription(), MDC.get(MdcTransactionConstants.RESPONSE_DESCRIPTION)); assertEquals(trans.getSeverity(), MDC.get(MdcTransactionConstants.SEVERITY)); - assertEquals(trans.getAlertSeverity(), MDC.get(MdcTransactionConstants.ALERT_SEVERITY)); assertEquals(trans.getTargetEntity(), MDC.get(MdcTransactionConstants.TARGET_ENTITY)); assertEquals(trans.getTargetServiceName(), MDC.get(MdcTransactionConstants.TARGET_SERVICE_NAME)); assertEquals(trans.getTargetVirtualEntity(), MDC.get(MdcTransactionConstants.TARGET_VIRTUAL_ENTITY)); @@ -190,7 +186,6 @@ public class MdcTransactionTest { assertEquals("response-code", trans.getResponseCode()); assertEquals("response-description", trans.getResponseDescription()); assertEquals("severity", trans.getSeverity()); - assertEquals("alert-severity", trans.getAlertSeverity()); assertEquals("target-entity", trans.getTargetEntity()); assertEquals("target-service-name", trans.getTargetServiceName()); assertEquals("target-virtual-entity", trans.getTargetVirtualEntity()); @@ -246,7 +241,6 @@ public class MdcTransactionTest { .setResponseCode("response-code") .setResponseDescription("response-description") .setSeverity("severity") - .setAlertSeverity("alert-severity") .setTargetEntity("target-entity") .setTargetServiceName("target-service-name") .setTargetVirtualEntity("target-virtual-entity") diff --git a/policy-utils/src/test/resources/logback-test.xml b/policy-utils/src/test/resources/logback-test.xml index 366a5f67..1a19758e 100644 --- a/policy-utils/src/test/resources/logback-test.xml +++ b/policy-utils/src/test/resources/logback-test.xml @@ -2,14 +2,14 @@ ============LICENSE_START======================================================= ONAP ================================================================================ - Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. + Copyright (C) 2018-2019 AT&T Intellectual Property. All rights reserved. ================================================================================ 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. @@ -20,7 +20,7 @@ <configuration> - <property name="pattern" value="%X{RequestID}|%X{InvocationID}|%X{ServiceName}|%X{PartnerName}|%X{BeginTimestamp}|%X{EndTimestamp}|%X{ElapsedTime}|%X{ServiceInstanceID}|%X{VirtualServerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%X{Severity}|%X{TargetEntity}|%X{TargetServiceName}|%X{Server}|%X{ServerIPAddress}|%X{ServerFQDN}|%X{ClientIPAddress}|%X{ProcessKey}|%X{RemoteHost}|%X{AlertSeverity}|%X{TargetVirtualEntity}|%level|%logger{0}|%thread| %msg%n"/> + <property name="pattern" value="%X{RequestID}|%X{InvocationID}|%X{ServiceName}|%X{PartnerName}|%X{BeginTimestamp}|%X{EndTimestamp}|%X{ElapsedTime}|%X{ServiceInstanceID}|%X{VirtualServerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%X{Severity}|%X{TargetEntity}|%X{TargetServiceName}|%X{Server}|%X{ServerIPAddress}|%X{ServerFQDN}|%X{ClientIPAddress}|%X{ProcessKey}|%X{RemoteHost}||%X{TargetVirtualEntity}|%level|%logger{0}|%thread| %msg%n"/> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <filter class="org.onap.policy.drools.utils.logging.LoggerMarkerFilter$MetricLoggerMarkerFilter" /> @@ -28,7 +28,7 @@ <Pattern>${pattern}</Pattern> </encoder> </appender> - + <root level="INFO"> <appender-ref ref="STDOUT"/> </root> |