1 require 'puppetlabs_spec_helper/rake_tasks'
2 require 'puppet-lint/tasks/puppet-lint'
3 require 'puppet-syntax/tasks/puppet-syntax'
5 PuppetLint.configuration.relative = true
6 PuppetLint.configuration.send("disable_80chars")
7 PuppetLint.configuration.log_format = "%{path}:%{line}:%{check}:%{KIND}:%{message}"
8 PuppetLint.configuration.fail_on_warnings = true
10 # Forsake support for Puppet 2.6.2 for the benefit of cleaner code.
11 # http://puppet-lint.com/checks/class_parameter_defaults/
12 PuppetLint.configuration.send('disable_class_parameter_defaults')
13 # http://puppet-lint.com/checks/class_inherits_from_params_class/
14 PuppetLint.configuration.send('disable_class_inherits_from_params_class')
22 PuppetLint.configuration.ignore_paths = exclude_paths
23 PuppetSyntax.exclude_paths = exclude_paths
27 task :metadata_lint do
28 sh "metadata-json-lint metadata.json"
33 desc "Beaker tests against CentOS 7 VM with latest Carbon testing RPM"
34 task :cent_6test_vm do
35 sh "RS_SET=centos-7 RPM_REPO='opendaylight-6-testing' bundle exec rake beaker"
40 desc "Beaker tests against CentOS 7 container with latest Carbon testing RPM"
41 task :cent_6test_dock do
42 sh "RS_SET=centos-7-docker RPM_REPO='opendaylight-6-testing' bundle exec rake beaker"
47 desc "Beaker tests against Ubuntu 16.04 Container with Boron release Deb"
48 task :ubuntu_6test_vm do
49 sh "RS_SET=ubuntu-16 DEB_REPO='ppa:odl-team/carbon' bundle exec rake beaker"
54 desc "Beaker tests against Ubuntu 16.04 Container with Boron release Deb"
55 task :ubuntu_6test_dock do
56 sh "RS_SET=ubuntu-16-docker DEB_REPO='ppa:odl-team/carbon' bundle exec rake beaker"
61 desc "Run syntax, lint, and spec tests."
69 desc "Quick and important tests"
75 desc "All tests, use VMs for Beaker tests"
76 task :acceptance_vm => [
82 desc "All tests, use containers for Beaker tests"
83 task :acceptance_dock => [