From 753d613f817a419bc959bc882e165f5eb027562d Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Wed, 6 May 2020 10:27:21 -0400 Subject: [PATCH] Drools-apps CSIT randomly fails deploying policies 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 Change-Id: I209a927041c3566324bfad150b41fc12fd8f5920 --- tests/policy/drools-applications/drools-applications-test.robot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/policy/drools-applications/drools-applications-test.robot b/tests/policy/drools-applications/drools-applications-test.robot index 2104566a..a1ca5e20 100644 --- a/tests/policy/drools-applications/drools-applications-test.robot +++ b/tests/policy/drools-applications/drools-applications-test.robot @@ -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 -- 2.16.6