X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Fresources%2Fsa_08-vnf_with_vnf_indicators_snmp_data.py;h=a7a3456647a43e5ae8d80d960f30bff90fe97c0a;hb=a351dd2cde5da66a2a04b084e41d2e3210ca5945;hp=449b61ea708d4d6cb222356bff3a2dc81fac0d00;hpb=f8bb63e5c31ba6f4cb1cddee89ce214521ca5f45;p=osm%2Ftests.git diff --git a/robot-systest/resources/sa_08-vnf_with_vnf_indicators_snmp_data.py b/robot-systest/resources/sa_08-vnf_with_vnf_indicators_snmp_data.py index 449b61e..a7a3456 100644 --- a/robot-systest/resources/sa_08-vnf_with_vnf_indicators_snmp_data.py +++ b/robot-systest/resources/sa_08-vnf_with_vnf_indicators_snmp_data.py @@ -10,29 +10,13 @@ # See the License for the specific language governing permissions and # 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 metrics to retrieve -metric_1_name = 'ifInOctets' -metric_1_filter = 'ifIndex=1' -metric_2_name = 'ifMtu' -metric_2_filter = 'ifIndex=2' -# Get ${HOME} from local machine -home = str(Path.home()) -# NS and VNF descriptor package folder -vnfd_pkg = 'snmp_ee_vnf' -nsd_pkg = 'snmp_ee_ns' -# NS and VNF descriptor id -vnfd_name = 'snmp_ee-vnf' -nsd_name = 'snmp_ee-ns' -# NS instance name -ns_name = 'sa_08-vnf_with_vnf_indicators_snmp_test' +# Prometheus host and port +( + prometheus_host, + prometheus_port, + prometheus_user, + prometheus_password, +) = get_prometheus_info()