diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-01-23 12:17:58 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-01-24 16:48:36 -0800 |
commit | 021e2596ecdde398da4e286ee0d4876522253eb3 (patch) | |
tree | 53c96a68ad2ac15db7aa180e3b2f62bceae778c3 /spec/data | |
parent | 6dbc75814a2ac434e60a46c848d223c04201be76 (diff) | |
download | chef-021e2596ecdde398da4e286ee0d4876522253eb3.tar.gz |
favor metadata.json over metadata.rb
make sure that if we have a metadata.rb that is not valid to read that
we never parse that and use compiled metadata.json instead.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/data')
-rw-r--r-- | spec/data/prefer_metadata_json/metadata.json | 51 | ||||
-rw-r--r-- | spec/data/prefer_metadata_json/metadata.rb | 6 | ||||
-rw-r--r-- | spec/data/prefer_metadata_json/recipes/default.rb | 0 |
3 files changed, 57 insertions, 0 deletions
diff --git a/spec/data/prefer_metadata_json/metadata.json b/spec/data/prefer_metadata_json/metadata.json new file mode 100644 index 0000000000..eff8836a3b --- /dev/null +++ b/spec/data/prefer_metadata_json/metadata.json @@ -0,0 +1,51 @@ +{ + "name": "prefer_metadata_json", + "description": "", + "long_description": "", + "maintainer": null, + "maintainer_email": null, + "license": "All rights reserved", + "platforms": { + + }, + "dependencies": { + + }, + "recommendations": { + + }, + "suggestions": { + + }, + "conflicting": { + + }, + "providing": { + + }, + "replacing": { + + }, + "attributes": { + + }, + "groupings": { + + }, + "recipes": { + + }, + "version": "1.2.3", + "source_url": "", + "issues_url": "", + "privacy": false, + "chef_versions": [ + + ], + "ohai_versions": [ + + ], + "gems": [ + + ] +} diff --git a/spec/data/prefer_metadata_json/metadata.rb b/spec/data/prefer_metadata_json/metadata.rb new file mode 100644 index 0000000000..a46aa29a5c --- /dev/null +++ b/spec/data/prefer_metadata_json/metadata.rb @@ -0,0 +1,6 @@ +# these deliberately do not match metadata.json +name "test" +version "0.0.1" + +# this raises hard if anything even tries to parse it +raise "TEH SADNESS" diff --git a/spec/data/prefer_metadata_json/recipes/default.rb b/spec/data/prefer_metadata_json/recipes/default.rb new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/spec/data/prefer_metadata_json/recipes/default.rb |