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(aws-sdk): exception handling & test coverage #137

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

Zordrak
Copy link
Contributor

@Zordrak Zordrak commented May 31, 2024

Fixes: #136 Unintended exception mishandling after v3 sdk change

Description:

  • Corrects the handling of an exception from DescribeStacksCommand to discriminate between a StackNotFound exception, and some other unintended service exception.
  • Adds basic coverage for untested http proxy feature
  • Upgrades test coverage to 100% statement/function/branch/line
  • Requires 100% coverage in jest
  • Ignore coverage for defaulting of GITHUB_WORKSPACE due to implications of test file locations during testing
  • Retypes CreateStackCommandInput to affirm presence of StackName which is required, and previously asserted by core.getInput()
  • Adds dependency on @smithy/node-http-handler which is used in src/main.ts but not declared as a dependency, depending on hoisting when installed by @aws-sdk/client-cloudformation (consider using pnpm instead of npm to avoid this in future?)

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

* Fixes: aws-actions#136 Unintended exception mishandling after v3 sdk change
* Upgrades test coverage to 100% statement/function/branch/line
* Requires 100% coverage in jest
* Ignore coverage for defaulting of GITHUB_WORKSPACE due to implications
  of test file locations during testing
* Retypes CreateStackCommandInput to affirm presence of StackName
  which is required, and previously asserted by core.getInput()
* Adds dependency on @smithy/node-http-handler which is used in
  src/main.ts but not declared as a dependency, depending on hoisting
  when installed by @aws-sdk/client-cloudformation (consider using pnpm
  instead of npm to avoid this in future?)
@kddejong kddejong merged commit a6fc8e2 into aws-actions:master Jun 12, 2024
1 check passed
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.

Unintended exception mishandling after v3 sdk change
2 participants