This patch is the initial modulesync run, it impacts: * gitignore: just a sync between projects * gemfile: - update and allow to setup facter version and gem source - split beaker gems with a dedicated group - switch to rspec-puppet 2.2.0 * rakefile: - use the new syntax for lint configuration - add a acceptance target * acceptance: - sync nodesets * spec: added rspec coverage report Change-Id: I9a858f29644b3519d5b19fb9a0c45589968537ef
		
			
				
	
	
		
			22 lines
		
	
	
		
			766 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			766 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
require 'puppetlabs_spec_helper/rake_tasks'
 | 
						|
require 'puppet-lint/tasks/puppet-lint'
 | 
						|
require 'puppet-syntax/tasks/puppet-syntax'
 | 
						|
 | 
						|
PuppetSyntax.exclude_paths ||= []
 | 
						|
PuppetSyntax.exclude_paths << "spec/fixtures/**/*"
 | 
						|
PuppetSyntax.exclude_paths << "pkg/**/*"
 | 
						|
PuppetSyntax.exclude_paths << "vendor/**/*"
 | 
						|
 | 
						|
Rake::Task[:lint].clear
 | 
						|
PuppetLint::RakeTask.new :lint do |config|
 | 
						|
  config.ignore_paths = ["spec/**/*.pp", "vendor/**/*.pp"]
 | 
						|
  config.fail_on_warnings = true
 | 
						|
  config.log_format = '%{path}:%{linenumber}:%{KIND}: %{message}'
 | 
						|
  config.disable_checks = ["80chars", "class_inherits_from_params_class", "class_parameter_defaults", "only_variable_string"]
 | 
						|
end
 | 
						|
 | 
						|
desc "Run acceptance tests"
 | 
						|
RSpec::Core::RakeTask.new(:acceptance) do |t|
 | 
						|
  t.pattern = 'spec/acceptance'
 | 
						|
end
 |