summaryrefslogtreecommitdiffstats
path: root/csit/resources/tests/common-library.robot
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2023-02-28 12:59:37 +0000
committeradheli.tavares <adheli.tavares@est.tech>2023-03-01 10:56:01 +0000
commit1153b6d0153344d4d92518d2ca73ecfe71dfa9d9 (patch)
tree019fcc478bc3cda85d28ed960926a4729d0ff782 /csit/resources/tests/common-library.robot
parentfde3ffa6e508ae30945c8f2fefbf941bf6d42074 (diff)
New Test Development
- api, pap (except consolidated HC), apex and acm runtime passing on both docker and helm environment - other simulators exposed on simulator service - topics are checked on test with robot http support - apex temp engine port exposed - xacml readiness added Issue-ID: POLICY-4125 Change-Id: I39ee8c38e70dd3a4ad26ba69d7c62e61a211469e Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'csit/resources/tests/common-library.robot')
-rw-r--r--csit/resources/tests/common-library.robot21
1 files changed, 17 insertions, 4 deletions
diff --git a/csit/resources/tests/common-library.robot b/csit/resources/tests/common-library.robot
index fb6f52f0..c43b5dca 100644
--- a/csit/resources/tests/common-library.robot
+++ b/csit/resources/tests/common-library.robot
@@ -10,10 +10,6 @@ PolicyAdminAuth
${policyadmin}= Create list policyadmin zb!XztG34
[return] ${policyadmin}
-HealthCheckAuth
- ${healthcheck}= Create list policyadmin zb!XztG34
- [return] ${healthcheck}
-
PerformPostRequest
[Arguments] ${domain} ${url} ${expectedstatus} ${postjson} ${params} ${auth}
Log Creating session http://${domain}
@@ -135,3 +131,20 @@ ValidateResponseTime
${rawNumber}= Evaluate ${resp['data']['result'][0]['value'][1]}
${actualTime}= Set Variable ${rawNumber * ${1000}}
Should Be True ${actualTime} <= ${timeLimit}
+
+GetTopic
+ [Arguments] ${topic}
+ Create Session session http://${DMAAP_IP} max_retries=1
+ ${params}= Create Dictionary limit 1 timeout 0
+ ${resp}= GET On Session session /events/${topic}/script/1 ${params}
+ Status Should Be OK ${resp}
+
+CheckTopic
+ [Arguments] ${topic} ${expected_status}
+ Create Session session http://${DMAAP_IP} max_retries=1
+ ${params}= Create Dictionary limit 1
+ ${resp}= GET On Session session /events/${topic}/script/1 ${params}
+ Log Received response from dmaap ${resp.text}
+ Status Should Be OK ${resp}
+ Should Contain ${resp.text} ${expected_status}
+ [Return] ${resp.text}