X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Ftests.git;a=blobdiff_plain;f=robot-systest%2Flib%2Fprometheus_lib.robot;h=e133c2a7499b9c2b3fc6df4c2cbc194212caabc5;hp=d4c6b143e74e86f356452d74a1b5b2d0f0ec37af;hb=d4cdba762ffa846e65a0cc812eb972ec9090c6b4;hpb=9e22ea8cfc255c97ce3f65bb9eaf801b936fe53b 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()}