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

fix(manifest): render http health check path correctly #1686

Merged
merged 2 commits into from
Nov 17, 2020

Conversation

iamhopaul123
Copy link
Contributor

fixes #1685

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor

@huanjani huanjani left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -154,6 +154,7 @@ func TestNewLoadBalancedWebService_UnmarshalYaml(t *testing.T) {
Interval: durationp(78 * time.Second),
Timeout: durationp(9 * time.Second),
},
HealthCheckPath: nil,
Copy link
Contributor

Choose a reason for hiding this comment

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

can we update the name of this test case to reflect this change? for example:
"should use custom healthcheck configuration when provided and set default path to nil"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done!

@@ -149,7 +149,8 @@ func (b *BuildArgsOrString) UnmarshalYAML(unmarshal func(interface{}) error) err
}

if !b.BuildArgs.isEmpty() {
// Unmarshaled successfully to b.BuildArgs, return.
// Unmarshaled successfully to b.BuildArgs, unset b.BuildString, and return.
b.BuildString = nil
Copy link
Contributor

Choose a reason for hiding this comment

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

does this UnmarshalYAML have unit tests? can we do something similar to above to make sure that the buildstring gets reset to nil if a custom build field is provided

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is tested here https://github.com/aws/copilot-cli/pull/1686/files#diff-c4a6f6a13adfd37f7bd3fbc2d6d56fe5d1f2a6e752f6d795628adca336bf97e3R157. since newDefaultLoadBalancedWebService has default to be "/" and it is set back to nil

Copy link
Contributor

Choose a reason for hiding this comment

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

wut am I misunderstanding something? that one is for UnmarshalYAML for healthchecks whereas this change is for the image.build field

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oooh sorry i misread it.

@mergify mergify bot merged commit c868af7 into aws:mainline Nov 17, 2020
Sprint 🏃‍♀️ automation moved this from In review to Pending release Nov 17, 2020
thrau pushed a commit to localstack/copilot-cli-local that referenced this pull request Dec 9, 2022
<!-- Provide summary of changes -->
fixes aws#1685
<!-- Issue number, if available. E.g. "Fixes aws#31", "Addresses aws#42, 77" -->

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Sprint 🏃‍♀️
  
Pending release
Development

Successfully merging this pull request may close these issues.

Healthcheck path not present
3 participants