Sha256: 1d616b15d1f42db488f194fffb9a1f9fb98fb9d008b1fca50b7d3d40b28370fc

Contents?: true

Size: 488 Bytes

Versions: 2

Compression:

Stored size: 488 Bytes

Contents

Given(/^I create a data bag item '(.+)\/(.+)' containing the JSON '(.+)'$/) do |databag, _, json|
  write_file 'item.json', json
  run_simple "knife data bag from file #{databag} item.json -z -c knife.rb", false
end

Given(/^I create an encrypted data bag item '(.+)\/(.+)' containing the JSON '(.+)' with the secret '(.+)'$/) do |databag, _, json, secret|
  write_file 'item.json', json
  run_simple "knife data bag from file #{databag} item.json -s #{secret} -z -c knife.rb", false
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chef-vault-2.6.1 features/step_definitions/chef_databagitem.rb
chef-vault-2.6.0 features/step_definitions/chef_databagitem.rb