beaker-rspec 5.2.0 → 5.2.1
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 +8 -8
- data/HISTORY.md +35 -2
- data/lib/beaker-rspec/helpers/serverspec.rb +12 -1
- data/lib/beaker-rspec/version.rb +1 -1
- data/spec/acceptance/example_spec.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
|
+
ZDZmMDljM2NlYjYwNDRiYjkzMzUzNDA4N2EwNDEyMTFlNjE3YzlkYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjgxY2RmYzgxNjRkZGIxODRiYWYzMzhiYjkzMTMzMmU5MmM5MzMwOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDk5MzI5M2QzMjllOTdhNGU0MmVlYjdhM2ZkMWQ1ZjhmZmE4ODA0NGMzZDEy
|
10
|
+
NzQwNjNkNmM5YmY3NTQ4ZWE0NzFiY2Y4NTIxYmIyY2Y5YTY0MDRiZTAzNTNh
|
11
|
+
Yjk4NGFhZTJkMDUwOTA4OWNkZjA3YjU5Mjk4MWVhNzgwOTIwNWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWY4MjQ4YTc5ZmE3NDhjODIxNTQ0NWM1MzQxZDhhYzY0NjI3MzgyZjM5ODI2
|
14
|
+
YWVmZWNiZTU2ZGE1MzgwMTg0ZjE5ZDIzZTE1NDYwOWNjNDVjOTYzM2JiNmJk
|
15
|
+
Y2UzNWRmMjk0OGM3ZjA0MmEwNjAyY2YwMDIyZjJjYmU4OTQ5ZjI=
|
data/HISTORY.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# default - History
|
2
2
|
## Tags
|
3
|
-
* [LATEST -
|
3
|
+
* [LATEST - 27 Aug, 2015 (2cc63fcb)](#LATEST)
|
4
|
+
* [5.2.0 - 15 Jul, 2015 (261dacdb)](#5.2.0)
|
4
5
|
* [5.1.0 - 5 Jun, 2015 (3a72d131)](#5.1.0)
|
5
6
|
* [beaker-rspec5.0.2 - 30 Mar, 2015 (b9831088)](#beaker-rspec5.0.2)
|
6
7
|
* [beaker-rspec5.0.1 - 27 Jan, 2015 (7a64f285)](#beaker-rspec5.0.1)
|
@@ -20,7 +21,39 @@
|
|
20
21
|
* [beaker-rspec1.0.0 - 3 Dec, 2013 (65e89ec9)](#beaker-rspec1.0.0)
|
21
22
|
|
22
23
|
## Details
|
23
|
-
### <a name = "LATEST">LATEST -
|
24
|
+
### <a name = "LATEST">LATEST - 27 Aug, 2015 (2cc63fcb)
|
25
|
+
|
26
|
+
* (GEM) update beaker-rspec version to 5.2.1 (2cc63fcb)
|
27
|
+
|
28
|
+
* Merge pull request #72 from anodelman/ruby2 (86157a9d)
|
29
|
+
|
30
|
+
|
31
|
+
```
|
32
|
+
Merge pull request #72 from anodelman/ruby2
|
33
|
+
|
34
|
+
(BKR-467) beaker-rspec does not correctly update os when cycling through hosts
|
35
|
+
```
|
36
|
+
* (BKR-467) beaker-rspec does not correctly update os when cycling... (a6b3e503)
|
37
|
+
|
38
|
+
|
39
|
+
```
|
40
|
+
(BKR-467) beaker-rspec does not correctly update os when cycling...
|
41
|
+
|
42
|
+
...through hosts
|
43
|
+
|
44
|
+
- found that beaker was unable to complete its acceptance tests when
|
45
|
+
provided with multiple SUTs of multiple os types in the same hosts
|
46
|
+
file
|
47
|
+
- need to correctly detectos when we switch to a new os, otherwise we
|
48
|
+
assume that we are executing on the same os and generate the wrong
|
49
|
+
command strings
|
50
|
+
- keeps a hash of known hosts associated with their os type so that we
|
51
|
+
don't have to run detect_os (which can be somewhat time expensive)
|
52
|
+
more than once per-SUT
|
53
|
+
```
|
54
|
+
### <a name = "5.2.0">5.2.0 - 15 Jul, 2015 (261dacdb)
|
55
|
+
|
56
|
+
* (HISTORY) update beaker-rspec history for gem release 5.2.0 (261dacdb)
|
24
57
|
|
25
58
|
* (GEM) update beaker-rspec version to 5.2.0 (25f27502)
|
26
59
|
|
@@ -61,6 +61,17 @@ module Specinfra
|
|
61
61
|
end
|
62
62
|
|
63
63
|
module Specinfra::Helper::Os
|
64
|
+
|
65
|
+
@@known_nodes = {}
|
66
|
+
|
67
|
+
def os
|
68
|
+
working_node_name = get_working_node.to_s
|
69
|
+
if !@@known_nodes[working_node_name] # haven't seen this yet, better detect the os
|
70
|
+
@@known_nodes[working_node_name] = property[:os] = detect_os
|
71
|
+
end
|
72
|
+
@@known_nodes[working_node_name]
|
73
|
+
end
|
74
|
+
|
64
75
|
private
|
65
76
|
|
66
77
|
# Override detect_os to look at the node platform, short circuit discoverability
|
@@ -265,7 +276,7 @@ module Specinfra::Backend
|
|
265
276
|
def build_command(cmd)
|
266
277
|
useshell = '/bin/sh'
|
267
278
|
cmd = cmd.shelljoin if cmd.is_a?(Array)
|
268
|
-
cmd = "#{useshell.shellescape} -c #{cmd
|
279
|
+
cmd = "#{String(useshell).shellescape} -c \"#{String(cmd)}\""
|
269
280
|
|
270
281
|
path = Specinfra.configuration.path
|
271
282
|
if path
|
data/lib/beaker-rspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.2.
|
4
|
+
version: 5.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppetlabs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|