From d4cdba762ffa846e65a0cc812eb972ec9090c6b4 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Wed, 27 Jan 2021 10:31:56 +0000 Subject: [PATCH] Fix bug 1421: use of 'GET On Session instead' instead of 'Get Request' Change-Id: I64d0b00aba255ab0a84be6f1d5ab5a0c063b5df0 Signed-off-by: garciadeblas --- robot-systest/lib/prometheus_lib.robot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/robot-systest/lib/prometheus_lib.robot b/robot-systest/lib/prometheus_lib.robot index d4c6b14..e133c2a 100644 --- a/robot-systest/lib/prometheus_lib.robot +++ b/robot-systest/lib/prometheus_lib.robot @@ -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()} -- 2.17.1