When beginning to spec test a common issue people run into is Unknown resource type: <xyz>, where xyz is provided by a module vendored into the puppet-agent. The typical fix for this is adding said vendored module(s) into the Puppetfile and .fixtures.yml. See: https://github.com/voxpupuli/onceover/issues/291
This PR aims to alleviate some of that pain by determining the vendored modules and their versions for the version of the puppet-agent being tested with, and adding them to the Puppetfile that onceover deploys in its working directory assuming the vendored module already isn't being managed.
When beginning to spec test a common issue people run into is
Unknown resource type: <xyz>
, where xyz is provided by a module vendored into the puppet-agent. The typical fix for this is adding said vendored module(s) into the Puppetfile and .fixtures.yml. See: https://github.com/voxpupuli/onceover/issues/291This PR aims to alleviate some of that pain by determining the vendored modules and their versions for the version of the puppet-agent being tested with, and adding them to the Puppetfile that onceover deploys in its working directory assuming the vendored module already isn't being managed.