summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2013-06-12 09:20:36 -0700
committerJohn Keiser <jkeiser@opscode.com>2013-09-12 23:04:20 -0700
commit6c7c41cb7d28da4a5f8d953fefbb4286b643b5b1 (patch)
treefb91934e21b0abf5d7c6b64a8cc977ba7b8c4cc2 /spec
parent7b19a073c945a4529962b156a8ad5d685e0e79af (diff)
downloadchef-6c7c41cb7d28da4a5f8d953fefbb4286b643b5b1.tar.gz
Fix data bag upload to not include extra chef_type/data_bag keys
Diffstat (limited to 'spec')
-rw-r--r--spec/integration/knife/upload_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/integration/knife/upload_spec.rb b/spec/integration/knife/upload_spec.rb
index e0715f761a..50b20734a8 100644
--- a/spec/integration/knife/upload_spec.rb
+++ b/spec/integration/knife/upload_spec.rb
@@ -237,7 +237,7 @@ Created /data_bags/x/y.json
EOM
knife('diff --name-status /data_bags').should_succeed <<EOM
EOM
- JSON.parse(knife('raw /data/x/y').stdout, :create_additions => false).keys.sort.should == [ 'foo', 'id' ]
+ JSON.parse(knife('raw /data/x/y').stdout, :create_additions => false).keys.should == [ 'id', 'foo' ]
end
end
@@ -250,7 +250,7 @@ Created /data_bags/x/y.json
EOM
knife('diff --name-status /data_bags').should_succeed ''
result = JSON.parse(knife('raw /data/x/y').stdout, :create_additions => false)
- result.keys.sort.should == [ 'chef_type', 'data_bag', 'id' ]
+ result.keys.should == [ 'id', 'chef_type', 'data_bag' ]
result['chef_type'].should == 'aaa'
result['data_bag'].should == 'bbb'
end