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

Inclusion of AWS type validation #239

Merged

Conversation

dhutchison
Copy link
Collaborator

@dhutchison dhutchison commented Jun 17, 2023

Inclusion of parameter validation for AWS parameter types.

The biggest problem with this has been finding regex patterns for these parameters - the docs are pretty vague and I've had to make a few assumptions. It would be good to validate these against more real examples - currently just using the examples from the AWS parameter type page as the happy path values as well as some examples taken from the AWS CLI docs.

Relates to #202

@codecov
Copy link

codecov bot commented Jun 17, 2023

Codecov Report

Merging #239 (7c8e149) into master (79b7caf) will decrease coverage by 0.57%.
The diff coverage is 68.75%.

@@            Coverage Diff             @@
##           master     #239      +/-   ##
==========================================
- Coverage   96.95%   96.39%   -0.57%     
==========================================
  Files          10       10              
  Lines         624      638      +14     
  Branches      128      132       +4     
==========================================
+ Hits          605      615      +10     
- Misses         12       14       +2     
- Partials        7        9       +2     
Flag Coverage Δ
unit 96.39% <68.75%> (-0.57%) ⬇️

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

Impacted Files Coverage Δ
src/cloud_radar/cf/unit/_template.py 95.67% <68.75%> (-1.75%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@dhutchison dhutchison mentioned this pull request Jun 18, 2023
@dhutchison dhutchison changed the title wip: started including AWS type validation Inclusion of AWS type validation Jun 18, 2023
@dhutchison dhutchison marked this pull request as ready for review June 18, 2023 23:07
@shadycuz shadycuz changed the base branch from master to develop June 19, 2023 12:18
@shadycuz shadycuz added enhancement New feature or request minor A new feature has been added. labels Jun 19, 2023
@shadycuz
Copy link
Member

@dhutchison Unfortunately the Cloudformation docs are not only vague, they are often flat-out wrong. See #179 (comment)

@shadycuz shadycuz merged commit 6bad97c into DontShaveTheYak:develop Jun 19, 2023
@dhutchison dhutchison deleted the feat/aws-type-parameter-validation branch June 19, 2023 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

2 participants