X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Ftests.git;a=blobdiff_plain;f=robot-systest%2Fresources%2Fsa_02-vnf_with_vim_metrics_and_autoscaling_data.py;h=befeb365d2018d0e1e64985eacf3c9ac62503eb4;hp=ef1ee29df92652610dd0eb62dda3b1153f61b27c;hb=a5704d6a060b5329e10488a351c50495be69d680;hpb=02454daa68b47818fc9fc7d479b8ef85b51c1603 diff --git a/robot-systest/resources/sa_02-vnf_with_vim_metrics_and_autoscaling_data.py b/robot-systest/resources/sa_02-vnf_with_vim_metrics_and_autoscaling_data.py index ef1ee29..befeb36 100644 --- a/robot-systest/resources/sa_02-vnf_with_vim_metrics_and_autoscaling_data.py +++ b/robot-systest/resources/sa_02-vnf_with_vim_metrics_and_autoscaling_data.py @@ -11,15 +11,12 @@ # limitations under the License. from pathlib import Path -import os + +from common_helpers import get_prometheus_info + # Prometheus host and port -if os.environ.get('PROMETHEUS_HOSTNAME', False): - prometheus_host = os.environ.get('PROMETHEUS_HOSTNAME') - prometheus_port = '9090' -else: - prometheus_host = os.environ.get('OSM_HOSTNAME') - prometheus_port = '9091' +(prometheus_host, prometheus_port) = get_prometheus_info() # Prometheus polling interval and retries prometheus_poll_retries = '15 times' @@ -40,4 +37,3 @@ ns_name = 'sa_02-vnf_with_vim_metrics_and_autoscaling_test' # SSH keys to be used publickey = home + '/.ssh/id_rsa.pub' privatekey = home + '/.ssh/id_rsa' -