Skip to content

Fix test after Go 1.21 upgrade#30201

Merged
GavinFrazar merged 2 commits intomasterfrom
jakule/go121-test-fix
Aug 9, 2023
Merged

Fix test after Go 1.21 upgrade#30201
GavinFrazar merged 2 commits intomasterfrom
jakule/go121-test-fix

Conversation

@jakule
Copy link
Copy Markdown
Contributor

@jakule jakule commented Aug 8, 2023

Updated the error messages in the lib/teleterm/teleterm_test.go and lib/auth/tls_test.go test files from "tls: bad certificate" to more specific ones ("tls: certificate required", "unknown certificate authority") to accurately reflect the Go 1.21 update in the TLS server behavior.

Updated the error messages in the lib/teleterm/teleterm_test.go and lib/auth/tls_test.go test files from "tls: bad certificate" to more specific ones ("tls: certificate required", "unknown certificate authority") to accurately reflect the Go 1.21 update in the TLS server behavior.
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from codingllama August 8, 2023 21:55
Copy link
Copy Markdown
Contributor

@codingllama codingllama left a comment

Choose a reason for hiding this comment

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

Thanks!

Comment thread lib/auth/helpers.go Outdated
Comment thread lib/auth/tls_test.go Outdated
Comment thread lib/auth/tls_test.go Outdated
Comment thread lib/auth/tls_test.go Outdated
Comment thread lib/teleterm/teleterm_test.go Outdated
Comment thread lib/teleterm/teleterm_test.go Outdated
@codingllama
Copy link
Copy Markdown
Contributor

Note: fixes breakages introduced by #30180.

Co-authored-by: Alan Parra <alan.parra@goteleport.com>
@jakule jakule added this pull request to the merge queue Aug 8, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 8, 2023
@GavinFrazar GavinFrazar added this pull request to the merge queue Aug 9, 2023
Merged via the queue into master with commit c65875e Aug 9, 2023
@GavinFrazar GavinFrazar deleted the jakule/go121-test-fix branch August 9, 2023 00:25
codingllama added a commit that referenced this pull request Jan 30, 2024
* Fix test after Go 1.21 upgrade

Updated the error messages in the lib/teleterm/teleterm_test.go and lib/auth/tls_test.go test files from "tls: bad certificate" to more specific ones ("tls: certificate required", "unknown certificate authority") to accurately reflect the Go 1.21 update in the TLS server behavior.

* Apply suggestions from code review

Co-authored-by: Alan Parra <alan.parra@goteleport.com>

---------

Co-authored-by: Alan Parra <alan.parra@goteleport.com>
github-merge-queue Bot pushed a commit that referenced this pull request Feb 5, 2024
* chore: Bump Go to v1.21.0 (#30180)

* chore: Bump Go to 1.21.0

* Run `make dronegen`

* Bump .golangci.yml version

* Bump docs/config.json version

* Update e/ reference

* Fix test after Go 1.21 upgrade (#30201)

* Fix test after Go 1.21 upgrade

Updated the error messages in the lib/teleterm/teleterm_test.go and lib/auth/tls_test.go test files from "tls: bad certificate" to more specific ones ("tls: certificate required", "unknown certificate authority") to accurately reflect the Go 1.21 update in the TLS server behavior.

* Apply suggestions from code review

Co-authored-by: Alan Parra <alan.parra@goteleport.com>

---------

Co-authored-by: Alan Parra <alan.parra@goteleport.com>

* Update TLS configuration in auth helpers (#30525)

Removed the line that disables Session Tickets (added after Go 1.21 upgrade) to restore the default behavior of TLS servers. It looks like this change introduced a flakiness in a few tests.

* chore: Bump Go to 1.21.1 (#31505) (partial)

* Don't attempt to use Go 1.19 in the root module

* Use Go 1.21 on grpcbox

* Bump Go to 1.21.1

* Bump Go toolchain to go1.21.1

* Run `make dronegen`

* Bump Go toolchain to 1.21.6

* Update e/ reference

---------

Co-authored-by: Jakub Nyckowski <jakub.nyckowski@goteleport.com>
codingllama added a commit that referenced this pull request Feb 9, 2024
* Fix test after Go 1.21 upgrade

Updated the error messages in the lib/teleterm/teleterm_test.go and lib/auth/tls_test.go test files from "tls: bad certificate" to more specific ones ("tls: certificate required", "unknown certificate authority") to accurately reflect the Go 1.21 update in the TLS server behavior.

* Apply suggestions from code review

Co-authored-by: Alan Parra <alan.parra@goteleport.com>

---------

Co-authored-by: Alan Parra <alan.parra@goteleport.com>
github-merge-queue Bot pushed a commit that referenced this pull request Feb 9, 2024
* Fix test after Go 1.21 upgrade

Updated the error messages in the lib/teleterm/teleterm_test.go and lib/auth/tls_test.go test files from "tls: bad certificate" to more specific ones ("tls: certificate required", "unknown certificate authority") to accurately reflect the Go 1.21 update in the TLS server behavior.

* Apply suggestions from code review



---------

Co-authored-by: Jakub Nyckowski <jakub.nyckowski@goteleport.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants