diff options
author | John Keiser <jkeiser@opscode.com> | 2014-04-22 12:49:59 -0700 |
---|---|---|
committer | John Keiser <jkeiser@opscode.com> | 2014-04-22 12:49:59 -0700 |
commit | d2149397e00222a5457b5034c3c7d08699f718d6 (patch) | |
tree | db1a7eecab64d554ac69c9dcbc1ca1b775258027 /spec | |
parent | 3d6fa1ed64e4c6eff7053a33b4f8e5b728ce2959 (diff) | |
download | chef-d2149397e00222a5457b5034c3c7d08699f718d6.tar.gz |
Fix data bag test to create bag before creating item
Diffstat (limited to 'spec')
-rw-r--r-- | spec/integration/knife/chef_fs_data_store_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/integration/knife/chef_fs_data_store_spec.rb b/spec/integration/knife/chef_fs_data_store_spec.rb index 255a7b66b7..3bbe38fcc6 100644 --- a/spec/integration/knife/chef_fs_data_store_spec.rb +++ b/spec/integration/knife/chef_fs_data_store_spec.rb @@ -188,6 +188,7 @@ EOM when_the_repository 'is empty' do context 'POST /TYPE/NAME' do file 'empty.json', { 'name' => 'z' } + file 'empty_x.json', { 'name' => 'x' } file 'empty_id.json', { 'id' => 'z' } file 'rolestuff.json', '{"description":"hi there","name":"x"}' file 'cookbooks_to_upload/z/metadata.rb', "version '1.0.0'" @@ -211,6 +212,7 @@ EOM end it 'knife raw -z -i empty.json -m POST /data/x' do + knife("raw -z -i #{path_to('empty_x.json')} -m POST /data").should_succeed /uri/ knife("raw -z -i #{path_to('empty_id.json')} -m POST /data/x").should_succeed /"z"/ knife('list --local -Rfp /data_bags').should_succeed "/data_bags/x/\n/data_bags/x/z.json\n" end |