puppet_litmus 0.26.1 → 0.26.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33e2e2e71e771ea419d87cee723a5e5b7741f11a233ffe379953a3502776bc2d
4
- data.tar.gz: 0ccdf33ad639e1391355c9c6f2769490167a4ea9e7c307cf635f193d51ea24a5
3
+ metadata.gz: b54d56fe9cd63b49874f5dad0646bb656ad791f45b751315770d09e9f69f7c9d
4
+ data.tar.gz: 5098a3a890f18ce448f3060323ee663834eb348b9b2000dd399e3e3678cea91f
5
5
  SHA512:
6
- metadata.gz: 6649698775dddc73e2f211bfbe5c69441fb10cee2a040bc2a475243e544467ceb3fdbe6b67ba07d79de11acdc8780132f7add4c06b9fbe97ddf03ff5e27e7543
7
- data.tar.gz: a2697302f595adb29d8c966b96170d006111a14c618f78c40d7e62b8f96e0b2fd10512d7770752a110866847f2e7d0befab904ccea1837064b94e00f7b463073
6
+ metadata.gz: acb0fc34a9fd73f2639daada9f05a6e9d7cd47727b4b652b0da90d0249d05364f9a67dd4cfb2e3f10840b26b23aec3a867b9630d13f263ce37765d774a12c187
7
+ data.tar.gz: 5ca486321dc9c226042316645cb091b35ebeb9e5ea5c6859c5a605986dae4a3552b7e88405153e3ce2238c0b1a01078c22f817763b38a2b22ee661ba5a6f41c6
@@ -69,8 +69,8 @@ module PuppetLitmus::PuppetHelpers
69
69
  end
70
70
 
71
71
  manifest_file_location = opts[:manifest_file_location] || create_manifest_file(manifest)
72
- inventory_hash = File.exist?('inventory.yaml') ? inventory_hash_from_inventory_file : localhost_inventory_hash
73
- raise "Target '#{target_node_name}' not found in inventory.yaml" unless target_in_inventory?(inventory_hash, target_node_name)
72
+ inventory_hash = File.exist?('spec/fixtures/litmus_inventory.yaml') ? inventory_hash_from_inventory_file : localhost_inventory_hash
73
+ raise "Target '#{target_node_name}' not found in spec/fixtures/litmus_inventory.yaml" unless target_in_inventory?(inventory_hash, target_node_name)
74
74
 
75
75
  span.add_field('litmus.node_name', target_node_name)
76
76
  add_platform_field(inventory_hash, target_node_name)
@@ -213,8 +213,8 @@ module PuppetLitmus::PuppetHelpers
213
213
  span.add_field('litmus.opts', opts)
214
214
 
215
215
  target_node_name = targeting_localhost? ? 'litmus_localhost' : ENV['TARGET_HOST']
216
- inventory_hash = File.exist?('inventory.yaml') ? inventory_hash_from_inventory_file : localhost_inventory_hash
217
- raise "Target '#{target_node_name}' not found in inventory.yaml" unless target_in_inventory?(inventory_hash, target_node_name)
216
+ inventory_hash = File.exist?('spec/fixtures/litmus_inventory.yaml') ? inventory_hash_from_inventory_file : localhost_inventory_hash
217
+ raise "Target '#{target_node_name}' not found in spec/fixtures/litmus_inventory.yaml" unless target_in_inventory?(inventory_hash, target_node_name)
218
218
 
219
219
  span.add_field('litmus.node_name', target_node_name)
220
220
  add_platform_field(inventory_hash, target_node_name)
@@ -252,8 +252,8 @@ module PuppetLitmus::PuppetHelpers
252
252
  span.add_field('litmus.options', options)
253
253
 
254
254
  target_node_name = targeting_localhost? ? 'litmus_localhost' : ENV['TARGET_HOST']
255
- inventory_hash = File.exist?('inventory.yaml') ? inventory_hash_from_inventory_file : localhost_inventory_hash
256
- raise "Target '#{target_node_name}' not found in inventory.yaml" unless target_in_inventory?(inventory_hash, target_node_name)
255
+ inventory_hash = File.exist?('spec/fixtures/litmus_inventory.yaml') ? inventory_hash_from_inventory_file : localhost_inventory_hash
256
+ raise "Target '#{target_node_name}' not found in spec/fixtures/litmus_inventory.yaml" unless target_in_inventory?(inventory_hash, target_node_name)
257
257
 
258
258
  span.add_field('litmus.node_name', target_node_name)
259
259
  add_platform_field(inventory_hash, target_node_name)
@@ -306,12 +306,12 @@ module PuppetLitmus::PuppetHelpers
306
306
  target_node_name = targeting_localhost? ? 'litmus_localhost' : ENV['TARGET_HOST']
307
307
  inventory_hash = if !opts[:inventory_file].nil? && File.exist?(opts[:inventory_file])
308
308
  inventory_hash_from_inventory_file(opts[:inventory_file])
309
- elsif File.exist?('inventory.yaml')
310
- inventory_hash_from_inventory_file('inventory.yaml')
309
+ elsif File.exist?('spec/fixtures/litmus_inventory.yaml')
310
+ inventory_hash_from_inventory_file('spec/fixtures/litmus_inventory.yaml')
311
311
  else
312
312
  localhost_inventory_hash
313
313
  end
314
- raise "Target '#{target_node_name}' not found in inventory.yaml" unless target_in_inventory?(inventory_hash, target_node_name)
314
+ raise "Target '#{target_node_name}' not found in spec/fixtures/litmus_inventory.yaml" unless target_in_inventory?(inventory_hash, target_node_name)
315
315
 
316
316
  span.add_field('litmus.node_name', target_node_name)
317
317
  add_platform_field(inventory_hash, target_node_name)
@@ -371,8 +371,8 @@ module PuppetLitmus::PuppetHelpers
371
371
  span.add_field('litmus.arguments', arguments)
372
372
 
373
373
  target_node_name = targeting_localhost? ? 'litmus_localhost' : ENV['TARGET_HOST']
374
- inventory_hash = File.exist?('inventory.yaml') ? inventory_hash_from_inventory_file : localhost_inventory_hash
375
- raise "Target '#{target_node_name}' not found in inventory.yaml" unless target_in_inventory?(inventory_hash, target_node_name)
374
+ inventory_hash = File.exist?('spec/fixtures/litmus_inventory.yaml') ? inventory_hash_from_inventory_file : localhost_inventory_hash
375
+ raise "Target '#{target_node_name}' not found in spec/fixtures/litmus_inventory.yaml" unless target_in_inventory?(inventory_hash, target_node_name)
376
376
 
377
377
  span.add_field('litmus.node_name', target_node_name)
378
378
  add_platform_field(inventory_hash, target_node_name)
@@ -2,5 +2,5 @@
2
2
 
3
3
  # version of this gem
4
4
  module PuppetLitmus
5
- VERSION ||= '0.26.1'
5
+ VERSION ||= '0.26.2'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet_litmus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.1
4
+ version: 0.26.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet, Inc.