diff options
author | John Keiser <jkeiser@opscode.com> | 2013-10-08 20:40:08 -0700 |
---|---|---|
committer | John Keiser <jkeiser@opscode.com> | 2013-10-09 09:21:02 -0700 |
commit | 836705dee684032baa85920c808a3eca5f5a8a87 (patch) | |
tree | eb6373c1ee4e352ba58c8beef0ddfd194b749cf7 /spec/integration/knife/upload_spec.rb | |
parent | a44352871130b3adea32c93bdaca696b518a335a (diff) | |
download | chef-836705dee684032baa85920c808a3eca5f5a8a87.tar.gz |
CHEF-4515: upload sometimes inflates JSON. Fix by using true raw version of Chef::REST
Diffstat (limited to 'spec/integration/knife/upload_spec.rb')
-rw-r--r-- | spec/integration/knife/upload_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/integration/knife/upload_spec.rb b/spec/integration/knife/upload_spec.rb index 770efb2d46..46b804205f 100644 --- a/spec/integration/knife/upload_spec.rb +++ b/spec/integration/knife/upload_spec.rb @@ -1064,4 +1064,13 @@ EOM end end # with versioned cookbooks + when_the_chef_server 'has a user' do + user 'x', {} + when_the_repository 'has the same user with json_class in it' do + file 'users/x.json', { 'admin' => true, 'json_class' => 'Chef::WebUIUser' } + it 'knife upload /users/x.json succeeds' do + knife('upload /users/x.json').should_succeed "Updated /users/x.json\n" + end + end + end end |