summaryrefslogtreecommitdiffstats
path: root/tests/functional/heketi/test_heketi_node_operations.py
diff options
context:
space:
mode:
authorvamahaja <vamahaja@redhat.com>2020-03-12 10:08:03 +0530
committervamahaja <vamahaja@redhat.com>2020-03-13 13:26:06 +0530
commit2535cae8fbfdfa3eeb9b1c4462f01b8802be96f2 (patch)
tree14fdd5e0b2b5a1cf1382cedc16618989d2721900 /tests/functional/heketi/test_heketi_node_operations.py
parentb9db2f4be8f1dcabb31f3ea93f9b3b12bff66603 (diff)
[TestFix] Add pytest marker for tier0 test cases
Change-Id: I29093a09c3f0cc09eaa9c6d94bad882c0bafd91c Signed-off-by: vamahaja <vamahaja@redhat.com>
Diffstat (limited to 'tests/functional/heketi/test_heketi_node_operations.py')
-rw-r--r--tests/functional/heketi/test_heketi_node_operations.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/functional/heketi/test_heketi_node_operations.py b/tests/functional/heketi/test_heketi_node_operations.py
index c4908b3c..6b23b325 100644
--- a/tests/functional/heketi/test_heketi_node_operations.py
+++ b/tests/functional/heketi/test_heketi_node_operations.py
@@ -1,6 +1,7 @@
import ddt
from glusto.core import Glusto as g
from glustolibs.gluster import peer_ops
+import pytest
import six
from openshiftstoragelibs import baseclass
@@ -24,6 +25,7 @@ class TestHeketiNodeOperations(baseclass.BaseClass):
self.h_node = self.heketi_client_node
self.h_url = self.heketi_server_url
+ @pytest.mark.tier0
@podcmd.GlustoPod()
def test_heketi_node_list(self):
"""Test node list operation
@@ -70,6 +72,7 @@ class TestHeketiNodeOperations(baseclass.BaseClass):
"Failed to match node ID. Exp: %s, Act: %s" % (
node_id, node_info["id"]))
+ @pytest.mark.tier0
def test_heketi_node_states_enable_disable(self):
"""Test node enable and disable functionality
"""
@@ -162,6 +165,7 @@ class TestHeketiNodeOperations(baseclass.BaseClass):
return storage_hostname, storage_ip
+ @pytest.mark.tier0
@podcmd.GlustoPod()
def test_heketi_node_add_with_valid_cluster(self):
"""Test heketi node add operation with valid cluster id"""
@@ -415,6 +419,7 @@ class TestHeketiNodeOperations(baseclass.BaseClass):
self.h_node, self.h_url, device['id'])
heketi_ops.heketi_node_delete(self.h_node, self.h_url, node_id)
+ @pytest.mark.tier0
@ddt.data('remove', 'delete')
def test_heketi_node_remove_or_delete(self, operation='delete'):
"""Test node remove and delete functionality of heketi and validate