simp-beaker-helpers 1.30.0 → 1.32.0

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: 43a26304e3c73ccdceb260efe742031b4586f21f4bd2bf5dd1bf4b27bb0b8336
4
- data.tar.gz: 8d3d7ed70d8a0ffd9da29e1b588c2af5c21ab4dca4660e6e2cdafc17db8883d3
3
+ metadata.gz: 61e6231d0cf45fea87d7eb679d94fe902ec1b5af2f95ca21d45e61104f0fdab8
4
+ data.tar.gz: 90972159bcf15d6ab02cad21dc31b1d56321cbbd8681d6bcc2ebcae025f77c53
5
5
  SHA512:
6
- metadata.gz: 672d98b8d677b728cc19859daabd67e7914497d3dec98e0708ac6ca5efa6395efbf3156e194093e7043af1153bcc2431c49e11a754e45e3f21412b5e483b2126
7
- data.tar.gz: 9af14a14f18493d44c1af69ce2cbf02f1458349268e856073fa5e95178387ece6bfc736ec60d3e83343a7586a436ca03cc27a05d6f87595fc2f46144445cbfc9
6
+ metadata.gz: e04d18c50a3de6d8c4d3dacfc69a596ca4063ff29c86bd25ffd10e97b61465fdba218d6140ed9cb2f4d69b01e609e27ee31cd3ace0ba820ebbe69446e86cbbeb
7
+ data.tar.gz: c6979d6fecb5daaef5f739cca62d532c2c32ba5aad5abc3642b41c6e02ba69f840a82139ef14783e9978bd04712edd824c655464ddb99770528514923e1faf88
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ### 1.32.0 / 2023-08-24
2
+ * Added:
3
+ * Switch to Puppet 8 by default
4
+ * Fixed:
5
+ * Update gem dependencies
6
+
7
+ ### 1.31.0 / 2023-07-18
8
+ * Fixed:
9
+ * Compatibility with Ruby 3.2
10
+
1
11
  ### 1.30.0 / 2023-05-15
2
12
  * Added:
3
13
  * Default `puppet_collection` to `puppet7`
data/Gemfile CHANGED
@@ -13,7 +13,7 @@ gem 'bundler'
13
13
  gem 'rake'
14
14
 
15
15
  group :system_tests do
16
- beaker_gem_options = ENV.fetch('BEAKER_GEM_OPTIONS', ['>= 4.28.1', '< 5.0.0'])
16
+ beaker_gem_options = ENV.fetch('BEAKER_GEM_OPTIONS', ['>= 4.28.1', '< 6.0.0'])
17
17
 
18
18
  if "#{beaker_gem_options}".include?(':')
19
19
  # Just pass in BEAKER_GEM_OPTIONS as a string that would represent the usual
@@ -44,8 +44,8 @@ group :system_tests do
44
44
  gem 'beaker-rspec'
45
45
  gem 'beaker-windows'
46
46
  gem 'net-ssh'
47
- gem 'puppet', ENV.fetch('PUPPET_VERSION', '~> 7.0')
47
+ gem 'puppet', ENV.fetch('PUPPET_VERSION', ['>= 7.0.0', '< 9.0.0'])
48
48
  gem 'rubocop'
49
49
  gem 'rubocop-rspec'
50
- gem 'puppetlabs_spec_helper', '~> 4.0'
50
+ gem 'puppetlabs_spec_helper', '>= 4.0.0', '< 7.0.0'
51
51
  end
@@ -5,7 +5,7 @@ module Simp::BeakerHelpers
5
5
  #
6
6
  # This is done so that we know if some new thing that we're using breaks the
7
7
  # oldest system that we support
8
- DEFAULT_PUPPET_AGENT_VERSION = '~> 7.0'
8
+ DEFAULT_PUPPET_AGENT_VERSION = '~> 8.0'
9
9
 
10
10
  SSG_REPO_URL = ENV['BEAKER_ssg_repo'] || 'https://github.com/ComplianceAsCode/content.git'
11
11
 
@@ -1,5 +1,5 @@
1
1
  module Simp; end
2
2
 
3
3
  module Simp::BeakerHelpers
4
- VERSION = '1.30.0'
4
+ VERSION = '1.32.0'
5
5
  end
@@ -310,7 +310,7 @@ module Simp::BeakerHelpers
310
310
  while( fixtures_yml.empty? && File.expand_path(dir) != '/' ) do
311
311
  file = File.expand_path( '.fixtures.yml', dir )
312
312
  STDERR.puts " ** fixtures_yml_path: #{file}" if ENV['BEAKER_helpers_verbose']
313
- if File.exists? file
313
+ if File.exist? file
314
314
  fixtures_yml = file
315
315
  break
316
316
  end
@@ -1367,7 +1367,7 @@ module Simp::BeakerHelpers
1367
1367
  def clear_temp_hieradata
1368
1368
  if @temp_hieradata_dirs && !@temp_hieradata_dirs.empty?
1369
1369
  @temp_hieradata_dirs.each do |data_dir|
1370
- if File.exists?(data_dir)
1370
+ if File.exist?(data_dir)
1371
1371
  FileUtils.rm_r(data_dir)
1372
1372
  end
1373
1373
  end
@@ -16,19 +16,19 @@ Gem::Specification.new do |s|
16
16
  s.email = 'simp@simp-project.org'
17
17
  s.homepage = 'https://github.com/simp/rubygem-simp-beaker-helpers'
18
18
  s.metadata = {
19
- 'issue_tracker' => 'https://simp-project.atlassian.net'
19
+ 'issue_tracker' => 'https://github.com/simp/rubygem-simp-beaker-helpers/issues'
20
20
  }
21
21
 
22
22
  s.required_ruby_version = '>= 2.3.0'
23
23
 
24
- s.add_runtime_dependency 'beaker' , ['>= 4.17.0', '< 6.0.0']
25
- s.add_runtime_dependency 'beaker-rspec' , '~> 8.0'
26
- s.add_runtime_dependency 'beaker-puppet' , ['>= 1.18.14', '< 2.0.0']
27
- s.add_runtime_dependency 'beaker-docker' , ['>= 0.8.3', '< 2.0.0']
28
- s.add_runtime_dependency 'docker-api' , ['>= 2.1.0', '< 3.0.0']
29
- s.add_runtime_dependency 'beaker-vagrant' , ['>= 0.6.4', '< 2.0.0']
30
- s.add_runtime_dependency 'highline' , '~> 2.0'
31
- s.add_runtime_dependency 'nokogiri' , '~> 1.8'
24
+ s.add_runtime_dependency 'beaker', ['>= 4.17.0', '< 6.0.0']
25
+ s.add_runtime_dependency 'beaker-rspec', '~> 8.0'
26
+ s.add_runtime_dependency 'beaker-puppet', ['>= 1.18.14', '< 3.0.0']
27
+ s.add_runtime_dependency 'beaker-docker', ['>= 0.8.3', '< 3.0.0']
28
+ s.add_runtime_dependency 'docker-api', ['>= 2.1.0', '< 3.0.0']
29
+ s.add_runtime_dependency 'beaker-vagrant', ['>= 0.6.4', '< 2.0.0']
30
+ s.add_runtime_dependency 'highline', '~> 2.0'
31
+ s.add_runtime_dependency 'nokogiri', '~> 1.8'
32
32
 
33
33
  ### s.files = Dir['Rakefile', '{bin,lib,spec}/**/*', 'README*', 'LICENSE*'] & `git ls-files -z .`.split("\0")
34
34
  s.files = `git ls-files`.split("\n")
@@ -1,22 +1,14 @@
1
- <%
2
- if ENV['BEAKER_HYPERVISOR']
3
- hypervisor = ENV['BEAKER_HYPERVISOR']
4
- else
5
- hypervisor = 'vagrant'
6
- end
7
- -%>
1
+ ---
8
2
  HOSTS:
9
3
  amzn2:
10
4
  roles:
11
5
  - default
12
6
  platform: el-7-x86_64
13
7
  box: gbailey/amzn2
14
- hypervisor: <%= hypervisor %>
8
+ hypervisor: "<%= ENV.fetch('BEAKER_HYPERVISOR', 'vagrant') %>"
15
9
 
16
10
  CONFIG:
17
11
  log_level: verbose
18
- synced_folder : disabled
12
+ synced_folder: disabled
19
13
  type: aio
20
- <% if ENV['BEAKER_PUPPET_COLLECTION'] -%>
21
- puppet_collection: <%= ENV['BEAKER_PUPPET_COLLECTION'] %>
22
- <% end -%>
14
+ puppet_collection: "<%= ENV.fetch('BEAKER_PUPPET_COLLECTION', 'puppet8') %>"
@@ -2,8 +2,8 @@
2
2
  HOSTS:
3
3
  el7:
4
4
  roles:
5
- - default
6
- - el7
5
+ - default
6
+ - el7
7
7
  platform: el-7-x86_64
8
8
  box: centos/7
9
9
  hypervisor: "<%= ENV.fetch('BEAKER_HYPERVISOR', 'vagrant') %>"
@@ -11,9 +11,9 @@ HOSTS:
11
11
  gce_machine_type: n1-standard-2
12
12
  el8:
13
13
  roles:
14
- - el8
14
+ - el8
15
15
  platform: el-8-x86_64
16
- box: centos/stream8
16
+ box: generic/centos8s
17
17
  hypervisor: "<%= ENV.fetch('BEAKER_HYPERVISOR', 'vagrant') %>"
18
18
  family: centos-cloud/centos-stream-8
19
19
  gce_machine_type: n1-standard-2
@@ -33,4 +33,4 @@ CONFIG:
33
33
  - <%= Net::SSH::Transport::Algorithms::ALGORITHMS[:encryption].join("\n#{' '*6}- ") %>
34
34
  hmac:
35
35
  - <%= Net::SSH::Transport::Algorithms::ALGORITHMS[:hmac].join("\n#{' '*6}- ") %>
36
- puppet_collection: "<%= ENV.fetch('BEAKER_PUPPET_COLLECTION', 'puppet7') %>"
36
+ puppet_collection: "<%= ENV.fetch('BEAKER_PUPPET_COLLECTION', 'puppet8') %>"
@@ -1,27 +1,26 @@
1
+ ---
1
2
  HOSTS:
2
3
  el7.test.net:
3
4
  roles:
4
5
  - default
5
6
  - el7
6
- platform: el-7-x86_64
7
+ platform: el-7-x86_64
7
8
  hypervisor: docker
8
9
  image: simpproject/simp_beaker_el7
9
- docker_cmd: '/usr/sbin/sshd -D -E /var/log/sshd.log'
10
+ docker_cmd: "/usr/sbin/sshd -D -E /var/log/sshd.log"
10
11
 
11
12
  el8.test.net:
12
13
  roles:
13
14
  - el8
14
- platform: el-8-x86_64
15
+ platform: el-8-x86_64
15
16
  hypervisor: docker
16
17
  image: simpproject/simp_beaker_el8
17
- docker_cmd: '/usr/sbin/sshd -D -E /var/log/sshd.log'
18
+ docker_cmd: "/usr/sbin/sshd -D -E /var/log/sshd.log"
18
19
 
19
20
  CONFIG:
20
21
  log_level: verbose
21
22
  type: aio
22
- <% if ENV['BEAKER_PUPPET_ENVIRONMENT'] -%>
23
- puppet_environment: <%= ENV['BEAKER_PUPPET_ENVIRONMENT'] %>
24
- <% end -%>
23
+ puppet_collection: "<%= ENV.fetch('BEAKER_PUPPET_COLLECTION', 'puppet8') %>"
25
24
  ssh:
26
25
  password: root
27
26
  auth_methods:
@@ -1,10 +1,4 @@
1
- <%
2
- if ENV['BEAKER_HYPERVISOR']
3
- hypervisor = ENV['BEAKER_HYPERVISOR']
4
- else
5
- hypervisor = 'vagrant'
6
- end
7
- -%>
1
+ ---
8
2
  HOSTS:
9
3
  oel7:
10
4
  roles:
@@ -12,22 +6,20 @@ HOSTS:
12
6
  - el7
13
7
  platform: el-7-x86_64
14
8
  box: generic/oracle7
15
- hypervisor: <%= hypervisor %>
9
+ hypervisor: "<%= ENV.fetch('BEAKER_HYPERVISOR', 'vagrant') %>"
16
10
 
17
11
  oel8:
18
12
  roles:
19
13
  - el8
20
14
  platform: el-8-x86_64
21
15
  box: generic/oracle8
22
- hypervisor: <%= hypervisor %>
16
+ hypervisor: "<%= ENV.fetch('BEAKER_HYPERVISOR', 'vagrant') %>"
23
17
 
24
18
  CONFIG:
25
19
  log_level: verbose
26
20
  type: aio
27
21
  vagrant_cpus: 2
28
- <% if ENV['BEAKER_PUPPET_COLLECTION'] -%>
29
- puppet_collection: <%= ENV['BEAKER_PUPPET_COLLECTION'] %>
30
- <% end -%>
22
+ puppet_collection: "<%= ENV.fetch('BEAKER_PUPPET_COLLECTION', 'puppet8') %>"
31
23
  ssh:
32
24
  keepalive: true
33
25
  keepalive_interval: 10
@@ -2,7 +2,7 @@
2
2
  HOSTS:
3
3
  focal:
4
4
  roles:
5
- - default
5
+ - default
6
6
  platform: ubuntu-20.04-x86_64
7
7
  box: ubuntu/focal64
8
8
  hypervisor: "<%= ENV.fetch('BEAKER_HYPERVISOR', 'vagrant') %>"
@@ -11,4 +11,4 @@ HOSTS:
11
11
  CONFIG:
12
12
  log_level: verbose
13
13
  type: aio
14
- puppet_collection: "<%= ENV.fetch('BEAKER_PUPPET_COLLECTION', 'puppet7') %>"
14
+ puppet_collection: "<%= ENV.fetch('BEAKER_PUPPET_COLLECTION', 'puppet8') %>"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simp-beaker-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.30.0
4
+ version: 1.32.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Tessmer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-07-10 00:00:00.000000000 Z
12
+ date: 2023-08-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: beaker
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: 1.18.14
55
55
  - - "<"
56
56
  - !ruby/object:Gem::Version
57
- version: 2.0.0
57
+ version: 3.0.0
58
58
  type: :runtime
59
59
  prerelease: false
60
60
  version_requirements: !ruby/object:Gem::Requirement
@@ -64,7 +64,7 @@ dependencies:
64
64
  version: 1.18.14
65
65
  - - "<"
66
66
  - !ruby/object:Gem::Version
67
- version: 2.0.0
67
+ version: 3.0.0
68
68
  - !ruby/object:Gem::Dependency
69
69
  name: beaker-docker
70
70
  requirement: !ruby/object:Gem::Requirement
@@ -74,7 +74,7 @@ dependencies:
74
74
  version: 0.8.3
75
75
  - - "<"
76
76
  - !ruby/object:Gem::Version
77
- version: 2.0.0
77
+ version: 3.0.0
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
@@ -84,7 +84,7 @@ dependencies:
84
84
  version: 0.8.3
85
85
  - - "<"
86
86
  - !ruby/object:Gem::Version
87
- version: 2.0.0
87
+ version: 3.0.0
88
88
  - !ruby/object:Gem::Dependency
89
89
  name: docker-api
90
90
  requirement: !ruby/object:Gem::Requirement
@@ -238,7 +238,7 @@ homepage: https://github.com/simp/rubygem-simp-beaker-helpers
238
238
  licenses:
239
239
  - Apache-2.0
240
240
  metadata:
241
- issue_tracker: https://simp-project.atlassian.net
241
+ issue_tracker: https://github.com/simp/rubygem-simp-beaker-helpers/issues
242
242
  post_install_message:
243
243
  rdoc_options: []
244
244
  require_paths: