Emerson Prado
Emerson Prado

Reputation: 63

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

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.

Upvotes: 1

Views: 80

Answers (0)

Related Questions