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

Unit testing for RBAC client #143

Merged
merged 4 commits into from
Jun 20, 2023
Merged

Conversation

ebauman
Copy link
Member

@ebauman ebauman commented May 1, 2023

This PR adds initial unit tests for the rbacclient portion of Gargantua.

This is necessary as soon work will begin to add functionality to this area, and we'd like to not disturb anything :)

Mostly these tests verify that an rbac client can be created, that roles, bindings, and their cluster equivalents can be created and cached.
The tests also ensure at a basic level that RBAC decisions are made correctly (e.g. allowed vs disallowed).

This can probably be enhanced in many ways but it serves as a decent start.

ebauman added 4 commits April 13, 2023 14:48
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
Signed-off-by: Eamon Bauman <eamon@eamonbauman.com>
@ebauman ebauman merged commit 10c7e58 into hobbyfarm:master Jun 20, 2023
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.

1 participant