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

Feat/ssm parameters unit test example #274

Merged
merged 7 commits into from
Dec 11, 2023

Conversation

dhutchison
Copy link
Collaborator

@dhutchison dhutchison commented Sep 26, 2023

Adds to the examples/unit directory a readme file and two sample test cases showing covering testing parameters are valid.

This includes the additional functionality to support SSM parameter types, which close #270 and complete #202. This also adds the ability to load parameters from configuration files (supporting the CodePipeline artifact and CloudFormation CLI configuration file options).

I've added in isort as a pre-commit hook and changed flake8 to use this for checking import order too to save needing to manually reorder imports. It is pretty much the same check that was there before. When I was recreating my venv it was failing to install so I've set the minimum taskcat version to the latest, hope that is ok.

@shadycuz I suggest that this feature triggers a new release and we explore the naming/hook piece for the release after.

@dhutchison dhutchison changed the base branch from master to develop September 26, 2023 23:35
@dhutchison dhutchison added documentation Improvements or additions to documentation minor A new feature has been added. labels Sep 26, 2023
@dhutchison dhutchison added the enhancement New feature or request label Oct 7, 2023
@codecov
Copy link

codecov bot commented Oct 7, 2023

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (2e62574) 96.42% compared to head (27b3a86) 95.99%.
Report is 24 commits behind head on develop.

Files Patch % Lines
src/cloud_radar/cf/unit/_template.py 84.61% 3 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #274      +/-   ##
===========================================
- Coverage    96.42%   95.99%   -0.43%     
===========================================
  Files           10       10              
  Lines          643      674      +31     
  Branches       134      143       +9     
===========================================
+ Hits           620      647      +27     
- Misses          14       16       +2     
- Partials         9       11       +2     
Flag Coverage Δ
unit 95.99% <86.04%> (-0.43%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dhutchison dhutchison marked this pull request as ready for review October 8, 2023 15:34
@dhutchison
Copy link
Collaborator Author

Hi @shadycuz, is there any chance you'd be able to merge a few of the open PRs?

Thanks.

@shadycuz shadycuz added chore enhancement New feature or request and removed enhancement New feature or request chore labels Dec 11, 2023
@shadycuz shadycuz merged commit 801b82a into develop Dec 11, 2023
11 checks passed
@shadycuz shadycuz deleted the feat/ssm-parameters-unit-test-example branch December 11, 2023 10:43
@dhutchison dhutchison mentioned this pull request Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request minor A new feature has been added.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing Parameter type AWS::SSM::Parameter::Value<String>
2 participants