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

test/e2e: add Gateway API tests 001..005 #3630

Merged
merged 2 commits into from
May 5, 2021
Merged

Conversation

skriss
Copy link
Member

@skriss skriss commented Apr 30, 2021

Re-implements Gateway API tests 001..005 from
_integration/testsuite/gatewayapi as Go tests.

Updates #3621.

Signed-off-by: Steve Kriss krisss@vmware.com

@skriss skriss requested a review from a team as a code owner April 30, 2021 20:11
@skriss skriss requested review from sunjayBhatia and youngnick and removed request for a team April 30, 2021 20:11
Comment on lines +62 to +64
- path: test/e2e
linters:
- bodyclose
Copy link
Member Author

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
Copy link

codecov bot commented Apr 30, 2021

Codecov Report

Merging #3630 (be25f9d) into main (5103c82) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           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           
Impacted Files Coverage Δ
internal/status/cache.go 94.11% <0.00%> (ø)
internal/dag/gatewayapi_processor.go 91.26% <0.00%> (ø)
internal/status/httproutestatus.go
internal/status/conditions.go 36.06% <0.00%> (ø)

@skriss skriss requested a review from stevesloka April 30, 2021 20:18
// 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
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

Addressed in be25f9d

test/e2e/gateway/gateway_test.go Show resolved Hide resolved
Signed-off-by: Steve Kriss <krisss@vmware.com>
@projectcontour projectcontour deleted a comment from sunjayBhatia May 3, 2021
Copy link
Member

@stevesloka stevesloka left a 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.

@stevesloka
Copy link
Member

Will need to add a test for tlsRoute which is added in #3627 (but not yet merged). Just wanted to track the change. =)

@skriss
Copy link
Member Author

skriss commented May 5, 2021

@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.

@skriss skriss merged commit 499b402 into projectcontour:main May 5, 2021
@skriss skriss deleted the e2e-pr-2 branch May 5, 2021 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants