From 845cbbc74445909613aff1912d3cfc9083c57d53 Mon Sep 17 00:00:00 2001 From: "Chou, Joseph (jc2555)" Date: Fri, 6 Mar 2020 10:26:56 -0500 Subject: Add feature-server-pool to the ONAP drools-pdp repository. Update timeout value in testcase and add logback-test.xml Issue-ID: POLICY-2351 Change-Id: Idccf87144e137d7a0d18112a5e1442c4b04a0ac2 Signed-off-by: Joseph Chou --- .../onap/policy/drools/serverpooltest/Test1.java | 5 ++-- .../src/test/resources/logback-test.xml | 32 ++++++++++++++++++++++ 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 feature-server-pool/src/test/resources/logback-test.xml diff --git a/feature-server-pool/src/test/java/org/onap/policy/drools/serverpooltest/Test1.java b/feature-server-pool/src/test/java/org/onap/policy/drools/serverpooltest/Test1.java index 2178fec1..ad4ba8e8 100644 --- a/feature-server-pool/src/test/java/org/onap/policy/drools/serverpooltest/Test1.java +++ b/feature-server-pool/src/test/java/org/onap/policy/drools/serverpooltest/Test1.java @@ -434,9 +434,10 @@ public class Test1 { newReceiver.getServerStatic().getThisServer().getUuid().toString()); logger.info(bos.toString()); - // poll up to 10 seconds for the bucket to be updated + // poll up to 5 minutes for the bucket to be updated TestDroolsObject matchingObject = new TestDroolsObject(message); - await().atMost(50000L, TimeUnit.MILLISECONDS) + await().atMost(5, TimeUnit.MINUTES) + .with().pollInterval(Durations.ONE_SECOND) .until(() -> (new ArrayList(newReceiver.getKieSession().getObjects()) .contains(matchingObject))); diff --git a/feature-server-pool/src/test/resources/logback-test.xml b/feature-server-pool/src/test/resources/logback-test.xml new file mode 100644 index 00000000..7df374fb --- /dev/null +++ b/feature-server-pool/src/test/resources/logback-test.xml @@ -0,0 +1,32 @@ + + + + + + + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{50}:%M:%line - %msg%n + + + + + + -- cgit 1.2.3-korg