Fix bug 1421: use of 'GET On Session instead' instead of 'Get Request' 22/10222/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 27 Jan 2021 10:31:56 +0000 (10:31 +0000)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 27 Jan 2021 10:32:14 +0000 (10:32 +0000)
Change-Id: I64d0b00aba255ab0a84be6f1d5ab5a0c063b5df0
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
robot-systest/lib/prometheus_lib.robot

index d4c6b14..e133c2a 100644 (file)
@@ -19,7 +19,7 @@ Library   RequestsLibrary
 
 
 *** Variables ***
-${timeout}  1000
+${timeout}  30
 ${max_retries}  1
 
 
@@ -55,6 +55,6 @@ Execute Prometheus Instant Query
     [Arguments]  ${prometheus_ip}  ${prometheus_port}  ${querystring}
 
     Create Session  prometheus  http://${prometheus_ip}:${prometheus_port}  timeout=${timeout}  max_retries=${max_retries}
-    ${resp}=  Get Request  prometheus  /api/v1/query?${querystring}  timeout=${timeout}
+    ${resp}=  GET On Session  prometheus  /api/v1/query?${querystring}  timeout=${timeout}
     Status Should Be  200  ${resp}
     [Return]  ${resp.json()}