Skip to content

Conversation

@s-selwin
Copy link
Contributor

As part of new testcase - test_operator_probe_resilience.py, we will be performing the below steps

  1. Verify if liveness and readiness probes are configured with default values
  2. Simulate failure by patching the respective CSV configs
  3. Verify pod restarts and status changes
  4. Restore probe values to default
  5. Verify cleanup
    JIRA: https://issues.redhat.com/browse/OCSQE-4029

Signed-off-by: selwin.s <[email protected]>

updated comments

Signed-off-by: selwin.s <[email protected]>
@s-selwin s-selwin requested a review from OdedViner December 22, 2025 15:30
@s-selwin s-selwin self-assigned this Dec 22, 2025
@s-selwin s-selwin requested a review from a team as a code owner December 22, 2025 15:30
@pull-request-size pull-request-size bot added the size/L PR that changes 100-499 lines label Dec 22, 2025
@openshift-ci
Copy link

openshift-ci bot commented Dec 22, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: s-selwin

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR validation on existing cluster

Cluster Name: sels-22dec-21
Cluster Configuration:
PR Test Suite: tier1
PR Test Path: tests/functional/monitoring/test_operator_probe_resilience.py
Additional Test Params:
OCP VERSION: 4.21
OCS VERSION: 4.21
tested against branch: master

Job PASSED.

Signed-off-by: selwin.s <[email protected]>
Signed-off-by: selwin.s <[email protected]>
Signed-off-by: selwin.s <[email protected]>
Signed-off-by: selwin.s <[email protected]>
Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR validation on existing cluster

Cluster Name: sels-22dec-21
Cluster Configuration:
PR Test Suite: tier1
PR Test Path: tests/functional/monitoring/test_operator_probe_resilience.py
Additional Test Params:
OCP VERSION: 4.21
OCS VERSION: 4.21
tested against branch: master

Job PASSED.

logger.info(f"Patching {self.csv_name} {probe_type} to: {path_value}")
self.csv_obj.patch(params=patch_list, format_type="json")

def test_probe_resilience(self, probe_type, healthy_path):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add docstrings for the test.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

)
if statuses and not statuses[0].get("ready"):
logger.info(
f"Confirmed: Pod {p.name} is Running but NotReady."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The state can be different than Running. The docstring should reflect it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

handled

]


@tier1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks more like tier2 or tier4c.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated tier for the testcase

@s-selwin s-selwin added the Verified Mark when PR was verified and log provided label Dec 23, 2025
Signed-off-by: selwin.s <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new feature size/L PR that changes 100-499 lines Verified Mark when PR was verified and log provided

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants