beaker-pe 2.11.1 → 2.11.6

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
- SHA1:
3
- metadata.gz: 97bd6a543781b23b5db74e34d21bf25090df35b2
4
- data.tar.gz: e4c3a2042167ac2d97cb32785eaf81f98fc15d56
2
+ SHA256:
3
+ metadata.gz: e607f0adbf9ab049934cd0ce8b147e60e63fe642aa2cb78cbb92db28c72dc97b
4
+ data.tar.gz: 3f51752866e156e61b75d9fbca4f1d00cc916f68f7c197fd089d1cc5069649d0
5
5
  SHA512:
6
- metadata.gz: 667cd0c54bb1f9aa9dd2e014322fb866d5313a793ce8ccdd9032bf3a66ea4c9951f5534dfd9d76b15b32a2278b3e69ea329e9531a890624d094d41e239447376
7
- data.tar.gz: cdba8e5acabb39ee557c7d914349bc280e374283e293eb5c080fdaa3e9fde1c47def8ae881325a6a2f3b7a62c70adbd7cdd01225b6854fb66253f709ff9732a6
6
+ metadata.gz: 337a4164bcc7d6a5e73e515ee4b277a11b1a08524cda7158226303a229b962e4a65072aa2b51e968658580c8784c8f9ae25940e79c31e863c94b414a6096438a
7
+ data.tar.gz: 81e2989aa75682be94555e98273ce477d71384bdaa55ccbcc3a12d42030d512b6ed3382e04e0aa1d12fc447cd5c0e23f4b7a1dd4da67a1bbdabacc15da6606e7
@@ -0,0 +1,8 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "13:00"
8
+ open-pull-requests-limit: 10
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.add_development_dependency 'rspec', '~> 3.0'
22
22
  s.add_development_dependency 'rspec-its'
23
23
  s.add_development_dependency 'fakefs', '~> 0.6', '< 0.14.0'
24
- s.add_development_dependency 'rake', '~> 10.1'
24
+ s.add_development_dependency 'rake', '~> 12.3.3'
25
25
  s.add_development_dependency 'simplecov'
26
26
  s.add_development_dependency 'pry', '~> 0.10'
27
27
 
@@ -292,7 +292,7 @@ module Beaker
292
292
  fetch_and_push_pe(host, path, filename, extension)
293
293
  else
294
294
  curlopts = opts[:use_proxy] ? " --proxy #{opts[:proxy_hostname]}:3128" : ""
295
- on host, "cd #{host['working_dir']}; curl -O #{path}/#{filename}#{extension}#{curlopts}"
295
+ on host, "cd #{host['working_dir']}; curl -L -O #{path}/#{filename}#{extension}#{curlopts}"
296
296
  end
297
297
  end
298
298
  end
@@ -328,7 +328,7 @@ module Beaker
328
328
  on host, "cd #{host['working_dir']}; chmod 644 #{filename}#{extension}"
329
329
  elsif host.is_cygwin?
330
330
  curlopts = opts[:use_proxy] ? " --proxy #{opts[:proxy_hostname]}:3128" : ""
331
- on host, "cd #{host['working_dir']}; curl -O #{path}/#{filename}#{extension}#{curlopts}"
331
+ on host, "cd #{host['working_dir']}; curl -L -O #{path}/#{filename}#{extension}#{curlopts}"
332
332
  else
333
333
  on host, powershell("$webclient = New-Object System.Net.WebClient; $webclient.DownloadFile('#{path}/#{filename}#{extension}','#{host['working_dir']}\\#{filename}#{extension}')")
334
334
  end
@@ -381,7 +381,7 @@ module Beaker
381
381
  command_file_push = 'cat '
382
382
  else
383
383
  curlopts = opts[:use_proxy] ? "--proxy #{opts[:proxy_hostname]}:3128 " : ""
384
- command_file_push = "curl #{curlopts}#{path}/"
384
+ command_file_push = "curl -L #{curlopts}#{path}/"
385
385
  end
386
386
  on host, "cd #{host['working_dir']}; #{command_file_push}#{filename}#{extension} | #{unpack}"
387
387
 
@@ -661,7 +661,7 @@ module Beaker
661
661
  register_feature_flags!(opts)
662
662
  generate_installer_conf_file_for(master, all_hosts, opts)
663
663
  step "Install PE on master" do
664
- on master, installer_cmd(master, opts)
664
+ on master, installer_cmd(master, opts) if master['template'] !~ /-preload/
665
665
  end
666
666
 
667
667
  step "Stop agent on master" do
@@ -690,7 +690,7 @@ module Beaker
690
690
  step "Configuring #{host} to use proxy" do
691
691
  @osmirror_host = "osmirror.delivery.puppetlabs.net"
692
692
  @osmirror_host_ip = IPSocket.getaddress(@osmirror_host)
693
- @delivery_host = "enterprise.delivery.puppetlabs.net"
693
+ @delivery_host = "artifactory.delivery.puppetlabs.net"
694
694
  @delivery_host_ip = IPSocket.getaddress(@delivery_host)
695
695
  @test_forge_host = "api-forge-aio02-petest.puppet.com"
696
696
  @test_forge_host_ip = IPSocket.getaddress(@test_forge_host)
@@ -127,6 +127,7 @@ module Beaker
127
127
  #TODO does this need to be more detailed to pass exit codes????
128
128
  # TODO make batch file direct output to separate file
129
129
  batch_contents =<<-EOS
130
+ @echo off
130
131
  call #{tool_executable} #{args.join(' ')}
131
132
  EOS
132
133
 
@@ -47,6 +47,15 @@ module Beaker
47
47
  else
