beaker 1.6.1 → 1.6.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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTQ4ODgxMDM2MzRiMmY2NDRiODAyYTIxYTYwYjAwNjVlMTliYjc3MQ==
4
+ Y2IxZWQ2ODlhMWE0MTg5MGE5OWZiOGU2YWNjZjRhM2MxMThkMGFkZA==
5
5
  data.tar.gz: !binary |-
6
- ZDY3ZTU5YTRjYmE4MTg0YmNjNWM3MDQzYWFhNWZlMDk5YTI2Yzk3Zg==
6
+ ZGY4NWZkMzc0ZGI5MmQwODNiMmI1ZGNmY2Y0ZTNhOGFhNWY3YTA4YQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDc2Yzk0N2UwNTkxMWE0M2Y4ZjhkMjE2ZWRhNTNkMTk1MDRiMGJjYTM5YmNm
10
- NzkxMzkxZTU4NmJmNTk1ZTdhZGQ3MWZjYWNjZTkyNGE5Mjg2NTAzMDM5MDZi
11
- MDIyM2JiMTQ2NTc1NjBkOTYyNDE1MjhlZGY5NjljOWRkODMyYjQ=
9
+ OWZhY2Q3ZTExMzI1OTI5NmRjYzVhOGNiNWI5YzhhYjEyNzFlYjM4YTJhMmI5
10
+ YTAzZWM2YWVkNDU1N2EwNjIyZGNjODk1NjZjODI5OTkwMzI3ZDExY2RkMTAy
11
+ ZjU5NDA3NzA1YWZhN2Y2YTI2YjJiZThkMzNhODA2ZDcxYWVlYTg=
12
12
  data.tar.gz: !binary |-
13
- ZmM4OTIzODc2MTBlMDI4OTJlZjQ5N2M3YjkzYzliNjVmNmEyZjdiY2M2ZGJi
14
- OTU2MGJmOTkwMjQxYzUwMWU0ZmQzNTJiN2VmOWU2ZjRkNzAzNDE2NTY5ZGVj
15
- NDVjOWIxYTBhM2Q0MzY5NDBmMmI1YjIzOWQxOTM5ZTI5Nzg2ZDk=
13
+ ZWJiYzg2MGY5MWU1OTVmMzUxYTNkYzVkODJjNTBkOWYzMzgxMTkzMTFkODll
14
+ YzY2ZDBmNjhlZTMzMWY3ZGFhYWU1ODQ4NWUwMGE2MzIzMWJlODg5OTBlODZj
15
+ OTk3YzM1ZWZkMmRjNTg0NjMzMmExYjMwNzM1YTJmY2U1OTk2YjI=
@@ -674,6 +674,13 @@ module Beaker
674
674
  # validation, etc.
675
675
  #
676
676
  def apply_manifest_on(host, manifest, opts = {}, &block)
677
+ if host.is_a?(Array)
678
+ host.each do |h|
679
+ apply_manifest_on(h, manifest, opts, &block)
680
+ end
681
+ return
682
+ end
683
+
677
684
  on_options = {}
678
685
  on_options[:acceptable_exit_codes] = Array(opts.delete(:acceptable_exit_codes))
679
686
  args = ["--verbose"]
@@ -1,5 +1,5 @@
1
1
  module Beaker
2
2
  module Version
3
- STRING = '1.6.1'
3
+ STRING = '1.6.2'
4
4
  end
5
5
  end
@@ -309,6 +309,24 @@ describe ClassMixedWithDSLHelpers do
309
309
 
310
310
  subject.apply_manifest_on( agent, 'class { "boo": }')
311
311
  end
312
+
313
+ it 'accepts an array of hosts' do
314
+ the_hosts = [master, agent]
315
+
316
+ subject.should_receive( :create_remote_file ).twice.and_return( true )
317
+ the_hosts.each do |host|
318
+ subject.should_receive( :puppet ).
319
+ with( 'apply', '--verbose', host.to_s ).
320
+ and_return( 'puppet_command' )
321
+
322
+ subject.should_receive( :on ).
323
+ with( host, 'puppet_command',
324
+ :acceptable_exit_codes => [0] ).ordered
325
+ end
326
+
327
+ subject.apply_manifest_on( the_hosts, 'include foobar')
328
+ end
329
+
312
330
  it 'adds acceptable exit codes with :catch_failures' do
313
331
  subject.should_receive( :create_remote_file ).and_return( true )
314
332
  subject.should_receive( :puppet ).
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs