Skip to content

test: add unit tests for openshift_adm_prune_auth - #271

Open
mouhaahmet wants to merge 1 commit into
openshift:mainfrom
mouhaahmet:add-tests-prune-auth
Open

test: add unit tests for openshift_adm_prune_auth#271
mouhaahmet wants to merge 1 commit into
openshift:mainfrom
mouhaahmet:add-tests-prune-auth

Conversation

@mouhaahmet

Copy link
Copy Markdown

I added unit tests for the openshift_adm_prune_auth module_utils.

Changes:

  • Added coverage for successful user pruning.
  • Added coverage for idempotency (no changes needed).
  • Added coverage for API error handling (fixed a potential KeyError).
  • Included a changelog fragment.
  • Verified with ansible-test units and sanity on Python 3.12.

* prepare release 5.0.0 (openshift#269)

* prepare release 5.0.0

* update changelog to include inventory plugin removal

* update changelog to include inventory plugin removal

* update changlogs

* update version to 6.0.0-dev0

* update version current to 5.0.0
@openshift-ci

openshift-ci Bot commented Feb 23, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mouhaahmet
Once this PR has been reviewed and has the lgtm label, please assign alinabuzachis for approval. For more information see the Code Review Process.

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

@openshift-ci openshift-ci Bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Feb 23, 2026
@openshift-ci

openshift-ci Bot commented Feb 23, 2026

Copy link
Copy Markdown

Hi @mouhaahmet. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@oraNod oraNod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi @mouhaahmet Can you please rebase your changes against the main branch?

I see a commit titled "Push 5.0.0 changes to main branch (#270)" and the author is @mandar242 It seems like the commit history somehow got mangled.

The PR description also refers to a fix for a potential KeyError but I don't see any changes to plugins/module_utils/openshift_adm_prune_auth.py.

The actual test changes here look pretty good to me though so thanks for that.

@@ -0,0 +1,3 @@
---
test_fixes:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

test_fixes isn't a valid section. Please see

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants