Skip to content

Commit

Permalink
(PA-6139) Drop beaker-puppet_install_helper gem in augeas-core module
Browse files Browse the repository at this point in the history
  • Loading branch information
amitkarsale committed Jul 24, 2024
1 parent db8b537 commit dc0168b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
1 change: 0 additions & 1 deletion .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ Gemfile:
- gem: async
version: '~> 1'
- gem: beaker-module_install_helper
- gem: beaker-puppet_install_helper
- gem: nokogiri
":system_tests":
- gem: voxpupuli-acceptance
Expand Down
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ group :development do
gem "beaker-puppet", *location_for(ENV['BEAKER_PUPPET_VERSION'] || '~> 4.0') if Gem::Requirement.create('< 3.2.0').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
gem "async", '~> 1', require: false
gem "beaker-module_install_helper", require: false
gem "beaker-puppet_install_helper", require: false
gem "nokogiri", require: false
end
group :development, :release_prep do
Expand Down
24 changes: 22 additions & 2 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'beaker-rspec'
require 'beaker-puppet'
require 'beaker/module_install_helper'
require 'beaker/puppet_install_helper'
require 'voxpupuli/acceptance/spec_helper_acceptance'

RSpec.configure do |c|
Expand Down Expand Up @@ -60,7 +59,28 @@
end
end
hosts.each { |host| host[:type] = 'aio' }
run_puppet_install_helper
if ENV['PUPPET_INSTALL_TYPE'] == 'agent'
if ENV['BEAKER_PUPPET_COLLECTION'].match? %r{/-nightly$/}
# Workaround for RE-10734
options[:release_apt_repo_url] = 'http://nightlies.puppet.com/apt'
options[:win_download_url] = 'http://nightlies.puppet.com/downloads/windows'
options[:mac_download_url] = 'http://nightlies.puppet.com/downloads/mac'
end

agent_sha = ENV['BEAKER_PUPPET_AGENT_SHA'] || ENV['PUPPET_AGENT_SHA']
if agent_sha.nil? || agent_sha.empty?
install_puppet_agent_on(hosts, options.merge(version: version))
else
# If we have a development sha, assume we're testing internally
dev_builds_url = ENV['DEV_BUILDS_URL'] || 'http://builds.delivery.puppetlabs.net'
install_from_build_data_url('puppet-agent', "#{dev_builds_url}/puppet-agent/#{agent_sha}/artifacts/#{agent_sha}.yaml", hosts)
end

# XXX install_puppet_agent_on() will only add_aio_defaults_on when the
# nodeset type == 'aio', but we don't want to depend on that.
add_aio_defaults_on(hosts)
add_puppet_paths_on(hosts)
end
install_module_on(hosts)
install_module_dependencies_on(hosts)
end
Expand Down

0 comments on commit dc0168b

Please sign in to comment.