-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Patrick Riehecky
committed
Aug 28, 2023
1 parent
44be7b7
commit 2683f2b
Showing
3 changed files
with
8 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,10 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'beaker-rspec' | ||
require 'tmpdir' | ||
require 'yaml' | ||
require 'simp/beaker_helpers' | ||
# rubocop:disable Style/MixinUsage | ||
include Simp::BeakerHelpers | ||
# rubocop:enable Style/MixinUsage | ||
# Managed by modulesync - DO NOT EDIT | ||
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ | ||
|
||
UNSUPPORTED_PLATFORMS = %w[windows Darwin].freeze | ||
require 'voxpupuli/acceptance/spec_helper_acceptance' | ||
|
||
unless ENV['BEAKER_provision'] == 'no' | ||
hosts.each do |host| | ||
# Install Puppet | ||
if host.is_pe? | ||
install_pe | ||
else | ||
install_puppet | ||
end | ||
end | ||
end | ||
configure_beaker(modules: :metadata) | ||
|
||
RSpec.configure do |c| | ||
# ensure that environment OS is ready on each host | ||
fix_errata_on hosts | ||
|
||
# Readable test descriptions | ||
c.formatter = :documentation | ||
|
||
# Configure all nodes in nodeset | ||
c.before :suite do | ||
# Install modules and dependencies from spec/fixtures/modules | ||
copy_fixture_modules_to(hosts) | ||
end | ||
end | ||
Dir['./spec/support/acceptance/**/*.rb'].sort.each { |f| require f } |