summaryrefslogtreecommitdiffstats
path: root/controlloop/templates/template.demo/src/test/java
diff options
context:
space:
mode:
authorTarun Tej Velaga <tt3868@att.com>2017-08-15 13:20:02 +0000
committerTarun Tej Velaga <tt3868@att.com>2017-08-15 20:27:21 +0000
commit5ae90a9bf72d2d6dbb163c3dbea5474b657be7e7 (patch)
tree4b3baebc47b1edee20e96bcd2e8566234903985f /controlloop/templates/template.demo/src/test/java
parent18f392b0420a8fe6022a5c3cd6c20e99651a5b66 (diff)
Policy-yaml changes
Changes to Policy-yaml and sdc projects based on changes from policy/engine. Issue-Id: POLICY-88 Change-Id: Ic1a58f00029b9a66db6980fc7732a2ac57390229 Signed-off-by: Tarun Tej Velaga <tt3868@att.com>
Diffstat (limited to 'controlloop/templates/template.demo/src/test/java')
-rw-r--r--controlloop/templates/template.demo/src/test/java/org/onap/policy/template/demo/ControlLoopXacmlGuardTest.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/controlloop/templates/template.demo/src/test/java/org/onap/policy/template/demo/ControlLoopXacmlGuardTest.java b/controlloop/templates/template.demo/src/test/java/org/onap/policy/template/demo/ControlLoopXacmlGuardTest.java
index 56ef3c641..bad984bc9 100644
--- a/controlloop/templates/template.demo/src/test/java/org/onap/policy/template/demo/ControlLoopXacmlGuardTest.java
+++ b/controlloop/templates/template.demo/src/test/java/org/onap/policy/template/demo/ControlLoopXacmlGuardTest.java
@@ -115,14 +115,14 @@ public class ControlLoopXacmlGuardTest {
final Util.Pair<ControlLoopPolicy, String> pair = Util.loadYaml(yamlFile);
assertNotNull(pair);
assertNotNull(pair.a);
- assertNotNull(pair.a.controlLoop);
- assertNotNull(pair.a.controlLoop.controlLoopName);
- assertTrue(pair.a.controlLoop.controlLoopName.length() > 0);
+ assertNotNull(pair.a.getControlLoop());
+ assertNotNull(pair.a.getControlLoop().getControlLoopName());
+ assertTrue(pair.a.getControlLoop().getControlLoopName().length() > 0);
//
// Build a container
//
final KieSession kieSession = buildContainer(droolsTemplate,
- pair.a.controlLoop.controlLoopName,
+ pair.a.getControlLoop().getControlLoopName(),
policyScope,
policyName,
policyVersion,
@@ -446,7 +446,7 @@ public class ControlLoopXacmlGuardTest {
protected void sendAbatement(KieSession kieSession, ControlLoopPolicy policy, UUID requestID, String triggerSourceName) throws InterruptedException {
VirtualControlLoopEvent event = new VirtualControlLoopEvent();
- event.closedLoopControlName = policy.controlLoop.controlLoopName;
+ event.closedLoopControlName = policy.getControlLoop().getControlLoopName();
event.requestID = requestID;
event.target = "vserver.vserver-name";
event.closedLoopAlarmStart = Instant.now().minusSeconds(5);
@@ -462,7 +462,7 @@ public class ControlLoopXacmlGuardTest {
protected void sendGoodEvents(KieSession kieSession, ControlLoopPolicy policy, UUID requestID, String triggerSourceName) throws InterruptedException {
VirtualControlLoopEvent event = new VirtualControlLoopEvent();
- event.closedLoopControlName = policy.controlLoop.controlLoopName;
+ event.closedLoopControlName = policy.getControlLoop().getControlLoopName();
event.requestID = requestID;
event.target = "vserver.vserver-name";
event.closedLoopAlarmStart = Instant.now();
@@ -482,7 +482,7 @@ public class ControlLoopXacmlGuardTest {
// Insert a bad Event
//
VirtualControlLoopEvent event = new VirtualControlLoopEvent();
- event.closedLoopControlName = policy.controlLoop.controlLoopName;
+ event.closedLoopControlName = policy.getControlLoop().getControlLoopName();
kieSession.insert(event);
Thread.sleep(250);
//