Skip to content

Commit

Permalink
changed fixure structure
Browse files Browse the repository at this point in the history
Signed-off-by: Avdhoot <[email protected]>
  • Loading branch information
avd-sagare committed Nov 18, 2024
1 parent 02cdb9c commit 8a1c795
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
15 changes: 15 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7063,6 +7063,21 @@ def factory(namespace=None):
"access_mode": constants.ACCESS_MODE_RWX,
"sc_name": sc_obj_def_compr.name,
},
{
"volume_interface": "PVC",
"access_mode": constants.ACCESS_MODE_RWX,
"sc_name": sc_obj_aggressive.name,
},
{
"volume_interface": "DVT",
"access_mode": constants.ACCESS_MODE_RWX,
"sc_name": sc_obj_def_compr.name,
},
{
"volume_interface": "DVT",
"access_mode": constants.ACCESS_MODE_RWX,
"sc_name": sc_obj_aggressive.name,
},
]

# Create ceph-csi-kms-token in the tenant namespace
Expand Down
20 changes: 13 additions & 7 deletions tests/functional/test_vms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
import pytest
from ocs_ci.framework.testlib import E2ETest

logger = logging.getLogger(__name__)
Expand All @@ -7,20 +8,25 @@
class TestCNVVM(E2ETest):
"""
Includes tests related to CNV workloads on MDR environment.
"""
def test_cnv_vms(self, multi_cnv_workload, project_factory):
"""
Tests to verify configuration for non-GS like environment
"""

"""
@pytest.fixture(autouse=True)
def setup(self, project_factory, multi_cnv_workload):

# Create a project
proj_obj = project_factory()
self.vm_objs = multi_cnv_workload(namespace=proj_obj.namespace)

vm_objs = multi_cnv_workload(namespace=proj_obj.namespace)
logger.info("All vms created successfully")

def test_cnv_vms(self, setup):
"""
Tests to verify configuration for non-GS like environment
"""

logger.info(f"All vm object: {vm_objs}")
logger.info("PASS")

# 1. if os os windows then check rxbounce enabled in sc yaml
# 2. verify replication is 3 for all vms
Expand Down

0 comments on commit 8a1c795

Please sign in to comment.