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

testing: add e2e tests for rolebindings #213

Merged
merged 1 commit into from
Oct 28, 2024
Merged

Conversation

dvirgilad
Copy link
Contributor

No description provided.

@dana-prow-ci dana-prow-ci bot requested a review from mzeevi October 28, 2024 09:31
@dvirgilad
Copy link
Contributor Author

fixes #92

Copy link
Contributor

@mzeevi mzeevi left a comment

Choose a reason for hiding this comment

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

Looks fine this is missing some test cases, go over the controllers and validators to see what you've missed

FieldShouldContain("rolebinding", nsChild, "test-admin-"+user+"-"+nsRoot, ".metadata.name", "test-admin-"+user+"-"+nsRoot)

By("Deleting the rolebinding from the root namespace")
MustRun("kubectl delete rolebinding test-admin-" + user + "-" + nsRoot + " -n " + nsRoot)
Copy link
Contributor

Choose a reason for hiding this comment

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

Wrap this in a function like in other test cases

Copy link
Contributor

@mzeevi mzeevi left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

Copy link
Contributor

dana-prow-ci bot commented Oct 28, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dvirgilad, mzeevi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@dana-prow-ci dana-prow-ci bot merged commit 9bb2fbd into main Oct 28, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants