X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Fresources%2Fsa_02-vnf_with_vim_metrics_and_autoscaling_data.py;h=15a447752a18f35459e5c1e22da46e916d14ac5c;hb=70a802a13a784d9e917582f626b74380c64945d4;hp=1824990a9938ed18668f3e7d8844f42815462d59;hpb=26954a2cc0efac7227cb7e165f7142017153a16d;p=osm%2Ftests.git 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 1824990..15a4477 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 @@ -21,8 +21,9 @@ from common_helpers import get_prometheus_info # Prometheus polling interval and retries prometheus_poll_retries = '15 times' prometheus_poll_timeout = '1 minute' -# Prometheus metric +# Prometheus metric and threshold metric_name = 'osm_cpu_utilization' +metric_threshold = 40 # Get ${HOME} from local machine home = str(Path.home()) # NS and VNF descriptor package folder @@ -32,7 +33,7 @@ nsd_pkg = 'hackfest_basic_metrics_ns' vnfd_name = 'hackfest_basic_metrics-vnf' nsd_name = 'hackfest_basic-ns-metrics' # NS instance name -ns_name = 'sa_02' +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'