Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
node.set
causes deprecation warnings in tests (found while writing a cookbook to setup a bastion SSH server).I changed the specs to
node.normal
because that’s what the ChefSpec readme now recommends (a change made by the maintainer after getting reports of the same deprecation warnings) and becausenode.default
broke tests.The recipes I changed to
node.default
, which is a little different underneath because default attributes don’t persist and ones set bynode.set
/node.normal
do. I did this for several reasons:node.default
as often as possible.node.set
/node.normal
.All ChefSpecs and kitchens pass.
There is already coverage of the legacy attr support for both recipes tests what gets rendered into the configs. I could add tests that the new attrs are updated when the old attrs are used, but that doesn't feel very valuable. I can add them if you think that’s better, though, no problem.
Let me know if you see any problems or you’d like anything done differently and I’ll rebase it in. Thanks!
Platform used to run ChefSpec: