-
Notifications
You must be signed in to change notification settings - Fork 303
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
Use backendconfig v1 for e2e tests #1045
Conversation
skmatti
commented
Mar 1, 2020
- Existing e2e tests are migrated to use backendconfig v1
- one e2e test for backendconfig v1beta1 API is added
Hi @skmatti. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
4133566
to
f100696
Compare
/assign @freehan |
cmd/e2e-test/affinity_beta_test.go
Outdated
func TestAffinityBeta(t *testing.T) { | ||
t.Parallel() | ||
|
||
for _, tc := range []struct { |
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.
I am wondering if it is worth merging test cases into one transition test together. Meaning that each test case becomes a state/expectation. The test would go thru each test case, trigger a transition and verify if the final state is expected.
Then there is no need to create separate ingress for each test case.
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.
Discussed offline that we should keep beta tests in a separate file for simplicity.
Consolidated affinity transitions to use a single ingress as suggested.
d29b4a3
to
f7a75ec
Compare
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.
The type conversion is a bit fragile. But assuming v1 always have more fields than beta. Plus this only used for test. It is good enough.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: freehan, skmatti 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 |