From 8a6170b76693a10c37237978c33e94b3f8bf8f0d Mon Sep 17 00:00:00 2001
From: Kevin McKiou <km097d@att.com>
Date: Mon, 24 Jul 2017 17:52:01 -0500
Subject: [POLICY-105] Modifications to RefreshStateAudit

Made the refreshStateAudit configurable and changed the default interval to 10 minutes from 1 minute.  Added a check to fpCheck to check the state of the dependent before setting the opstate to disabled.

Added a refresh to the forwardprogressentity object in stateAudit() so that we are not reading stale timestamp data.

Change-Id: I394feca083fc1fb356d11b9f6886e566c31f248a
Signed-off-by: Kevin McKiou <km097d@att.com>
---
 .../org/openecomp/policy/common/im/test/IntegrityMonitorTest.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'integrity-monitor/src/test/java/org/openecomp')

diff --git a/integrity-monitor/src/test/java/org/openecomp/policy/common/im/test/IntegrityMonitorTest.java b/integrity-monitor/src/test/java/org/openecomp/policy/common/im/test/IntegrityMonitorTest.java
index acc9ad0e..d2fbac46 100644
--- a/integrity-monitor/src/test/java/org/openecomp/policy/common/im/test/IntegrityMonitorTest.java
+++ b/integrity-monitor/src/test/java/org/openecomp/policy/common/im/test/IntegrityMonitorTest.java
@@ -122,10 +122,10 @@ public class IntegrityMonitorTest {
 		//testSanityJmx();
 		//testIM();
 		//testSanityState();
-		//testRefreshStateAudit();
+		testRefreshStateAudit();
 		//testStateCheck();
 		//testGetAllForwardProgressEntity();
-		testStateAudit();
+		//testStateAudit();
 	}
 
 	/*
@@ -642,6 +642,7 @@ public class IntegrityMonitorTest {
 		// parameters are passed via a properties file
 		myProp.put(IntegrityMonitorProperties.DEPENDENCY_GROUPS, "");
 		myProp.put(IntegrityMonitorProperties.TEST_VIA_JMX, "false");
+		myProp.put(IntegrityMonitorProperties.REFRESH_STATE_AUDIT_INTERVAL_MS, "60000");
 		IntegrityMonitor.updateProperties(myProp);
 		
 		et = em.getTransaction();
-- 
cgit 1.2.3-korg