aboutsummaryrefslogtreecommitdiffstats
path: root/controlloop
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2021-05-07 09:50:59 -0400
committerJim Hahn <jrh3@att.com>2021-05-07 10:18:58 -0400
commit2faa81d80569ce38a014e2a2ab404b1ea9f6899e (patch)
tree8be64fa1bd4795e5a0fe83bfd59fa926e0633cd0 /controlloop
parentd304f7d3a058b024ab413374e1a6065411903e3c (diff)
Fix build error in drools-apps related to services
Apparently, creating the event services in the rule file has broken the junit test of the rules. It appears that the http clients are not yet loaded into the drools-pdp engine by the time the first rule fires, thus the event manager is unable to initialize all of its actors. Modified the junit to not start the rules until after the http clients have been started. Issue-ID: POLICY-3260 Change-Id: I83fe4ea9fa7ca24396019c18f0d77352fbe86db4 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'controlloop')
-rw-r--r--controlloop/common/controller-usecases/src/test/java/org/onap/policy/controlloop/UsecasesTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/controlloop/common/controller-usecases/src/test/java/org/onap/policy/controlloop/UsecasesTest.java b/controlloop/common/controller-usecases/src/test/java/org/onap/policy/controlloop/UsecasesTest.java
index b9864bdd7..8b0403df3 100644
--- a/controlloop/common/controller-usecases/src/test/java/org/onap/policy/controlloop/UsecasesTest.java
+++ b/controlloop/common/controller-usecases/src/test/java/org/onap/policy/controlloop/UsecasesTest.java
@@ -54,10 +54,11 @@ public class UsecasesTest extends DroolsRuleTest {
initStatics(CONTROLLER_NAME);
rules.configure("src/main/resources");
- rules.start();
httpClients.addClients("usecases");
simulators.start(Util::buildAaiSim, Util::buildSoSim, Util::buildVfcSim, Util::buildGuardSim,
Util::buildSdncSim);
+
+ rules.start();
}
/**