nwops / puppet-retrospec

The only tool you need to generate puppet code, tests, modules, facts, types, providers, data and everything else.
https://www.retrospec-puppet.com/
GNU Affero General Public License v3.0
137 stars 27 forks source link

generate fixtures.yml file based on module dependencies #19

Open logicminds opened 9 years ago

logicminds commented 9 years ago

It should be possible to read the metadata.json, fixtures.yml, modulefile or Puppetfile to generate a hash of dependencies that would be required to produce a set of module dependencies in order to automatically generate a proper fixtures.yml file for puppetlabs-spec-helper to consume. Otherwise we still require manually populating the fixtures/modules directory.

logicminds commented 9 years ago

I started a side project to help fix this problem. https://github.com/logicminds/genfix

However, it relies on librarian-puppet and I wasn't sure how that would get mixed in with development modules. The genfix script isn't finished as I was having an issue with merging things into a single file and covering all sources of dependencies without wiping out the existing fixtures file.