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

Happy path test case for selinux relabeling in rwop #9572

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

vkathole
Copy link
Contributor

No description provided.

@vkathole vkathole added Needs Testing Run tests and provide logs link do-not-merge/work-in-progress labels Mar 28, 2024
@vkathole vkathole self-assigned this Mar 28, 2024
@vkathole vkathole requested a review from a team as a code owner March 28, 2024 07:32
@pull-request-size pull-request-size bot added the size/L PR that changes 100-499 lines label Mar 28, 2024
Copy link

openshift-ci bot commented Mar 28, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: vkathole

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

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

Steps:
1. Create cephfs pvcs and attach pod with more than 100K files across multiple nested directories
2. Take md5sum for them some random files and get pod restart time
3. Apply the fix for SeLinux-relabeling
Copy link

Choose a reason for hiding this comment

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

is the step 3 applicable to this 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.

No

Copy link

Choose a reason for hiding this comment

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

Please check and add the right steps

Signed-off-by: Vishakha Kathole <[email protected]>
@vkathole vkathole requested a review from a team as a code owner July 1, 2024 07:14
Signed-off-by: Vishakha Kathole <[email protected]>
@vkathole vkathole added the team/e2e E2E team related issues/PRs label Jul 10, 2024
@magenta_squad
@tier1
class TestSelinuxrelabel(E2ETest):
def create_deploymentconfig_pod(self, pvc_name=None, **kwargs):

Choose a reason for hiding this comment

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

)

log = logging.getLogger(__name__)

Choose a reason for hiding this comment

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

please add polarion ID

time.sleep(waiting_time)
log.info(f"Backup PV {pod_obj} created")

@pytest.mark.parametrize("copies", [5])
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you have one test case? If yes, why do you use parameterize?

log.info(
f"Sleep 120 seconds so the logs in {self.pod_obj.name} will be updated"
)
time.sleep(120)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you wait for a specific log? if yes, you can use the generator TimeoutSampler

@magenta_squad
@tier1
class TestSelinuxrelabel(E2ETest):
def create_deploymentconfig_pod(self, pvc_name=None, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you use kwargs?

Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs.

@github-actions github-actions bot added the lifecycle/stale No recent activity label Oct 28, 2024
Copy link

This pull request has been automatically closed due to inactivity. Please re-open if these changes are still required.

@github-actions github-actions bot closed this Nov 27, 2024
@vkathole vkathole reopened this Dec 4, 2024
Copy link

github-actions bot commented Jan 3, 2025

This pull request has been automatically closed due to inactivity. Please re-open if these changes are still required.

@github-actions github-actions bot closed this Jan 3, 2025
@vkathole vkathole reopened this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale No recent activity Needs Testing Run tests and provide logs link size/L PR that changes 100-499 lines team/e2e E2E team related issues/PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants