diff options
Diffstat (limited to 'tests/functional/heketi/test_block_volumes_heketi.py')
-rw-r--r-- | tests/functional/heketi/test_block_volumes_heketi.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/functional/heketi/test_block_volumes_heketi.py b/tests/functional/heketi/test_block_volumes_heketi.py index 1e78180d..7ab6cab0 100644 --- a/tests/functional/heketi/test_block_volumes_heketi.py +++ b/tests/functional/heketi/test_block_volumes_heketi.py @@ -6,6 +6,7 @@ from glustolibs.gluster.volume_ops import ( volume_start, volume_stop, ) +import pytest from openshiftstoragelibs.baseclass import BaseClass from openshiftstoragelibs import exceptions @@ -44,6 +45,7 @@ class TestBlockVolumeOps(BaseClass): after manually creating a Block Hosting volume. """ + @pytest.mark.tier0 def test_create_block_vol_after_host_vol_creation(self): """Validate block-device after manual block hosting volume creation using heketi @@ -61,6 +63,7 @@ class TestBlockVolumeOps(BaseClass): heketi_blockvolume_delete, self.heketi_client_node, self.heketi_server_url, block_vol["id"]) + @pytest.mark.tier0 def test_block_host_volume_delete_without_block_volumes(self): """Validate deletion of empty block hosting volume""" block_host_create_info = heketi_volume_create( @@ -76,6 +79,7 @@ class TestBlockVolumeOps(BaseClass): self.heketi_client_node, self.heketi_server_url, block_hosting_vol_id, json=True) + @pytest.mark.tier0 def test_block_volume_delete(self): """Validate deletion of gluster-block volume and capacity of used pool """ @@ -95,6 +99,7 @@ class TestBlockVolumeOps(BaseClass): "The block volume has not been successfully deleted," " ID is %s" % block_vol["id"]) + @pytest.mark.tier0 def test_block_volume_list(self): """Validate heketi blockvolume list command works as expected""" created_vol_ids = [] @@ -116,6 +121,7 @@ class TestBlockVolumeOps(BaseClass): "Block vol with '%s' ID is absent in the " "list of block volumes." % vol_id) + @pytest.mark.tier0 def test_block_host_volume_delete_block_volume_delete(self): """Validate block volume and BHV removal using heketi""" free_space, nodenum = get_total_free_space( @@ -157,6 +163,7 @@ class TestBlockVolumeOps(BaseClass): self.assertIn( block_vol_info["id"], bhv_info["blockinfo"]["blockvolume"]) + @pytest.mark.tier0 @podcmd.GlustoPod() def test_validate_gluster_voloptions_blockhostvolume(self): """Validate gluster volume options which are set for @@ -239,6 +246,7 @@ class TestBlockVolumeOps(BaseClass): ("Password is %spresent in %s", (assertion_msg_part, block_vol["id"]))) + @pytest.mark.tier0 def test_block_volume_create_with_name(self): """Validate creation of block volume with name""" vol_name = "autotests-heketi-volume-%s" % utils.get_random_str() |