summaryrefslogtreecommitdiffstats
path: root/controlloop
diff options
context:
space:
mode:
authorRashmi Pujar <rashmi.pujar@bell.ca>2019-11-06 14:47:03 -0500
committerRashmi Pujar <rashmi.pujar@bell.ca>2019-11-06 14:47:03 -0500
commit5f417e1ae3a6827881f21fa8293485c271f4c847 (patch)
tree26b34853761583fcc9a40af5fa15b8979f36a582 /controlloop
parent252688b18ec63eb0e1fe02ea6b9acdd709bde512 (diff)
Update drools-application due to https://gerrit.onap.org/r/#/c/policy/models/+/97989/
Issue-ID: POLICY-1896 Signed-off-by: Rashmi Pujar <rashmi.pujar@bell.ca> Change-Id: I6125a1c83f58411f08bb143ff21ccd66d4db4977
Diffstat (limited to 'controlloop')
-rw-r--r--controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManager.java2
-rw-r--r--controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManagerTest.java12
2 files changed, 7 insertions, 7 deletions
diff --git a/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManager.java b/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManager.java
index be22e76bb..c01bec443 100644
--- a/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManager.java
+++ b/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManager.java
@@ -828,7 +828,7 @@ public class ControlLoopEventManager implements Serializable {
throw new AaiException("AAI Responded with a request error (query by " + queryTypeString + ")");
}
- if (aaiResponse.getIsClosedLoopDisabled()) {
+ if (aaiResponse.isClosedLoopDisabled()) {
throw new AaiException("is-closed-loop-disabled is set to true (query by " + queryTypeString + ")");
}
diff --git a/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManagerTest.java b/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManagerTest.java
index c9202904c..5601d08a8 100644
--- a/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManagerTest.java
+++ b/controlloop/common/eventmanager/src/test/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManagerTest.java
@@ -264,7 +264,7 @@ public class ControlLoopEventManagerTest {
response.setServiceId("a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb");
response.setOrchestrationStatus("Created");
response.setInMaint(false);
- response.setIsClosedLoopDisabled(false);
+ response.setClosedLoopDisabled(false);
response.setResourceVersion("1494001988835");
response.setModelInvariantId("f18be3cd-d446-456e-9109-121d9b62feaa");
@@ -313,7 +313,7 @@ public class ControlLoopEventManagerTest {
response.setServiceId("a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb");
response.setOrchestrationStatus("Created");
response.setInMaint(false);
- response.setIsClosedLoopDisabled(false);
+ response.setClosedLoopDisabled(false);
response.setResourceVersion("1494001988835");
response.setModelInvariantId("f18be3cd-d446-456e-9109-121d9b62feaa");
@@ -1108,7 +1108,7 @@ public class ControlLoopEventManagerTest {
@Test
public void testProcessVnfResponse_Success() throws Exception {
AaiGetVnfResponse resp = new AaiGetVnfResponse();
- resp.setIsClosedLoopDisabled(false);
+ resp.setClosedLoopDisabled(false);
resp.setProvStatus(ControlLoopEventManager.PROV_STATUS_ACTIVE);
Whitebox.invokeMethod(ControlLoopEventManager.class, PROCESS_VNF_RESPONSE_METHOD_NAME, resp, true);
}
@@ -1131,7 +1131,7 @@ public class ControlLoopEventManagerTest {
resp.setRequestError(new AaiNqRequestError());
- resp.setIsClosedLoopDisabled(false);
+ resp.setClosedLoopDisabled(false);
resp.setProvStatus(ControlLoopEventManager.PROV_STATUS_ACTIVE);
Whitebox.invokeMethod(ControlLoopEventManager.class, PROCESS_VNF_RESPONSE_METHOD_NAME, resp, false);
}
@@ -1142,7 +1142,7 @@ public class ControlLoopEventManagerTest {
thrown.expectMessage("is-closed-loop-disabled is set to true (query by vnf-id)");
AaiGetVnfResponse resp = new AaiGetVnfResponse();
- resp.setIsClosedLoopDisabled(true);
+ resp.setClosedLoopDisabled(true);
resp.setProvStatus(ControlLoopEventManager.PROV_STATUS_ACTIVE);
Whitebox.invokeMethod(ControlLoopEventManager.class, PROCESS_VNF_RESPONSE_METHOD_NAME, resp, true);
}
@@ -1153,7 +1153,7 @@ public class ControlLoopEventManagerTest {
thrown.expectMessage("prov-status is not ACTIVE (query by vnf-name)");
AaiGetVnfResponse resp = new AaiGetVnfResponse();
- resp.setIsClosedLoopDisabled(false);
+ resp.setClosedLoopDisabled(false);
resp.setProvStatus("inactive1");
Whitebox.invokeMethod(ControlLoopEventManager.class, PROCESS_VNF_RESPONSE_METHOD_NAME, resp, false);
}