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

Fixed EKS testing bug #153

Merged
merged 1 commit into from
Aug 11, 2022
Merged

Fixed EKS testing bug #153

merged 1 commit into from
Aug 11, 2022

Conversation

digocorbellini
Copy link
Contributor

@digocorbellini digocorbellini commented Aug 10, 2022

Issue #, if available:

Description of changes:
Since the release of go 1.19, the EKS tests: TestEKSDefaultService and TestEKSDefaultService_FailLatestReleaseUseFallbackStaticVersion were failing due to the path to the testing zip file amazon-eks-ami-20210125.zip not being set correctly.

In eksGithubReleaseHTTPServer, w.Header().Add() was being called after w.WriteHeader() which would mean that the header map was not being modified. The go documentation for Header() states:
"Changing the header map after a call to WriteHeader (or Write) has no effect unless the HTTP status code was of the 1xx class or the modified headers are trailers."

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@digocorbellini digocorbellini requested a review from a team as a code owner August 10, 2022 22:44
@digocorbellini digocorbellini self-assigned this Aug 10, 2022
Copy link
Contributor

@bwagner5 bwagner5 left a comment

Choose a reason for hiding this comment

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

wooo!

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.

None yet

2 participants