voxpupuli / onceover

Your gateway drug to automated infrastructure testing with Puppet
141 stars 45 forks source link

Vendored modules #335

Open garrettrowell opened 2 months ago

garrettrowell commented 2 months ago

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.