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

(CAT-2164) Correct yaml_syntax_validator to error on empty file #1425

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

david22swan
Copy link
Member

@david22swan david22swan commented Dec 11, 2024

Summary

Previously empty yaml files would pass and be accepted as valid when PDK validate was run. However this was contrasted by Puppet and the puppetserver requiring files to always contain a valid yaml and so we are updating the pdk to be in line with this.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified.

Copy link

codecov bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.49%. Comparing base (1fb9df2) to head (37e28ff).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1425   +/-   ##
=======================================
  Coverage   88.48%   88.49%           
=======================================
  Files         127      127           
  Lines        5317     5320    +3     
=======================================
+ Hits         4705     4708    +3     
  Misses        612      612           

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

@david22swan david22swan force-pushed the CAT-2164 branch 2 times, most recently from 45dc6b2 to e670b27 Compare December 11, 2024 14:09
Previously empty yaml files would pass and be accepted as valid when PDK validate was run.
However this was contrasted by Puppet and the puppetserver requiring files to always contain a valid yaml and so we are updating the pdk to be in line with this.
@danadoherty639 danadoherty639 merged commit 7a1d7ef into main Dec 18, 2024
12 checks passed
@danadoherty639 danadoherty639 deleted the CAT-2164 branch December 18, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants