aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java3
-rw-r--r--main/src/test/java/org/onap/policy/pap/main/comm/PdpHeartbeatListenerTest.java2
2 files changed, 5 insertions, 0 deletions
diff --git a/main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java b/main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java
index 45febe95..4ffbe622 100644
--- a/main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java
+++ b/main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java
@@ -349,6 +349,9 @@ public class PdpStatusMessageHandler extends PdpMessageGenerator {
.append(message.getStatistics().getPolicyDeployCount() < 0, false)
.append(message.getStatistics().getPolicyDeployFailCount() < 0, false)
.append(message.getStatistics().getPolicyDeploySuccessCount() < 0, false)
+ .append(message.getStatistics().getPolicyUndeployCount() < 0, false)
+ .append(message.getStatistics().getPolicyUndeployFailCount() < 0, false)
+ .append(message.getStatistics().getPolicyUndeploySuccessCount() < 0, false)
.append(message.getStatistics().getPolicyExecutedCount() < 0, false)
.append(message.getStatistics().getPolicyExecutedFailCount() < 0, false)
.append(message.getStatistics().getPolicyExecutedSuccessCount() < 0, false).build();
diff --git a/main/src/test/java/org/onap/policy/pap/main/comm/PdpHeartbeatListenerTest.java b/main/src/test/java/org/onap/policy/pap/main/comm/PdpHeartbeatListenerTest.java
index 2344c4f3..7ae4b370 100644
--- a/main/src/test/java/org/onap/policy/pap/main/comm/PdpHeartbeatListenerTest.java
+++ b/main/src/test/java/org/onap/policy/pap/main/comm/PdpHeartbeatListenerTest.java
@@ -342,6 +342,8 @@ public class PdpHeartbeatListenerTest extends End2EndBase {
pdpStatistics06.setPolicyDeployCount(-1);
pdpStatistics06.setPolicyDeployFailCount(-1);
+ pdpStatistics06.setPolicyUndeployCount(-1);
+ pdpStatistics06.setPolicyUndeployFailCount(-1);
status5.setStatistics(pdpStatistics06);
pdpHeartbeatListener.onTopicEvent(INFRA, TOPIC, status5);