Add proper skip mechanism for Stacklight component
Change-Id: Id732f8b121e518e0ea7716c4072fb95b5223b3e5
Related-PROD: PROD-22000
diff --git a/cvp_checks/tests/test_ui_addresses.py b/cvp_checks/tests/test_ui_addresses.py
index 69c0f6a..ee02232 100644
--- a/cvp_checks/tests/test_ui_addresses.py
+++ b/cvp_checks/tests/test_ui_addresses.py
@@ -21,6 +21,7 @@
IP[0])
+@pytest.mark.usefixtures('check_kibana')
def test_ui_kibana(local_salt_client):
IP = utils.get_monitoring_ip('stacklight_log_address')
result = local_salt_client.cmd(
@@ -33,6 +34,7 @@
'Kibana login page is not reachable on {} from ctl nodes'.format(IP)
+@pytest.mark.usefixtures('check_prometheus')
def test_ui_prometheus(local_salt_client):
IP = utils.get_monitoring_ip('stacklight_monitor_address')
result = local_salt_client.cmd(
@@ -45,6 +47,7 @@
'Prometheus page is not reachable on {} from ctl nodes'.format(IP)
+@pytest.mark.usefixtures('check_prometheus')
def test_ui_alert_manager(local_salt_client):
IP = utils.get_monitoring_ip('stacklight_monitor_address')
result = local_salt_client.cmd(
@@ -56,6 +59,7 @@
'AlertManager page is not reachable on {} from ctl nodes'.format(IP)
+@pytest.mark.usefixtures('check_grafana')
def test_ui_grafana(local_salt_client):
IP = utils.get_monitoring_ip('cluster_public_host')
result = local_salt_client.cmd(