-
Notifications
You must be signed in to change notification settings - Fork 301
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 a negative test case for referencing not exist BackendConfig #372
Conversation
/lgtm |
cmd/e2e-test/backend_config_test.go
Outdated
} | ||
|
||
port80 := intstr.FromInt(80) | ||
testIng := fuzz.NewIngressBuilder("", "ingress-1", "").DefaultBackend("service-1", port80).AddPath("test.com", "/", "service-1", port80).Build() |
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.
Can we stagger the builder calls rather than having it all on one line.
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.
Sure, done.
67667f2
to
7bc3bb5
Compare
cmd/e2e-test/backend_config_test.go
Outdated
|
||
port80 := intstr.FromInt(80) | ||
testIng := fuzz.NewIngressBuilder("", "ingress-1", ""). | ||
DefaultBackend("service-1", port80). |
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.
Is this DefaultBackend necessary for the test? If not, can we just remove it.
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.
Yeah it's not necessary. Removed.
7bc3bb5
to
6b86a2f
Compare
/lgtm |
Thanks! Merging this. |
This test creates a set of Ingress & Service that references a not exist BackendConfig and waits for a warning event being emitted.
/assign @rramkumar1 @bowei