Install Java Puppet mod in Beaker test hosts
[integration/packaging/puppet-opendaylight.git] / Rakefile
index 18d8e99bc6a08b872e03e8245af472bd0b0f5e4b..a982d50fdc6c77ce159d87ee6852e9283cf72621 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -1,6 +1,6 @@
 # Temporary fix for error caused by third party gems. See:
 # https://github.com/maestrodev/puppet-blacksmith/issues/14
-# https://github.com/dfarrell07/dfarrell07-opendaylight/issues/6
+# https://github.com/dfarrell07/puppet-opendaylight/issues/6
 require 'puppet/version'
 require 'puppet/vendor/semantic/lib/semantic' unless Puppet.version.to_f <3.6
 
@@ -35,11 +35,6 @@ exclude_paths = [
 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
@@ -51,3 +46,26 @@ task :test => [
   :spec,
   :metadata,
 ]
+
+desc "Run Beaker tests against CentOS 7 node."
+task :centos do
+  sh "RS_SET=centos-7 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,
+]