Fix policy-api CSIT test

Change-Id: Idd7fd933f10dabaa203ec498996aa772facddac9
Issue-ID: POLICY-3753
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
diff --git a/csit/common-library.robot b/csit/common-library.robot
index 830d0f6..c2d1de7 100644
--- a/csit/common-library.robot
+++ b/csit/common-library.robot
@@ -100,3 +100,10 @@
     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}