aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hashizume <michael.hashizume@puppet.com>2023-02-14 14:28:45 -0800
committerMichael Hashizume <michael.hashizume@puppet.com>2023-02-14 14:28:45 -0800
commit03d362696eba91b1c38eac6886d910cb9907a40c (patch)
tree7afcc7bc52967c57cf30d8999fe3f59200a0b426
parenta8f61e8b3e964c27c939999cab7c17dfdbe911a6 (diff)
downloadpuppet-hosts_core-03d362696eba91b1c38eac6886d910cb9907a40c.tar.gz
puppet-hosts_core-03d362696eba91b1c38eac6886d910cb9907a40c.tar.bz2
(MODULES-11371) Add Vox Beaker gem
In 742031c, we updated the module according to PDK template 7.2.1, which updated puppetlabs_spec_helper. The updated version of puppetlabs_spec_helper removed the Beaker rake task, which we use for acceptance testing. This commit adds the voxpupuli-acceptance gem, which re-adds the Beaker rake task.
-rw-r--r--Gemfile1
-rw-r--r--Rakefile1
-rw-r--r--spec/spec_helper_acceptance.rb1
3 files changed, 3 insertions, 0 deletions
diff --git a/Gemfile b/Gemfile
index 4c131b4..b1261c6 100644
--- a/Gemfile
+++ b/Gemfile
@@ -49,6 +49,7 @@ end
group :system_tests do
gem "puppet_litmus", '< 1.0.0', require: false, platforms: [:ruby]
gem "serverspec", '~> 2.41', require: false
+ gem "voxpupuli-acceptance"
end
puppet_version = ENV['PUPPET_GEM_VERSION']
diff --git a/Rakefile b/Rakefile
index 0f8754e..10ddd14 100644
--- a/Rakefile
+++ b/Rakefile
@@ -7,6 +7,7 @@ require 'puppet-syntax/tasks/puppet-syntax'
require 'puppet_blacksmith/rake_tasks' if Bundler.rubygems.find_name('puppet-blacksmith').any?
require 'github_changelog_generator/task' if Bundler.rubygems.find_name('github_changelog_generator').any?
require 'puppet-strings/tasks' if Bundler.rubygems.find_name('puppet-strings').any?
+require 'voxpupuli/acceptance/rake'
def changelog_user
return unless Rake.application.top_level_tasks.include? "changelog"
diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb
index be0c91a..b61a01b 100644
--- a/spec/spec_helper_acceptance.rb
+++ b/spec/spec_helper_acceptance.rb
@@ -1,6 +1,7 @@
require 'beaker-rspec'
require 'beaker/module_install_helper'
require 'beaker/puppet_install_helper'
+require 'voxpupuli/acceptance/spec_helper_acceptance'
RSpec.configure do |c|
c.before :suite do