-
Notifications
You must be signed in to change notification settings - Fork 10
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
feature(webhook): add BackendRuntimeConfig resources validation #170
Conversation
Maybe we need to do some unit testing on the webhook, but this will be a lot of work |
/kind feature |
bb82d14
to
c5d97f8
Compare
Webhook tests usually covered by the integration test, and we do lack some kind of tests like updating validation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add an integration test under /test/integraton/webhook/playground_test.go
I will handle this tonight |
5253a51
to
bf20413
Compare
done. @kerthcet |
@@ -69,6 +69,12 @@ var _ = ginkgo.Describe("Playground default and validation", func() { | |||
}, | |||
failed: true, | |||
}), | |||
ginkgo.Entry("invalid BackendRuntime resources", &testValidatingCase{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add another example to cover the scenario: resources in limits but not in requests to make sure there's no panic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
bf20413
to
e45b4f2
Compare
/lgtm Thanks! @googs1025 |
/kind feature
What this PR does / why we need it
Which issue(s) this PR fixes
Fixes #135
Special notes for your reviewer
None
Does this PR introduce a user-facing change?