-
Notifications
You must be signed in to change notification settings - Fork 679
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/e2e: add Gateway API tests 001..005 #3630
Conversation
- path: test/e2e | ||
linters: | ||
- bodyclose |
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 kept getting a bunch of false positives from this linter so I just turned it off for test/e2e
but can revisit and explicitly ignore each occurrence if folks aren't comfortably with this. I don't think it's a big deal since it's just test code so any negative impact of not closing HTTP response bodies is limited to CI.
Re-implements Gateway API tests 001..005 from _integration/testsuite/gatewayapi as Go tests. Updates projectcontour#3621. Signed-off-by: Steve Kriss <krisss@vmware.com>
Codecov Report
@@ Coverage Diff @@
## main #3630 +/- ##
=======================================
Coverage 76.78% 76.78%
=======================================
Files 100 100
Lines 7164 7165 +1
=======================================
+ Hits 5501 5502 +1
Misses 1542 1542
Partials 121 121
|
// The HTTPRoute won't be fully valid, so just wait for it to have any Gateway | ||
// status. | ||
fx.CreateHTTPRouteAndWaitFor(route, func(route *gatewayv1alpha1.HTTPRoute) bool { | ||
return len(route.Status.Gateways) > 0 |
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.
Now that we're doing this in go, do we want to check the actual status here to make sure the condition type etc. is correct?
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 that makes sense, let me figure out what the status should be.
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.
Addressed in be25f9d
Signed-off-by: Steve Kriss <krisss@vmware.com>
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.
/lgtm
Happy to get feature parity with the current, then can look at improvements.
Will need to add a test for tlsRoute which is added in #3627 (but not yet merged). Just wanted to track the change. =) |
@sunjayBhatia if you're OK with this as-is let's get it merged so we can continue moving fwd with migration. Follow-ups noted. |
Re-implements Gateway API tests 001..005 from
_integration/testsuite/gatewayapi as Go tests.
Updates #3621.
Signed-off-by: Steve Kriss krisss@vmware.com