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

testing: slightly better comparison for x509.CertPool #10165

Merged
merged 1 commit into from
May 6, 2021

Conversation

dnephin
Copy link
Contributor

@dnephin dnephin commented May 3, 2021

Follow up #10004 based on a suggestion in golang/go#45891 (comment)

Use the exported function to compare the x509.CertPool instead of comparing unexported fields and excluding one. This should be functionally the same (both implementations cared the Subjects, but this one is more future proof.

@dnephin dnephin added theme/testing Testing, and related enhancements backport/1.10 labels May 3, 2021
@github-actions github-actions bot added theme/connect Anything related to Consul Connect, Service Mesh, Side Car Proxies and removed theme/testing Testing, and related enhancements labels May 3, 2021
@dnephin dnephin added the pr/no-changelog PR does not need a corresponding .changelog entry label May 3, 2021
@dnephin dnephin force-pushed the dnephin/improve-cert-pool-cmp branch from 34a6812 to 0624c75 Compare May 6, 2021 17:47
@vercel vercel bot temporarily deployed to Preview – consul May 6, 2021 17:47 Inactive
@vercel vercel bot temporarily deployed to Preview – consul-ui-staging May 6, 2021 17:47 Inactive
@jsosulska jsosulska added the theme/testing Testing, and related enhancements label May 6, 2021
@dnephin dnephin merged commit 23a2306 into master May 6, 2021
@dnephin dnephin deleted the dnephin/improve-cert-pool-cmp branch May 6, 2021 18:04
@hc-github-team-consul-core
Copy link
Contributor

🍒 If backport labels were added before merging, cherry-picking will start automatically.

To retroactively trigger a backport after merging, add backport labels and re-run https://circleci.com/gh/hashicorp/consul/364288.

@hc-github-team-consul-core
Copy link
Contributor

🍒✅ Cherry pick of commit 23a2306 onto release/1.10.x succeeded!

hc-github-team-consul-core pushed a commit that referenced this pull request May 6, 2021
testing: slightly better comparison for x509.CertPool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/no-changelog PR does not need a corresponding .changelog entry theme/connect Anything related to Consul Connect, Service Mesh, Side Car Proxies theme/testing Testing, and related enhancements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants