Closed MichaelStankiewicz closed 6 years ago
I got this working now. It turns out that my mistake was to include the chef_vault_item method inside my spec file. I believe I misunderstood the principal workings of this solution and at the same time misread the implementation details. This issue can be closed.
Sorry for the false alarm. :)
I can't seem to get this thing working properly, so I must be missing something. I've followed the instructions on the readme file with no luck. Below is my configuration. When I execute the rspec test
chef exec rspec
, I'm getting the undefined method error as reported in the subject of this issue.spec_helper.rb
JSON Files: cookbook/test/integration/data_bags/credentials/foo.json
Contents:
recipe.rb
default_spec.rb