puppetlabs_spec_helper/rake_tasks - validate task - skip validation of specific file

52 Views Asked by At

I have a Puppet module which I'm setting up overall tests. I'm using puppetlabs_spec_helper/rake_tasks to get a sane task list, and defined a default task in my Rakefile:

require 'puppetlabs_spec_helper/rake_tasks'

task :default => [:validate, :lint, :spec]

But my metadata.json file will always fail, because the Puppet modules developed internally in my company don't follow standard naming - not for the modules themselves, nor for their tags.

How do I instruct Rake to skip just metadata.json file validation?

Meanwhile, I'm using as a workaround :syntax task in place of :validate.

0

There are 0 best solutions below