Skip to content

Add tests for concurrent AccessControl store usage#286

Merged
tomleb merged 4 commits into
rancher:mainfrom
aruiz14:concurrent-AccessFor
Oct 8, 2024
Merged

Add tests for concurrent AccessControl store usage#286
tomleb merged 4 commits into
rancher:mainfrom
aruiz14:concurrent-AccessFor

Conversation

@aruiz14
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

Comment thread pkg/accesscontrol/access_store_test.go
Copy link
Copy Markdown
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
Copy Markdown
Contributor

tomleb commented Oct 8, 2024

Merging as asked by @aruiz14

@tomleb tomleb merged commit 5c1a562 into rancher:main Oct 8, 2024
@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