48
48
  install_dev_repos_on(product, host, directory, '/tmp/repo_configs',{:dev_builds_url => opts[:dev_builds_url]})
49
49
  host.install_package('pe-client-tools')
50
+ if host['platform'] =~ /cisco|centos|redhat|eos|sles|el-|fedora-(2[2-9]|3[0-9])/
51
+ host.exec(Command.new('rpm -q pe-client-tools')) do |command|
52
+ raise "Wanted version not installed." unless command.stdout =~ /-#{opts[:pe_client_tools_version]}/
53
+ end
54
+ elsif host['platform'] =~ /ubuntu|debian|cumulus|huaweios/
55
+ host.exec(Command.new("apt-cache policy pe-client-tools | sed -n -e 's/Installed: //p'")) do |command|
56
+ raise "Wanted version not installed." unless command.stdout =~ /-#{opts[:pe_client_tools_version]}/
57
+ end
58
+ end
50
59
  end
51
60
  end
52
61
  end
@@ -3,7 +3,7 @@ module Beaker
3
3
  module PE
4
4
 
5
5
  module Version
6
- STRING = '2.11.1'
6
+ STRING = '2.11.6'
7
7
  end
8
8
 
9
9
  end
@@ -646,29 +646,6 @@ describe ClassMixedWithDSLInstallUtils do
646
646
  def slice_installer_options(host)
647
647
  host.host_hash.select { |k,v| [ :pe_installer_conf_file, :pe_installer_conf_setting].include?(k) }
648
648
  end
649
-
650
- context 'when version < 2016.2.0' do
651
- let(:pe_ver) { '3.8.5' }
652
-
653
- it 'sets legacy settings' do
654
- expect(slice_installer_options(host)).to eq(legacy_settings)
655
- end
656
- end
657
-
658
- context 'when version >= 2016.2.0' do
659
- let (:pe_ver) { '2016.2.0' }
660
-
661
- it 'test use_meep?' do
662
- expect(subject.use_meep?('3.8.5')).to eq(false)
663
- expect(subject.use_meep?('2016.1.2')).to eq(false)
664
- expect(subject.use_meep?('2016.2.0')).to eq(true)
665
- expect(subject.use_meep?('2016.2.0-rc1-gabcdef')).to eq(true)
666
- end
667
-
668
- it 'sets meep settings' do
669
- expect(slice_installer_options(host)).to eq(meep_settings)
670
- end
671
- end
672
649
  end
673
650
 
674
651
  RSpec.shared_examples 'test flag' do |flag_name|
@@ -1114,7 +1091,7 @@ describe ClassMixedWithDSLInstallUtils do
1114
1091
  path = unixhost['pe_dir']
1115
1092
  filename = "#{ unixhost['dist'] }"
1116
1093
  extension = '.tar'
1117
- expect( subject ).to receive( :on ).with( unixhost, "cd #{ unixhost['working_dir'] }; curl #{ path }/#{ filename }#{ extension } | tar -xvf -" ).once
1094
+ expect( subject ).to receive( :on ).with( unixhost, "cd #{ unixhost['working_dir'] }; curl -L #{ path }/#{ filename }#{ extension } | tar -xvf -" ).once
1118
1095
  subject.fetch_pe( [unixhost], {} )
1119
1096
  end
1120
1097
 
@@ -1144,7 +1121,7 @@ describe ClassMixedWithDSLInstallUtils do
1144
1121
  path = unixhost['pe_dir']
1145
1122
  filename = "#{ unixhost['dist'] }"
1146
1123
  extension = '.tar.gz'
1147
- expect( subject ).to receive( :on ).with( unixhost, "cd #{ unixhost['working_dir'] }; curl #{ path }/#{ filename }#{ extension } | gunzip | tar -xvf -" ).once
1124
+ expect( subject ).to receive( :on ).with( unixhost, "cd #{ unixhost['working_dir'] }; curl -L #{ path }/#{ filename }#{ extension } | gunzip | tar -xvf -" ).once
1148
1125
  subject.fetch_pe( [unixhost], {} )
1149
1126
  end
1150
1127
 
@@ -1190,7 +1167,7 @@ describe ClassMixedWithDSLInstallUtils do
1190
1167
  path = machost['pe_dir']
1191
1168
  filename = "#{ machost['dist'] }"
1192
1169
  extension = '.dmg'
1193
- expect( subject ).to receive( :on ).with( machost, "cd #{ machost['working_dir'] }; curl -O #{ path }/#{ filename }#{ extension }" ).once
1170
+ expect( subject ).to receive( :on ).with( machost, "cd #{ machost['working_dir'] }; curl -L -O #{ path }/#{ filename }#{ extension }" ).once
1194
1171
  subject.fetch_pe( [machost], {} )
1195
1172
  end
1196
1173
 
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.1
4
+ version: 2.11.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-06 00:00:00.000000000 Z
11
+ date: 2020-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -64,14 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '10.1'
67
+ version: 12.3.3
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '10.1'
74
+ version: 12.3.3
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: simplecov
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -248,6 +248,7 @@ executables:
248
248
  extensions: []
249
249
  extra_rdoc_files: []
250
250
  files:
251
+ - ".github/dependabot.yml"
251
252
  - ".gitignore"
252
253
  - ".rspec"
253
254
  - ".simplecov"
@@ -306,8 +307,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
306
307
  - !ruby/object:Gem::Version
307
308
  version: '0'
308
309
  requirements: []
309
- rubyforge_project:
310
- rubygems_version: 2.5.1
310
+ rubygems_version: 3.0.8
311
311
  signing_key:
312
312
  specification_version: 4
313
313
  summary: Beaker PE DSL Helpers!