aboutsummaryrefslogtreecommitdiffstats
path: root/csit/common-library.robot
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2023-02-02 08:44:51 +0000
committeradheli.tavares <adheli.tavares@est.tech>2023-02-02 10:11:29 +0000
commitc6eb02ae0f1b9b69a248621e68dbc7a481ce95b7 (patch)
tree070fbbc0685ff2d9dab5a94c9c5bf11d272ca721 /csit/common-library.robot
parent0700486a08b2bc08589f7e6b0be8338d6bbb4efa (diff)
Add configurations to run SLAs validations on CSITs
Issue-ID: POLICY-4531 Change-Id: Idf69fe888828fabd4ec0cd3c18fea7aff96caac8 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'csit/common-library.robot')
-rw-r--r--csit/common-library.robot5
1 files changed, 5 insertions, 0 deletions
diff --git a/csit/common-library.robot b/csit/common-library.robot
index 95831b0d..c19f78cd 100644
--- a/csit/common-library.robot
+++ b/csit/common-library.robot
@@ -119,3 +119,8 @@ GetMetrics
${resp}= GET On Session policy ${context_path}metrics expected_status=200
Log Received response from policy ${resp.text}
[return] ${resp}
+
+QueryPrometheus ${query}
+ ${resp}= GET http://localhost:30259/api/v1/query?query=${query} expected_status=200
+ Log Received response from policy ${resp.text}
+ [return] ${resp}