summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRam Krishna Verma <ram_krishna.verma@bell.ca>2021-05-11 09:35:53 -0400
committerJim Hahn <jrh3@att.com>2021-05-13 11:46:39 +0000
commitc5dd79b8a81f0557784d8bd9c22fd54fc05a65ed (patch)
tree7bf56973c78762b5fcbde9fb7be53f7f8bc40ddd
parentcab090dc1e1e8c3ced4e3020834756070009a457 (diff)
Fix drools-applications csit test cases
In the recent runs, it was found that controller might take fews more seconds to come up and get reported by the telemetry api. So, increasing the "max" wait time for the test cases to 1 min. And it won't slow down the tests as the check will be made every 15 sec to verify if the assertions are passing. The moment they pass, it will move on. Issue-ID: POLICY-3257 Change-Id: If29738cae60a6a21da11fa7a6045b4279012b82e Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca> (cherry picked from commit d9716d4fd3f3c5babd22307883a1620e9a65b68e)
-rw-r--r--csit/tests/drools-applications-test.robot7
1 files changed, 5 insertions, 2 deletions
diff --git a/csit/tests/drools-applications-test.robot b/csit/tests/drools-applications-test.robot
index 18a38bead..627ae1b0c 100644
--- a/csit/tests/drools-applications-test.robot
+++ b/csit/tests/drools-applications-test.robot
@@ -19,8 +19,7 @@ Healthcheck
Controller
[Documentation] Checks controller is up
- ${resp}= PeformGetRequest /policy/pdp/engine/controllers/usecases/drools/facts ${DROOLS_IP} 9696 200
- Should Be Equal As Strings ${resp.json()['usecases']} 1
+ Wait Until Keyword Succeeds 2 min 15 sec VerifyController
MakeTopics
[Documentation] Creates the Policy topics
@@ -202,6 +201,10 @@ VfwExecute
*** Keywords ***
+VerifyController
+ ${resp}= PeformGetRequest /policy/pdp/engine/controllers/usecases/drools/facts ${DROOLS_IP} 9696 200
+ Should Be Equal As Strings ${resp.json()['usecases']} 1
+
PeformGetRequest
[Arguments] ${url} ${hostname} ${port} ${expectedstatus}
${auth}= Create List demo@people.osaaf.org demo123456!