Drools-apps CSIT randomly fails deploying policies 49/107249/1
authorJim Hahn <jrh3@att.com>
Wed, 6 May 2020 14:27:21 +0000 (10:27 -0400)
committerJim Hahn <jrh3@att.com>
Wed, 6 May 2020 14:57:59 +0000 (10:57 -0400)
The drools-apps CSIT was randomly failing while deploying policies
to xacml-pdp.  The message that xacml-pdp published only contained
the naming policy, thus the test failed.

The supposition is that the topic monitoring script returned an earlier
message from when the xacml-pdp first started up.  Modified the robot
script to be more specific when searching for the deployment message.

Issue-ID: POLICY-2543
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: I209a927041c3566324bfad150b41fc12fd8f5920

tests/policy/drools-applications/drools-applications-test.robot

index 2104566..a1ca5e2 100644 (file)
@@ -124,7 +124,7 @@ DeployXacmlPolicies
     Log    Received response from pap ${resp.text}
     Should Be Equal As Strings    ${resp.status_code}     200
     ${result}=     Run Process        ${SCR2}/wait_topic.sh     POLICY-PDP-PAP
-    ...            responseTo    xacml    ACTIVE
+    ...            responseTo    xacml    ACTIVE    restart
     Log    Received status ${result.stdout}
     Should Be Equal As Integers        ${result.rc}    0
     Should Contain    ${result.stdout}    onap.restart.tca