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

Add tests for concurrent AccessControl store usage #286

Merged
merged 4 commits into from
Oct 8, 2024

Conversation

aruiz14
Copy link
Contributor

@aruiz14 aruiz14 commented Sep 30, 2024

Issue: rancher/rancher#47318

This PR does not change the behavior of the code, just a small refactor to make it more testable and an intentionally failing test (later disabled) to prove the problem.

@aruiz14 aruiz14 requested a review from a team as a code owner September 30, 2024 15:53
Copy link
Contributor

@moio moio left a comment

Choose a reason for hiding this comment

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

LGTM

@tomleb tomleb self-requested a review October 3, 2024 11:35
Copy link
Contributor

@tomleb tomleb left a comment

Choose a reason for hiding this comment

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

The early nil check is a nice change, makes it easier to follow!

Mostly question about the purpose of this test / PR as I wasn't sure I understood completely.

pkg/accesscontrol/access_store_test.go Show resolved Hide resolved
Copy link
Contributor

@tomleb tomleb left a comment

Choose a reason for hiding this comment

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

LGTM.

@tomleb
Copy link
Contributor

tomleb commented Oct 8, 2024

Merging as asked by @aruiz14

@tomleb tomleb merged commit 5c1a562 into rancher:main Oct 8, 2024
1 check passed
@aruiz14 aruiz14 deleted the concurrent-AccessFor branch October 8, 2024 15:46
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.

3 participants