Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test changes #10973

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1509,6 +1509,7 @@ def factory(
custom_data=None,
node_name=None,
node_selector=None,
project=None,
replica_count=1,
raw_block_pv=False,
sa_obj=None,
Expand Down Expand Up @@ -1540,7 +1541,10 @@ def factory(
dc_pod_obj = helpers.create_resource(**custom_data)
else:
pvc = pvc or pvc_factory(
interface=interface, size=size, access_mode=access_mode
interface=interface,
size=size,
access_mode=access_mode,
project=project,
)
sa_obj = sa_obj or service_account_factory(
project=pvc.project, service_account=service_account
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
from ocs_ci.ocs import cluster, constants
from ocs_ci.utility import prometheus
from ocs_ci.utility.utils import ceph_health_check_base
from ocs_ci.framework import config
from ocs_ci.ocs.ocp import OCP

log = logging.getLogger(__name__)

Expand All @@ -27,12 +29,18 @@ def run_file_creator_io_with_cephfs(dc_pod_factory):
interface = constants.CEPHFILESYSTEM
log.info("Checking for Ceph Health OK")
ceph_health_check_base()
ocp_project = OCP(
kind=constants.NAMESPACE, namespace=config.ENV_DATA["cluster_namespace"]
)

for dc_pod in range(10):
for dc_pod in range(12):
log.info(f"Creating {interface} based PVC")
log.info("Creating fedora dc pod")
pod_obj = dc_pod_factory(
size="15", access_mode=access_mode, interface=interface
size="15",
access_mode=access_mode,
interface=interface,
project=ocp_project,
)
log.info("Copying file_creator_io.py to fedora pod ")
cmd = f"oc cp {file} {pod_obj.namespace}/{pod_obj.name}:/"
Expand Down Expand Up @@ -108,4 +116,5 @@ def test_alert_triggered(self, run_file_creator_io_with_cephfs, threading_lock):
"File creation IO started in the background."
" Script will look for MDSCPUUsageHigh alert"
)

assert active_mds_alert_values(threading_lock)
Loading