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 +8 -8
- data/HISTORY.md +34 -2
- data/lib/beaker/dsl/helpers/puppet_helpers.rb +17 -1
- data/lib/beaker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWIxODZmNmI0MzNjNWYwZDVlYjk0NmQyNGNiYjJlOThmMDIxY2MzYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDEzZjdlYzQyMWEwZjNjY2Y1Mzk5NDRiODhkYzYwNzU3NzZiZDM3Mw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDYwYmY3M2FkMDNmMDhiZjg4ZmZlZGY4YmZkMmM4Njc1OTQxYmQ5MDQxZDkx
|
10
|
+
NmU1YmQ1NjdkMjczYjExMmIzODBjZGNjNWM2NDI1ZWMwZmU2ZTliNGM3MzYz
|
11
|
+
MzVkZGE0YmQ5M2U2YjhlMTliY2U0ZWQ3YmNjZTQwMDFkNzI1OTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjcwMTliODIwMjlhMTA3NTgwYTViYmY4OGUyNDhkNDM2OWNlYzllYmZmZTdk
|
14
|
+
MjNkOTAyNWNiMTJhMDc3NWQ0ZGIyMjA2MDM0OTQ5ODc5ZjUxODdhNWU4YjU0
|
15
|
+
N2I1MWYzYmEyYTJlMmUxOWVjMDMzMzFjMGM5NzYwYmM3NGQ4Y2Y=
|
data/HISTORY.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# default - History
|
2
2
|
## Tags
|
3
|
-
* [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 -
|
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
|
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
|
data/lib/beaker/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|