From 2535cae8fbfdfa3eeb9b1c4462f01b8802be96f2 Mon Sep 17 00:00:00 2001 From: vamahaja Date: Thu, 12 Mar 2020 10:08:03 +0530 Subject: [TestFix] Add pytest marker for tier0 test cases Change-Id: I29093a09c3f0cc09eaa9c6d94bad882c0bafd91c Signed-off-by: vamahaja --- tests/functional/heketi/test_volume_multi_req.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/functional/heketi/test_volume_multi_req.py') diff --git a/tests/functional/heketi/test_volume_multi_req.py b/tests/functional/heketi/test_volume_multi_req.py index 9fcaeb49..44c53035 100644 --- a/tests/functional/heketi/test_volume_multi_req.py +++ b/tests/functional/heketi/test_volume_multi_req.py @@ -7,6 +7,7 @@ import threading import time import ddt +import pytest import yaml from glusto.core import Glusto as g @@ -222,6 +223,7 @@ class TestVolumeMultiReq(BaseClass): ocp_node = list(g.config['ocp_servers']['master'].keys())[0] return len(_heketi_vols(ocp_node, self.heketi_server_url)) + @pytest.mark.tier0 def test_simple_serial_vol_create(self): """Test that serially creating PVCs causes heketi to add volumes. """ @@ -282,6 +284,7 @@ class TestVolumeMultiReq(BaseClass): self.assertIn(c2.heketiVolumeName, now_vols) self.assertNotIn(c2.heketiVolumeName, orig_vols) + @pytest.mark.tier0 def test_multiple_vol_create(self): """Test creating two volumes via PVCs with no waiting between the PVC requests. @@ -383,6 +386,7 @@ class TestVolumeMultiReq(BaseClass): c.update_pv_info(ocp_node) self.assertIn(c.heketiVolumeName, now_vols) + @pytest.mark.tier0 def test_create_delete_volumes_concurrently(self): """Test creating volume when "other processes" are creating and deleting other volumes in the background. -- cgit