puppet_litmus 0.34.4 → 0.34.5

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: 21b176fc42e18b27c2ce84b87c2a622b58f7de8e61eea8b1f259e27b98e59fdd
4
- data.tar.gz: f96badf41e2e98d41742697cf1c9fa450ad179fb3ef40ba7cacdf6f1f5161b14
3
+ metadata.gz: ff985b189104c3cbf55d310c602ea525c4ea40a7ad066ed2b0fe078488012416
4
+ data.tar.gz: 1bbb7872b1850112936d8222bdeaa71f966da7fa29865950b7a334231e49285b
5
5
  SHA512:
6
- metadata.gz: 4d5239cfd399477beac0da9d42e861ced3b312c265b2f9551db64d18276329350c840c5c1733d542d0c129e254f7c426dbc6f5d2ea182ea39536044d774752d6
7
- data.tar.gz: 858ccb6e2726c3fb5f23d05747037082c82a4871b22695ced1284bd79fe845b4387163a79e219d4898ff5593d11adf5dd608ae36d1666cddb07b57dc81b7e4fa
6
+ metadata.gz: 984af2490dbd1e17592b2856bd530ddb68e4ee133653157646d110161f4400963d8bb12da097f597981ee191834416544a6b27d5b4bff6586264b31d9b4a6326
7
+ data.tar.gz: a7d440fd1b7678efecaec60147fa1672850c93d376fc808f7a25ca58a1f074c3106433acaa68a2015af201beee81f860b3e7dc96c7d02f50119f51f81cb0c9e6
@@ -11,9 +11,8 @@ IMAGE_TABLE = {
11
11
  'RedHat-9' => 'rhel-9',
12
12
  'SLES-12' => 'sles-12',
13
13
  'SLES-15' => 'sles-15',
14
- # 'Windows-2012 R2' => 'windows-2012-r2-core',
15
14
  'Windows-2016' => 'windows-2016',
16
- 'Windows-2019' => 'windows-2019-core',
15
+ 'Windows-2019' => 'windows-2019',
17
16
  'Windows-2022' => 'windows-2022',
18
17
  }.freeze
19
18
 
@@ -231,11 +231,11 @@ module PuppetLitmus::RakeHelper
231
231
  def configure_path(inventory_hash)
232
232
  results = []
233
233
  # fix the path on ssh_nodes
234
- unless inventory_hash['groups'].select { |group| group['name'] == 'ssh_nodes' && !group['targets'].empty? }.size.zero?
234
+ unless inventory_hash['groups'].select { |group| group['name'] == 'ssh_nodes' && !group['targets'].empty? }.empty?
235
235
  results << run_command('echo PATH="$PATH:/opt/puppetlabs/puppet/bin" > /etc/environment',
236
236
  'ssh_nodes', config: nil, inventory: inventory_hash)
237
237
  end
238
- unless inventory_hash['groups'].select { |group| group['name'] == 'winrm_nodes' && !group['targets'].empty? }.size.zero?
238
+ unless inventory_hash['groups'].select { |group| group['name'] == 'winrm_nodes' && !group['targets'].empty? }.empty?
239
239
  results << run_command('[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files\Puppet Labs\Puppet\bin;C:\Program Files (x86)\Puppet Labs\Puppet\bin", "Machine")',
240
240
  'winrm_nodes', config: nil, inventory: inventory_hash)
241
241
  end
@@ -377,7 +377,7 @@ module PuppetLitmus::RakeHelper
377
377
  end
378
378
  span.add_field('litmus.connectivity_success', results.select { |r| r['status'] == 'success' })
379
379
  span.add_field('litmus.connectivity_failure', results.reject { |r| r['status'] == 'success' })
380
- raise "Connectivity has failed on: #{failed}" unless failed.length.zero?
380
+ raise "Connectivity has failed on: #{failed}" unless failed.empty?
381
381
 
382
382
  puts 'Connectivity check PASSED.'
383
383
  true
@@ -328,7 +328,7 @@ namespace :litmus do
328
328
  end
329
329
  puts ''
330
330
  # output the things that went wrong, after the successes
331
- puts 'something went wrong:' unless bad_results.size.zero?
331
+ puts 'something went wrong:' unless bad_results.empty?
332
332
  bad_results.each do |result|
333
333
  puts result
334
334
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # version of this gem
4
4
  module PuppetLitmus
5
- VERSION ||= '0.34.4'
5
+ VERSION ||= '0.34.5'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet_litmus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.4
4
+ version: 0.34.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-23 00:00:00.000000000 Z
11
+ date: 2023-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bolt
@@ -209,23 +209,23 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
209
  - !ruby/object:Gem::Version
210
210
  version: '0'
211
211
  requirements: []
212
- rubygems_version: 3.0.3
212
+ rubygems_version: 3.1.6
213
213
  signing_key:
214
214
  specification_version: 4
215
215
  summary: Providing a simple command line tool for puppet content creators, to enable
216
216
  simple and complex test deployments.
217
217
  test_files:
218
- - spec/spec_helper.rb
219
- - spec/support/inventory.rb
220
- - spec/support/inventorytesting.yaml
221
- - spec/lib/puppet_litmus/rake_tasks_spec.rb
222
- - spec/lib/puppet_litmus/puppet_litmus_version_spec.rb
223
- - spec/lib/puppet_litmus/util_spec.rb
224
- - spec/lib/puppet_litmus/inventory_manipulation_spec.rb
225
- - spec/lib/puppet_litmus/rake_helper_spec.rb
226
- - spec/lib/puppet_litmus/puppet_helpers_spec.rb
227
218
  - spec/exe/fake_metadata.json
228
219
  - spec/exe/matrix_from_metadata_v2_spec.rb
229
220
  - spec/data/doot.tar.gz
230
221
  - spec/data/jim.yaml
231
222
  - spec/data/inventory.yaml
223
+ - spec/lib/puppet_litmus/puppet_litmus_version_spec.rb
224
+ - spec/lib/puppet_litmus/rake_helper_spec.rb
225
+ - spec/lib/puppet_litmus/inventory_manipulation_spec.rb
226
+ - spec/lib/puppet_litmus/util_spec.rb
227
+ - spec/lib/puppet_litmus/puppet_helpers_spec.rb
228
+ - spec/lib/puppet_litmus/rake_tasks_spec.rb
229
+ - spec/spec_helper.rb
230
+ - spec/support/inventory.rb
231
+ - spec/support/inventorytesting.yaml