diff options
author | vamahaja <vamahaja@redhat.com> | 2020-03-14 14:14:30 +0530 |
---|---|---|
committer | vamahaja <vamahaja@redhat.com> | 2020-03-17 12:21:59 +0530 |
commit | 80bd4bbeaf8feb2298cc3af16e9a1279678234d4 (patch) | |
tree | 3193df60bb80885da1ef8c74e586b1f0384d64a3 /tests/functional/metrics | |
parent | 2535cae8fbfdfa3eeb9b1c4462f01b8802be96f2 (diff) |
[TestFix] Add pytest marker for tier1 test cases
Change-Id: I1d497a9b61762e68558026ddc49e5269b0354ce1
Signed-off-by: vamahaja <vamahaja@redhat.com>
Diffstat (limited to 'tests/functional/metrics')
-rw-r--r-- | tests/functional/metrics/test_metrics_validation.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/functional/metrics/test_metrics_validation.py b/tests/functional/metrics/test_metrics_validation.py index 7efb7227..0eda579f 100644 --- a/tests/functional/metrics/test_metrics_validation.py +++ b/tests/functional/metrics/test_metrics_validation.py @@ -2,6 +2,7 @@ from pkg_resources import parse_version import ddt from glusto.core import Glusto as g +import pytest from openshiftstoragelibs.baseclass import GlusterBlockBaseClass from openshiftstoragelibs import command @@ -75,6 +76,7 @@ class TestMetricsAndGlusterRegistryValidation(GlusterBlockBaseClass): switch_oc_project(self.master, self.metrics_project_name) self.addCleanup(switch_oc_project, self.master, current_project) + @pytest.mark.tier1 def test_validate_metrics_pods_and_pvc(self): """Validate metrics pods and PVC""" # Get cassandra pod name and PVC name @@ -112,6 +114,7 @@ class TestMetricsAndGlusterRegistryValidation(GlusterBlockBaseClass): is_registry_gluster=True) return hawkular_cassandra, pvc_name, iqn, hacount, node + @pytest.mark.tier1 def test_verify_metrics_data_during_gluster_pod_respin(self): # Add check for CRS version switch_oc_project(self.master, self.registry_project_name) @@ -177,6 +180,7 @@ class TestMetricsAndGlusterRegistryValidation(GlusterBlockBaseClass): if raise_on_error: raise err + @pytest.mark.tier1 @ddt.data('delete', 'drain') def test_metrics_during_cassandra_pod_respin(self, motive='delete'): """Validate cassandra pod respin""" @@ -225,6 +229,7 @@ class TestMetricsAndGlusterRegistryValidation(GlusterBlockBaseClass): rtype='rc', heketi_server_url=self.registry_heketi_server_url, is_registry_gluster=True) + @pytest.mark.tier1 def test_metrics_cassandra_pod_pvc_all_freespace_utilization(self): """Validate metrics by utilizing all the free space of block PVC bound to cassandra pod""" @@ -252,6 +257,7 @@ class TestMetricsAndGlusterRegistryValidation(GlusterBlockBaseClass): self.addCleanup( oc_rsh, self.master, hawkular_cassandra, cmd_remove_file) + @pytest.mark.tier1 def test_metrics_cassandra_pod_with_bhv_brick_process_down(self): """Validate metrics during restart of brick process of bhv""" |