beaker-rspec 5.2.0 → 5.2.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
- MjZkMDY0NTQ2YWM4OWMxNGNjN2VlZGU1MTFhZTM1MTIzODJmODhhOA==
4
+ ZDZmMDljM2NlYjYwNDRiYjkzMzUzNDA4N2EwNDEyMTFlNjE3YzlkYw==
5
5
  data.tar.gz: !binary |-
6
- ZDk0MmQ0OTc4OGFlMzk3ZjhmNmIxYzY5NjI1N2QzYTZlYWUxNmJmYw==
6
+ ZjgxY2RmYzgxNjRkZGIxODRiYWYzMzhiYjkzMTMzMmU5MmM5MzMwOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzJhZWZiNjk0ZGRmOTZkYWY4YWI3YzgxNGQxZTI0NzkxYTM1OGUwMjczYTFj
10
- NTdhZTAzNmQyY2Y2NDRkMWNlOTFjYmI0YmI4ODQ4ZTUxZDAzYjA2NDMwY2Ni
11
- OGUzMWZmM2NmODlmZDUwYmM2NDkyNmQwN2I5M2RkZDUzNWExNDU=
9
+ MDk5MzI5M2QzMjllOTdhNGU0MmVlYjdhM2ZkMWQ1ZjhmZmE4ODA0NGMzZDEy
10
+ NzQwNjNkNmM5YmY3NTQ4ZWE0NzFiY2Y4NTIxYmIyY2Y5YTY0MDRiZTAzNTNh
11
+ Yjk4NGFhZTJkMDUwOTA4OWNkZjA3YjU5Mjk4MWVhNzgwOTIwNWY=
12
12
  data.tar.gz: !binary |-
13
- M2ExNGU1ODg1N2VkOTM0NjNiNDUyYmZhNzg5MTk5OGM5YzQwODE1OTIzZTcz
14
- ODEzZjIzNDhhNTUzYjE1ZTVmMjBlZjI4M2VjNWRjNWExNTEyY2RmZTFkNjI3
15
- NTQwZDgwMmEwNzQ4YzU3YzRlMGExYWNmM2NmN2NkYjRhNGY4ZWE=
13
+ OWY4MjQ4YTc5ZmE3NDhjODIxNTQ0NWM1MzQxZDhhYzY0NjI3MzgyZjM5ODI2
14
+ YWVmZWNiZTU2ZGE1MzgwMTg0ZjE5ZDIzZTE1NDYwOWNjNDVjOTYzM2JiNmJk
15
+ Y2UzNWRmMjk0OGM3ZjA0MmEwNjAyY2YwMDIyZjJjYmU4OTQ5ZjI=
data/HISTORY.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # default - History
2
2
  ## Tags
3
- * [LATEST - 15 Jul, 2015 (25f27502)](#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 - 15 Jul, 2015 (25f27502)
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.shellescape}"
279
+ cmd = "#{String(useshell).shellescape} -c \"#{String(cmd)}\""
269
280
 
270
281
  path = Specinfra.configuration.path
271
282
  if path
@@ -1,5 +1,5 @@
1
1
  module BeakerRSpec
2
2
  module Version
3
- STRING = '5.2.0'
3
+ STRING = '5.2.1'
4
4
  end
5
5
  end
@@ -32,7 +32,7 @@ describe "ignore" do
32
32
  context "has serverspec support" do
33
33
  hosts.each do |node|
34
34
  sshd = case node['platform']
35
- when /windows|el-|redhat|centos|debian/
35
+ when /windows|el-|redhat|centos/
36
36
  'sshd'
37
37
  else
38
38
  'ssh'
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.0
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-07-15 00:00:00.000000000 Z
11
+ date: 2015-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest