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 CloudFront): Correctly recognise ResponseHeadersPolicyId property #11398

Conversation

benheymink
Copy link

@benheymink benheymink commented Sep 17, 2022

Closes: #11397

@codecov
Copy link

codecov bot commented Sep 18, 2022

Codecov Report

Base: 85.85% // Head: 85.85% // No change to project coverage 👍

Coverage data is based on head (203e569) compared to base (11b7a05).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11398   +/-   ##
=======================================
  Coverage   85.85%   85.85%           
=======================================
  Files         314      314           
  Lines       13253    13253           
=======================================
  Hits        11378    11378           
  Misses       1875     1875           
Impacted Files Coverage Δ
.../plugins/aws/package/compile/events/cloud-front.js 97.70% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -128,6 +128,7 @@ class AwsCompileCloudFrontEvents {
FieldLevelEncryptionId: { type: 'string' },
OriginRequestPolicyId: { type: 'string' },
SmoothStreaming: { type: 'boolean' },
ResponseHeadersPolicyId: { type: 'string' },
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey @benheymink 👋 I think it would be awesome to add a test that confirms this property is recognized without issues

Copy link
Author

Choose a reason for hiding this comment

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

@pgrzesik I don't see any sort of tests currently evaluating these properties, but I confess I'm not super familiar with the code base. Could you point me to the existing tests for the other properties so that I can extend them?

Copy link
Author

Choose a reason for hiding this comment

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

@pgrzesik Yeah still no luck on those tests, and I don't really want to perform major heart surgery to your test structure....

@jasonrowsell
Copy link
Contributor

jasonrowsell commented Dec 25, 2022

Hey @pgrzesik @medikoo, I've extended this PR with a test to squash this issue
#11633
@ me if any questions 🎄

@medikoo
Copy link
Contributor

medikoo commented Dec 27, 2022

Closing as addressed with #11633

@medikoo medikoo closed this Dec 27, 2022
@benheymink benheymink deleted the fix_ResponseHeadersPolicyId_schema branch December 27, 2022 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Serverless incorrectly warns that ResponseHeadersPolicyId as a CloudFront behaviour property is invalid
4 participants