]> gitweb.fluxo.info Git - puppet-mailalias_core.git/commitdiff
(maint) Add Vox Beaker gem
authorMichael Hashizume <michael.hashizume@puppet.com>
Mon, 10 Apr 2023 16:37:46 +0000 (09:37 -0700)
committerMichael Hashizume <michael.hashizume@puppet.com>
Mon, 10 Apr 2023 16:38:37 +0000 (09:38 -0700)
In e4337c0, we updated the module according to PDK template 2.7.4,
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.

Gemfile
Rakefile
spec/spec_helper_acceptance.rb

diff --git a/Gemfile b/Gemfile
index b266ac430b338ca4c3ea28ec2e9e4556e6810547..a840edb794366556d3ff0e27cfb610b1e425be78 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -49,6 +49,7 @@ end
 group :system_tests do
   gem "puppet_litmus", '< 1.0.0', require: false, platforms: [:ruby, :x64_mingw]
   gem "serverspec", '~> 2.41',    require: false
+  gem "voxpupuli-acceptance"
 end
 
 puppet_version = ENV['PUPPET_GEM_VERSION']
index 0f8754eb61e400db1d117cad5026f06d3ba6ff89..10ddd141125b662d9feea9794acfa6b7f407f99d 100644 (file)
--- 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"
index 24d3b9dfe7cb1022ce0cb16b159f767db4a73a00..e22dc8763b17a5f6e2d45b4c46f8bdd201c1c0dd 100644 (file)
@@ -2,6 +2,7 @@ require 'puppet'
 require 'beaker-rspec'
 require 'beaker/module_install_helper'
 require 'beaker/puppet_install_helper'
+require 'voxpupuli/acceptance/spec_helper_acceptance'
 
 $LOAD_PATH << File.join(__dir__, 'acceptance/lib')