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
16 PuppetLint.configuration.ignore_paths = exclude_paths
17 PuppetSyntax.exclude_paths = exclude_paths
21 task :metadata_lint do
22 sh "metadata-json-lint metadata.json"
26 desc "Beaker tests against CentOS 7 VM with latest Oxygen testing RPM from ODL Nexus repo"
27 task :cent_8test_nexus_vm do
28 sh "RS_SET=centos-7 RPM_REPO='https://nexus.opendaylight.org/content/repositories/opendaylight-oxygen-epel-7-$basearch-devel' bundle exec rake beaker"
31 # CentOS Nexus Container
32 desc "Beaker tests against CentOS 7 container with latest Oxygen testing RPM from ODL Nexus repo"
33 task :cent_8test_nexus_dock do
34 sh "RS_SET=centos-7-docker RPM_REPO='https://nexus.opendaylight.org/content/repositories/opendaylight-oxygen-epel-7-$basearch-devel' bundle exec rake beaker"
38 desc "Beaker tests against CentOS 7 VM with latest Oxygen testing RPM from CentOS CBS repo"
39 task :cent_8test_cbs_vm do
40 sh "RS_SET=centos-7 RPM_REPO='http://cbs.centos.org/repos/nfv7-opendaylight-8-testing/$basearch/os/' bundle exec rake beaker"
43 # CentOS CBS Container
44 desc "Beaker tests against CentOS 7 container with latest Oxygen testing RPM from CentOS CBS repo"
45 task :cent_8test_cbs_dock do
46 sh "RS_SET=centos-7-docker RPM_REPO='http://cbs.centos.org/repos/nfv7-opendaylight-8-testing/$basearch/os/' bundle exec rake beaker"
50 desc "Beaker tests against Ubuntu 16.04 Container with Nitrogen release Deb"
51 task :ubuntu_6test_vm do
52 sh "RS_SET=ubuntu-16 DEB_REPO='ppa:odl-team/nitrogen' bundle exec rake beaker"
56 desc "Beaker tests against Ubuntu 16.04 Container with Nitrogen release Deb"
57 task :ubuntu_6test_dock do
58 sh "RS_SET=ubuntu-16-docker DEB_REPO='ppa:odl-team/nitrogen' bundle exec rake beaker"
63 desc "Run syntax, lint, and spec tests."
71 desc "Quick and important tests"
74 :cent_8test_nexus_dock,
77 desc "All tests, use VMs for Beaker tests"
78 task :acceptance_vm => [
85 desc "All tests, use containers for Beaker tests"
86 task :acceptance_dock => [
90 :cent_8test_nexus_dock,