summaryrefslogtreecommitdiffstats
path: root/csit/common-library.robot
diff options
context:
space:
mode:
authora.sreekumar <ajith.sreekumar@bell.ca>2022-02-14 13:51:34 +0000
committera.sreekumar <ajith.sreekumar@bell.ca>2022-02-14 14:45:44 +0000
commit67f7bd978865e8cad3cc84c2a4074f6ce02dff3e (patch)
tree4bf7535c86cce509ebca8b65c94407115a2e669d /csit/common-library.robot
parentcaf5997ca8d51ad4dc5353e6e035a46cdea2e0d4 (diff)
Fix policy-api CSIT test
Change-Id: Idd7fd933f10dabaa203ec498996aa772facddac9 Issue-ID: POLICY-3753 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Diffstat (limited to 'csit/common-library.robot')
-rw-r--r--csit/common-library.robot7
1 files changed, 7 insertions, 0 deletions
diff --git a/csit/common-library.robot b/csit/common-library.robot
index 830d0f63..c2d1de7f 100644
--- a/csit/common-library.robot
+++ b/csit/common-library.robot
@@ -100,3 +100,10 @@ QueryPolicyStatus
Should Be Equal As Strings ${responseEntry['deploy']} True
Should Be Equal As Strings ${responseEntry['state']} SUCCESS
+GetMetrics
+ [Arguments] ${hostname} ${auth}
+ Log Creating session https://${hostname}:6969
+ ${session}= Create Session policy https://${hostname}:6969 auth=${auth}
+ ${resp}= GET On Session policy /metrics expected_status=200
+ Log Received response from policy ${resp.text}
+ [return] ${resp}