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/heketi/test_heketi_volume_operations.py | |
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/heketi/test_heketi_volume_operations.py')
-rw-r--r-- | tests/functional/heketi/test_heketi_volume_operations.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/functional/heketi/test_heketi_volume_operations.py b/tests/functional/heketi/test_heketi_volume_operations.py index 5d702d63..64b4c78b 100644 --- a/tests/functional/heketi/test_heketi_volume_operations.py +++ b/tests/functional/heketi/test_heketi_volume_operations.py @@ -3,6 +3,7 @@ from glustolibs.gluster.snap_ops import ( snap_delete, snap_list, ) +import pytest from openshiftstoragelibs.baseclass import BaseClass from openshiftstoragelibs.command import cmd_run @@ -28,6 +29,7 @@ class TestHeketiVolumeOperations(BaseClass): super(TestHeketiVolumeOperations, cls).setUpClass() cls.volume_size = 1 + @pytest.mark.tier1 def test_heketi_with_default_options(self): """ Test to create volume with default options. @@ -47,6 +49,7 @@ class TestHeketiVolumeOperations(BaseClass): "Expected Size: %s, Actual Size: %s" % (self.volume_size, vol_info['size']))) + @pytest.mark.tier1 def test_heketi_with_expand_volume(self): """ Test volume expand and size if updated correctly in heketi-cli info @@ -80,6 +83,7 @@ class TestHeketiVolumeOperations(BaseClass): "Size: %s" % (str(expected_size), str(volume_info['size'])))) + @pytest.mark.tier1 def test_heketi_volume_mount(self): self.node = self.ocp_master_node[0] try: @@ -126,6 +130,7 @@ class TestHeketiVolumeOperations(BaseClass): cmd_run_on_gluster_pod_or_node(self.node, 'ls %s/%s' % ( brick['path'], _file), brick_host) + @pytest.mark.tier1 @podcmd.GlustoPod() def test_heketi_volume_snapshot_create(self): """Test heketi volume snapshot create operation""" |