From: Felipe Vicens Date: Fri, 26 Jun 2020 06:59:00 +0000 (+0200) Subject: Adding prometheus_host env variable for ci/cd X-Git-Tag: release-v9.0-start~53 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F94%2F9194%2F1;p=osm%2Ftests.git Adding prometheus_host env variable for ci/cd Change-Id: I40f6791481639ed16d0236e8819046cce915a117 Signed-off-by: Felipe Vicens --- diff --git a/robot-systest/resources/basic_01-crud_operations_on_vim_targets_data.py b/robot-systest/resources/basic_01-crud_operations_on_vim_targets_data.py index c30314e..0b119d8 100644 --- a/robot-systest/resources/basic_01-crud_operations_on_vim_targets_data.py +++ b/robot-systest/resources/basic_01-crud_operations_on_vim_targets_data.py @@ -15,7 +15,10 @@ import yaml from pathlib import Path # Prometheus host and port -prometheus_host = os.environ.get("OSM_HOSTNAME") +if os.environ.get("PROMETHEUS_HOSTNAME", False): + prometheus_host = os.environ.get("PROMETHEUS_HOSTNAME") +else: + prometheus_host = os.environ.get("OSM_HOSTNAME") prometheus_port = "9091" # VIM Configuration