beaker 2.48.0 → 2.48.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDM0MmY4ZTg1ODM1YzAyY2YzYTYzOTkzMDdlMDg0OTU0ZTNlMmRhNg==
4
+ MWIxODZmNmI0MzNjNWYwZDVlYjk0NmQyNGNiYjJlOThmMDIxY2MzYw==
5
5
  data.tar.gz: !binary |-
6
- MzI5YzAyNTNkOWE2N2M5ZDE2MTA5NGQ3ZjE3MzE3ZmU4MWZlYzA3NA==
6
+ ZDEzZjdlYzQyMWEwZjNjY2Y1Mzk5NDRiODhkYzYwNzU3NzZiZDM3Mw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWVkNTFjZjQ4ZmQ1ZjJiYzhmM2ZkMDE2NDAyODM4ZTYwOGFmZmRjYTUzZjQw
10
- ZWVlMzBmZjAzOGY1OGYxZWFjMzkyOTM4MDBlODU2MTdhNDEyMzljMDYwZWY5
11
- Zjk4Mjk2MzczMmJkN2U0MWNlZjdmMmY1Njc4OWRkOGIwNzI0OGE=
9
+ NDYwYmY3M2FkMDNmMDhiZjg4ZmZlZGY4YmZkMmM4Njc1OTQxYmQ5MDQxZDkx
10
+ NmU1YmQ1NjdkMjczYjExMmIzODBjZGNjNWM2NDI1ZWMwZmU2ZTliNGM3MzYz
11
+ MzVkZGE0YmQ5M2U2YjhlMTliY2U0ZWQ3YmNjZTQwMDFkNzI1OTE=
12
12
  data.tar.gz: !binary |-
13
- ZGRhMTg4MTQ5NTFiMDIxY2VmNGNlNTdkODg4NDY5YThkZDJmZTk1ZTUzODNh
14
- YTZlNmI4MDY3YzQ0MDE4YjJhYzkxMjVmYWExZjU1M2NiNGUzOTU4NGI1Mzc3
15
- OWVkN2RmZDJlMjU3MTZiNDJjOGRiYmVhYzdjNzM2MWFlMzhlMGY=
13
+ ZjcwMTliODIwMjlhMTA3NTgwYTViYmY4OGUyNDhkNDM2OWNlYzllYmZmZTdk
14
+ MjNkOTAyNWNiMTJhMDc3NWQ0ZGIyMjA2MDM0OTQ5ODc5ZjUxODdhNWU4YjU0
15
+ N2I1MWYzYmEyYTJlMmUxOWVjMDMzMzFjMGM5NzYwYmM3NGQ4Y2Y=
data/HISTORY.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # default - History
2
2
  ## Tags
3
- * [LATEST - 27 Jul, 2016 (f4d394e2)](#LATEST)
3
+ * [LATEST - 29 Jul, 2016 (90d15165)](#LATEST)
4
+ * [2.48.0 - 27 Jul, 2016 (47d3aa18)](#2.48.0)
4
5
  * [2.47.1 - 15 Jul, 2016 (da89c35b)](#2.47.1)
5
6
  * [2.47.0 - 13 Jul, 2016 (bf4cbcf0)](#2.47.0)
6
7
  * [2.46.0 - 8 Jul, 2016 (3a650c95)](#2.46.0)
@@ -125,7 +126,38 @@
125
126
  * [pe1.2 - 6 Sep, 2011 (ba3dadd2)](#pe1.2)
126
127
 
127
128
  ## Details
128
- ### <a name = "LATEST">LATEST - 27 Jul, 2016 (f4d394e2)
129
+ ### <a name = "LATEST">LATEST - 29 Jul, 2016 (90d15165)
130
+
131
+ * (GEM) update beaker version to 2.48.1 (90d15165)
132
+
133
+ * Merge pull request #1201 from johnduarte/bkr847-hotfix (7fb5c7fa)
134
+
135
+
136
+ ```
137
+ Merge pull request #1201 from johnduarte/bkr847-hotfix
138
+
139
+ (BKR-847) Fix with_host_stubbed_on
140
+ ```
141
+ * (BKR-847) Fix with_host_stubbed_on (fa454e8e)
142
+
143
+
144
+ ```
145
+ (BKR-847) Fix with_host_stubbed_on
146
+
147
+ Prior to this commit, the `@teardown_procs` value was not being created
148
+ to handle the teardown referenced by calling `stub_hosts_on` within
149
+ `with_host_stubbed_on`. This commit removes the reference to the method
150
+ and adds in the desired code directly.
151
+
152
+ The `stub_hosts_on` method includes a `teardown` step to allow for the
153
+ removal of the hosts stub after the test is concluded. The `teardown`
154
+ method is incompatible with `beaker_rspec`. Therefore, modules tests using
155
+ `beaker_rspec` use the `with_host_stubbed_on` method that does not utilize
156
+ this feature.
157
+ ```
158
+ ### <a name = "2.48.0">2.48.0 - 27 Jul, 2016 (47d3aa18)
159
+
160
+ * (HISTORY) update beaker history for gem release 2.48.0 (47d3aa18)
129
161
 
130
162
  * (GEM) update beaker version to 2.48.0 (f4d394e2)
131
163
 
@@ -547,7 +547,23 @@ module Beaker
547
547
  def with_host_stubbed_on(host, ip_spec, alias_spec={}, &block)
548
548
  begin
549
549
  block_on host do |host|
550
- stub_hosts_on(host, ip_spec, alias_spec)
550
+ # this code is duplicated from the `stub_hosts_on` method. The
551
+ # `stub_hosts_on` method itself is not used here because this
552
+ # method is used by modules tests using `beaker-rspec`. Since
553
+ # the `stub_hosts_on` method contains a `teardown` step, it is
554
+ # incompatible with `beaker_rspec`.
555
+ ip_spec.each do |address, ip|
556
+ aliases = alias_spec[address] || []
557
+ manifest =<<-EOS.gsub /^\s+/, ""
558
+ host { '#{address}':
559
+ \tensure => present,
560
+ \tip => '#{ip}',
561
+ \thost_aliases => #{aliases},
562
+ }
563
+ EOS
564
+ logger.notify("Stubbing address #{address} to IP #{ip} on machine #{host}")
565
+ apply_manifest_on( host, manifest )
566
+ end
551
567
  end
552
568
 
553
569
  block.call
@@ -1,5 +1,5 @@
1
1
  module Beaker
2
2
  module Version
3
- STRING = '2.48.0'
3
+ STRING = '2.48.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.48.0
4
+ version: 2.48.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-27 00:00:00.000000000 Z
11
+ date: 2016-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec