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

Split TLS client tests to handle Go 1.21+ error strings #188

Merged
merged 3 commits into from
Dec 20, 2023

Conversation

dswarbrick
Copy link
Contributor

Go 1.21 introduced more granular / specific error strings for certain "bad certificate" scenarios1. As such, we need to split these tests and conditionally compile based on build tags.

Fixes: #171, #187

Go 1.21 introduced more granular / specific error strings for certain
"bad certificate" scenarios[1]. As such, we need to split these tests
and conditionally compile based on build tags.

Fixes: prometheus#171, prometheus#187

[1]: golang/go@62a9948

Signed-off-by: Daniel Swarbrick <[email protected]>
Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

Nits, otherwise LGTM

web/tls_config_go118_test.go Outdated Show resolved Hide resolved
web/tls_config_go121_test.go Outdated Show resolved Hide resolved
dswarbrick and others added 2 commits December 20, 2023 01:07
Co-authored-by: Ben Kochie <[email protected]>
Signed-off-by: Daniel Swarbrick <[email protected]>
Co-authored-by: Ben Kochie <[email protected]>
Signed-off-by: Daniel Swarbrick <[email protected]>
@SuperQ SuperQ merged commit 342e23e into prometheus:master Dec 20, 2023
5 checks passed
@dswarbrick dswarbrick deleted the fix-tests-for-go1.21 branch September 11, 2024 15:17
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.

Tests fail with go 1.21
2 participants