beaker-pe 2.11.7 → 2.11.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2729fa197d07e6977316382ea5621a152a0d740a19b1bd8639101867384eb15f
4
- data.tar.gz: 434680a7743f98182d0a2261c5151b204bd1e0439cf4532ce249bdfb93e2ac14
3
+ metadata.gz: 0ea72482bc472e4a0559e8f1c451de554f2c35c1e88337280c1c5e79b8dbabf1
4
+ data.tar.gz: f07017a866d781a895481347ec738da1e42a1e07fc1d7aeed50945e7cc0f6a02
5
5
  SHA512:
6
- metadata.gz: 024973babe90a837c4c86b3efecfe5792dc1610eae356a3e05abd54ecafb529640b616923aa674e51c125a4bd4405b67ab15dfaac82f391a9aa7a1cbafb5513c
7
- data.tar.gz: 884e05b5a6a9e0c0a43420f5fa71bd5c805cc641d2b5cf5bcd3ff9eb2f359bd239c297d93e2405cad89bd06805430006d59666fb4903e9a44d78da9905f9341a
6
+ metadata.gz: 27d77ade9aabcc07859a6aa09e54ce9c7be605e527531dc58f5ed75c1119590de9a0e59aece829d6616db4d0a34cac7e83c5e207ac484d101ca1ce35008b7002
7
+ data.tar.gz: a782f6043fc83b976949c45899ef95914b41b74e5d2515458081c34e91b3cba84455278f24fa9d52c9bade9afa913fa04063c1d41f9ff04e08ed5d63b6e8846b
data/Gemfile CHANGED
@@ -15,6 +15,7 @@ end
15
15
  group :acceptance_testing do
16
16
  gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 4.0')
17
17
  gem "beaker-vmpooler", *location_for(ENV['BEAKER_VMPOOLER_VERSION'] || '~> 1.3')
18
+ gem "beaker-abs", *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 0.8')
18
19
  end
19
20
 
20
21
  gem "scooter", *location_for(ENV['SCOOTER_VERSION'] || '~> 4.3')
data/README.md CHANGED
@@ -70,10 +70,10 @@ you'd like to provide your own hosts file, set the `CONFIG` environment variable
70
70
  # Release
71
71
 
72
72
  To release new versions, we use a
