Skip to content

Commit

Permalink
changed parameterized test for ordered and abrupt shutdown as well
Browse files Browse the repository at this point in the history
Signed-off-by: Avdhoot <[email protected]>
  • Loading branch information
avd-sagare committed Jan 7, 2025
1 parent a0d9039 commit e9fbe85
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions tests/functional/workloads/cnv/test_cnv_shutdown_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,16 @@ class TestVmShutdownStart(E2ETest):
"""

@workloads
@pytest.mark.polarion_id("OCS-6304")
@pytest.mark.parametrize(
argnames=["force"],
argvalues=[
pytest.param("True", marks=pytest.mark.polarion_id("OCS-6304")),
pytest.param("False", marks=pytest.mark.polarion_id("OCS-6316")),
],
)
def test_vm_abrupt_shutdown_cluster(
self,
force,
setup_cnv,
project_factory,
multi_cnv_workload,
Expand Down Expand Up @@ -121,8 +128,8 @@ def test_vm_abrupt_shutdown_cluster(
master_nodes = get_nodes(node_type="master")

logger.info("Abruptly Shutting down worker & master nodes")
nodes.stop_nodes(nodes=worker_nodes)
nodes.stop_nodes(nodes=master_nodes)
nodes.stop_nodes(nodes=worker_nodes, force=force)
nodes.stop_nodes(nodes=master_nodes, force=force)

logger.info("waiting for 5 min before starting nodes")
time.sleep(300)
Expand Down

0 comments on commit e9fbe85

Please sign in to comment.