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 HTTPProxy 007,018 and Ingress 001 tests #3665

Merged
merged 2 commits into from
May 13, 2021

Conversation

skriss
Copy link
Member

@skriss skriss commented May 10, 2021

Updates #3621.

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

@skriss skriss changed the title E2e certs test/e2e: add HTTPProxy 007,018 and Ingress 001 tests May 10, 2021
@codecov
Copy link

codecov bot commented May 10, 2021

Codecov Report

Merging #3665 (66b289f) into main (a277980) will not change coverage.
The diff coverage is n/a.

❗ Current head 66b289f differs from pull request most recent head 668c7d0. Consider uploading reports for the commit 668c7d0 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3665   +/-   ##
=======================================
  Coverage   75.98%   75.98%           
=======================================
  Files         103      103           
  Lines        7130     7130           
=======================================
  Hits         5418     5418           
  Misses       1592     1592           
  Partials      120      120           

@skriss skriss force-pushed the e2e-certs branch 2 times, most recently from 922f477 to c482277 Compare May 11, 2021 01:46
@skriss skriss marked this pull request as ready for review May 11, 2021 01:47
@skriss skriss requested a review from a team as a code owner May 11, 2021 01:47
@skriss skriss requested review from danehans and sunjayBhatia and removed request for a team May 11, 2021 01:47
validClientCert := fx.Certs.GetTLSCertificate(namespace, "echo-client")
invalidClientCert := fx.Certs.GetTLSCertificate(namespace, "echo-client-invalid")

cases := map[string]struct {
Copy link
Member Author

Choose a reason for hiding this comment

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

all of the cert/fixture setup should match 1:1 with the original _integration test but I switched to using a matrix of test cases here to cover all the positive and negative cases. This should be a superset of what was being validated in the _integration version.

Comment on lines +381 to +385
"echo-with-auth-skip-verify without a client cert should succeed": {
host: authSkipVerifyProxy.Spec.VirtualHost.Fqdn,
clientCert: nil,
wantErr: "",
},
Copy link
Member Author

Choose a reason for hiding this comment

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

@sunjayBhatia this is the case we were discussing.

Copy link
Member

Choose a reason for hiding this comment

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

👍🏽 will update the other PR to cover this case

@skriss
Copy link
Member Author

skriss commented May 13, 2021

@sunjayBhatia ping for a review when you get a chance, thanks!

test/e2e/fixtures.go Show resolved Hide resolved
Signed-off-by: Steve Kriss <krisss@vmware.com>
Updates projectcontour#3621.

Signed-off-by: Steve Kriss <krisss@vmware.com>
@skriss skriss merged commit 93d8f10 into projectcontour:main May 13, 2021
@skriss skriss deleted the e2e-certs branch May 13, 2021 15:58
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