73
- [Jenkins job](https://cinext-jenkinsmaster-sre-prod-1.delivery.puppetlabs.net/job/qe_beaker-pe-gem_init-multijob_master/)
73
+ [Jenkins job](https://cinext-jenkinsmaster-sre-prod-1.delivery.puppetlabs.net/job/qe_beaker-pe-gem_init-multijob_main/)
74
74
  (access to internal infrastructure will be required to view job).
75
75
 
76
- To release a new version (from the master branch), you'll need to just provide
76
+ To release a new version (from the main branch), you'll need to just provide
77
77
  a new beaker-pe version number to the job, and you're off to the races.
78
78
 
79
79
  # Questions
data/beaker-pe.gemspec CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.add_development_dependency 'rspec-its'
23
23
  s.add_development_dependency 'fakefs', '~> 0.6', '< 0.14.0'
24
24
  s.add_development_dependency 'rake', '~> 12.3.3'
25
- s.add_development_dependency 'simplecov'
25
+ s.add_development_dependency 'simplecov', '= 0.18.5'
26
26
  s.add_development_dependency 'pry', '~> 0.10'
27
27
 
28
28
  # Documentation dependencies
@@ -139,7 +139,7 @@ module Beaker
139
139
  #Return true if tlsv1 protocol needs to be enforced
140
140
  #param [Host] the host
141
141
  def require_tlsv1?(host)
142
- tlsv1_platforms = [/aix/, /el-5/, /solaris-1[0,1]-[i,x]/, /sles-11/,/windows-2008/]
142
+ tlsv1_platforms = [/el-5/, /solaris-1[0,1]-[i,x]/, /sles-11/,/windows-2008/]
143
143
  return tlsv1_platforms.any? {|platform_regex| host['platform'] =~ platform_regex}
144
144
  end
145
145
 
@@ -184,6 +184,12 @@ module Beaker
184
184
  pe_debug = host[:pe_debug] || opts[:pe_debug] ? ' -x' : ''
185
185
  use_puppet_ca_cert = host[:use_puppet_ca_cert] || opts[:use_puppet_ca_cert]
186
186
 
187
+ # PE 2019.8.3 had a bug in the frictionless install of osx-10.14 and osx-10.15
188
+ # We need to do a bit of a hacky process to install the agent
189
+ if host['platform'] =~ /osx-10\.1(4|5)/ && (pe_version.eql?('2019.8.3') || pe_version.eql?('2019.8.4'))
190
+ return "curl -kO https://#{downloadhost}:8140/packages/current/#{host['platform']}.bash && bash #{host['platform']}.bash"
191
+ end
192
+
187
193
  if host['platform'] =~ /windows/ then
188
194
  if use_puppet_ca_cert
189
195
  frictionless_install_opts << '-UsePuppetCA'
@@ -205,7 +211,7 @@ module Beaker
205
211
  end
206
212
  if use_puppet_ca_cert
207
213
  curl_opts << '--cacert /etc/puppetlabs/puppet/ssl/certs/ca.pem'
208
- elsif host['platform'] !~ /aix/
214
+ else
209
215
  curl_opts << '-k'
210
216
  end
211
217
 
@@ -725,12 +731,16 @@ module Beaker
725
731
  hosts.each do |host|
726
732
  step "Configuring #{host} to use proxy" do
727
733
  @osmirror_host = "osmirror.delivery.puppetlabs.net"
734
+ puts "Grabbing IP for osmirror.delivery.puppetlabs.net"
728
735
  @osmirror_host_ip = IPSocket.getaddress(@osmirror_host)
729
736
  @delivery_host = "artifactory.delivery.puppetlabs.net"
737
+ puts "Grabbing IP for artifactory.delivery.puppetlabs.net"
730
738
  @delivery_host_ip = IPSocket.getaddress(@delivery_host)
731
739
  @test_forge_host = "api-forge-aio02-petest.puppet.com"
740
+ puts "Grabbing IP for api-forge-aio02-petest.puppet.com"
732
741
  @test_forge_host_ip = IPSocket.getaddress(@test_forge_host)
733
742
  @github_host = "github.com"
743
+ puts "Grabbing IP for github.com"
734
744
  @github_host_ip = IPSocket.getaddress(@github_host)
735
745
  @proxy_ip = @options[:proxy_ip]
736
746
  @proxy_hostname = @options[:proxy_hostname]
@@ -751,6 +761,9 @@ module Beaker
751
761
  on host, "iptables -A OUTPUT -p tcp -d #{@osmirror_host_ip} -j DROP"
752
762
  on host, "iptables -A OUTPUT -p tcp -d #{@delivery_host_ip} -j DROP"
753
763
  on host, "iptables -A OUTPUT -p tcp -d #{@test_forge_host_ip} -j DROP"
764
+ # The next two lines are for our production and test k8s test runners
765
+ on host, "iptables -A OUTPUT -p tcp -d 10.236.112.0/20 -j ACCEPT"
766
+ on host, "iptables -A OUTPUT -p tcp -d 10.220.0.0/16 -j ACCEPT"
754
767
  # The next two lines clear the rest of the internal puppet lan
755
768
  on host, "iptables -A OUTPUT -p tcp -d 10.16.0.0/16 -j ACCEPT"
756
769
  on host, "iptables -A OUTPUT -p tcp -d 10.32.0.0/16 -j ACCEPT"
@@ -1047,7 +1060,11 @@ module Beaker
1047
1060
  facts_result = on(master, 'puppet facts')
1048
1061
  raise ArgumentError, fail_message if facts_result.exit_code != 0
1049
1062
  facts_hash = JSON.parse(facts_result.stdout.chomp)
1050
- puppet_agent_version = facts_hash['values']['aio_agent_version']
1063
+ # In Puppet 7, facts are at the top level of the hash. Before that
1064
+ # version, they were wrapped inside a `values` key. Since we're
1065
+ # trying to determine the agent version here, we can't just switch
1066
+ # our behavior by agent version, so we check both possible locations.
1067
+ puppet_agent_version = facts_hash['aio_agent_version'] || facts_hash.dig('values', 'aio_agent_version')
1051
1068
  raise ArgumentError, fail_message if puppet_agent_version.nil?
1052
1069
  logger.warn("#{log_prefix} Read puppet-agent version #{puppet_agent_version} from master")
1053
1070
  # saving so that we don't have to query the master more than once
@@ -3,7 +3,7 @@ module Beaker
3
3
  module PE
4
4
 
5
5
  module Version
6
- STRING = '2.11.7'
6
+ STRING = '2.11.12'
7
7
  end
8
8
 
9
9
  end
@@ -263,7 +263,7 @@ describe ClassMixedWithDSLInstallUtils do
263
263
  expecting = [
264
264
  "FRICTIONLESS_TRACE='true'",
265
265
  "export FRICTIONLESS_TRACE",
266
- "cd /tmp && curl -O --tlsv1 https://testmaster:8140/packages/current/install.bash && bash install.bash"
266
+ "cd /tmp && curl -O --tlsv1 -k https://testmaster:8140/packages/current/install.bash && bash install.bash"
267
267
  ].join("; ")
268
268
 
269
269
  expect( subject.frictionless_agent_installer_cmd( host, {}, '2016.4.0' ) ).to eq(expecting)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-pe
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.7
4
+ version: 2.11.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-12 00:00:00.000000000 Z
11
+ date: 2021-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -76,16 +76,16 @@ dependencies:
76
76
  name: simplecov
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - ">="
79
+ - - '='
80
80
  - !ruby/object:Gem::Version
81
- version: '0'
81
+ version: 0.18.5
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - ">="
86
+ - - '='
87
87
  - !ruby/object:Gem::Version
88
- version: '0'
88
+ version: 0.18.5
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: pry
91
91
  requirement: !ruby/object:Gem::Requirement