summaryrefslogtreecommitdiffstats
path: root/csit
diff options
context:
space:
mode:
authorRam Krishna Verma <ram_krishna.verma@bell.ca>2021-05-11 09:35:53 -0400
committerRam Krishna Verma <ram_krishna.verma@bell.ca>2021-05-11 13:07:57 -0400
commitd9716d4fd3f3c5babd22307883a1620e9a65b68e (patch)
tree51c9cee9158ac087b962e89e211522c922568c92 /csit
parentefeae6df19fed14070a0917f27c19bccb66f399f (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>
Diffstat (limited to 'csit')
-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!