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

chore: add regression test for #7538 #7563

Merged
merged 1 commit into from
Jun 24, 2021
Merged

chore: add regression test for #7538 #7563

merged 1 commit into from
Jun 24, 2021

Conversation

cjihrig
Copy link
Contributor

@cjihrig cjihrig commented Jun 21, 2021

Description of changes

This commit adds a regression test for the case where a REST API is pushed without an ApiId output.

Issue #, if available

This is a regression test for #7538

Description of how you validated changes

The test in this PR.

Checklist

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

@cjihrig cjihrig requested a review from a team as a code owner June 21, 2021 15:53
cfnTemplate.Outputs.ApiId = undefined;

writeFileSync(cfnTemplateFile, JSON.stringify(cfnTemplate));
await amplifyPushUpdate(projRoot);
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 only happen for the output? or do we generate the full Cfn again?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The full CFN is not regenerated, just the ApiId output is added.

This commit adds a regression test for the case where a REST
API is pushed without an ApiId output.
@edwardfoyle edwardfoyle merged commit f3952ff into aws-amplify:master Jun 24, 2021
@cjihrig cjihrig deleted the reg-test branch June 25, 2021 15:17
cjihrig added a commit to ctjlewis/amplify-cli that referenced this pull request Jul 12, 2021
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.

4 participants