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

test: fleet guard rail handlerMemberCluster remove UTs, reinforce E2Es #892

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

Arvindthiru
Copy link
Contributor

@Arvindthiru Arvindthiru commented Jul 26, 2024

Description of your changes

Fixes #

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Special notes for your reviewer

Keeping a few UTs to test whitelisted users functionality.

@Arvindthiru Arvindthiru changed the title test: remove UTs, reinforce E2Es test: fleet guard rail handlerMemberCluster remove UTs, reinforce E2Es Jul 26, 2024
@Arvindthiru Arvindthiru marked this pull request as ready for review July 26, 2024 21:48
wantResponse: admission.Allowed(fmt.Sprintf(validation.ResourceAllowedFormat, "test-user", utils.GenerateGroupString([]string{"system:masters"}), admissionv1.Delete, &utils.MCMetaGVK, "", types.NamespacedName{Name: "test-mc"})),
},
"deny delete fleet MC for non system user": {
"deny update of fleet MC spec by non whitelisted user": {
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder why this case is kept while others are pruned?

Copy link
Contributor Author

@Arvindthiru Arvindthiru Jul 30, 2024

Choose a reason for hiding this comment

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

These cases are back-doors we added for white-listed users which are not required to be tested by E2Es.

@Arvindthiru Arvindthiru merged commit 61a3beb into Azure:main Jul 30, 2024
14 checks passed
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.

None yet

2 participants