Skip to content

Commit

Permalink
Try to use vox acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Riehecky committed Aug 28, 2023
1 parent 44be7b7 commit 2683f2b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 34 deletions.
5 changes: 3 additions & 2 deletions .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ Gemfile:
':test':
- gem: 'mocha'
version: '~> 1.10.0'
':system_tests':
- gem: 'simp-beaker-helpers'

spec/spec_helper_acceptance.rb:
unmanaged: false

.rubocop.yml:
default_configs:
Expand Down
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ end

group :system_tests do
gem 'voxpupuli-acceptance', '~> 2.0', :require => false
gem 'simp-beaker-helpers', :require => false
end

group :release do
Expand Down
36 changes: 5 additions & 31 deletions spec/spec_helper_acceptance.rb
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 }

0 comments on commit 2683f2b

Please sign in to comment.