+# Temporary fix for error caused by third party gems. See:
+# https://github.com/maestrodev/puppet-blacksmith/issues/14
+# https://github.com/dfarrell07/puppet-opendaylight/issues/6
+require 'puppet/version'
+require 'puppet/vendor/semantic/lib/semantic' unless Puppet.version.to_f <3.6
+
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint'
require 'puppet-syntax/tasks/puppet-syntax'
PuppetLint.configuration.ignore_paths = exclude_paths
PuppetSyntax.exclude_paths = exclude_paths
-desc "Run acceptance tests"
-RSpec::Core::RakeTask.new(:acceptance) do |t|
- t.pattern = 'spec/acceptance'
-end
-
task :metadata do
sh "metadata-json-lint metadata.json"
end
:spec,
:metadata,
]
+
+desc "Run Beaker tests against CentOS 7 node."
+task :centos do
+ sh "RS_SET=centos-7 INSTALL_METHOD=rpm bundle exec rake beaker"
+end
+
+desc "Run Beaker tests against CentOS 7 using tarball install."
+task :centos_tarball do
+ sh "RS_SET=centos-7 INSTALL_METHOD=tarball bundle exec rake beaker"
+end
+
+desc "Run Beaker tests against Fedora 20 node."
+task :fedora_20 do
+ sh "RS_SET=fedora-20 bundle exec rake beaker"
+end
+
+desc "Run Beaker tests against Fedora 21 node."
+task :fedora_21 do
+ sh "RS_SET=fedora-21 bundle exec rake beaker"
+end
+
+desc "All tests, including Beaker tests against all nodes."
+task :acceptance => [
+ :test,
+ :centos,
+ :fedora_20,
+ :fedora_21,
+]