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

fix: use payload when deleting keycloak_generic_role_mapper for realm roles #772

Conversation

rd-robert-avram
Copy link
Contributor

@rd-robert-avram rd-robert-avram commented Nov 15, 2022

Fixes: #771

Everything I've added here is based on what I've seen Keycloak do when performing this action in the UI.

The test itself indirectly catches the misbehaviour described in the issue by failing due to the fact that there's a non-empty intermediate plan occurring during the test case itself. That plan is the creation of the resources that had never actually been explicitly destroyed in the first place.

I hope this is sufficient.

@rd-robert-avram rd-robert-avram changed the title Use payload when deleting keycloak_generic_role_mapper for realm roles fix: use payload when deleting keycloak_generic_role_mapper for realm roles Nov 15, 2022
Copy link
Owner

@mrparkers mrparkers left a comment

Choose a reason for hiding this comment

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

Thanks for opening this PR! The bug report, reproduction steps, fix, and test case all look great!

@mrparkers mrparkers merged commit 2159797 into mrparkers:master Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deleting one keycloak_generic_role_mapper for a client deletes all of them
2 participants