-
Notifications
You must be signed in to change notification settings - Fork 682
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
add sha256 checksum to json #1796
Conversation
Nicely done Dom, works as expected:
Shouldn't |
@alexpop you are spot on about json-min 😁 I wanted to do this step first and let json-min come in another PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great addition @arlimus
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before we merge, any chance we can add a test with an existing dummy profile that checks to ensure we return the correct checksum for the contents? I don't see any tests for the sha256
method.
Otherwise, this is awesome.
@adamleff I had a test in the functional bits: https://github.com/chef/inspec/pull/1796/files#diff-ce23f8753648cc3a9d77312e123c452cR61 I will add the unit test as well, thank you for the suggestion @adamleff ! |
Fixes #1658 Signed-off-by: Dominik Richter <[email protected]>
Fixes #1658
Signed-off-by: Dominik Richter [email protected]