beaker-rspec 5.0.2 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile +19 -0
- data/HISTORY.md +70 -3
- data/beaker-rspec.gemspec +3 -1
- data/lib/beaker-rspec.rb +1 -0
- data/lib/beaker-rspec/beaker_shim.rb +11 -0
- data/lib/beaker-rspec/spec_helper.rb +2 -0
- data/lib/beaker-rspec/version.rb +5 -0
- data/spec/acceptance/example_spec.rb +12 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDk2MmQwZjRhNGYyOWIyMDg3ODc4Y2NlNjBhNzhkZjJjZTUzMDIxYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjZlM2M1Njk4YzE2NzhhZjBhZGQ3YzM2YWIxZjg3MDQ5MjI0ODFkNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTAyYjRiMzMzNmZjY2NjYzY0ZGM1OTNlNTEzZjE4YzM0YTAwYTk0YjIyOTk4
|
10
|
+
ODE3YzEzODIwZmE5ZmQ0MzBhN2I5OTY1YjIxMTVjMGZkYjQwMGRkNDNlYWRk
|
11
|
+
MmIyOGQzOTU0NjFiZGVkMzQyNGNmNWU1MTUyZmVlOWY0YmRhZjQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Mzc1ZmY0ZjRkNTRkMGU5ZmRmOGE0ZmFiNzE4NTE4YjUwODJlOGM1NGQyY2I3
|
14
|
+
NGRhYThkYTJlOTljZTlhNjk4ZmEwMWRkZGM0MjJmNTc3YTg5ZGM5ZjA5MmU5
|
15
|
+
OTA1M2U4NzE4OThiNTcxNThlZjM4MWVjZTZjZWQ1ZTAzZTNlMzk=
|
data/Gemfile
CHANGED
@@ -1,3 +1,22 @@
|
|
1
1
|
source ENV['GEM_SOURCE'] || "https://rubygems.org"
|
2
2
|
|
3
|
+
def location_for(place, fake_version = nil)
|
4
|
+
if place =~ /^(git:[^#]*)#(.*)/
|
5
|
+
[fake_version, { :git => $1, :branch => $2, :require => false }].compact
|
6
|
+
elsif place =~ /^file:\/\/(.*)/
|
7
|
+
['>= 0', { :path => File.expand_path($1), :require => false }]
|
8
|
+
else
|
9
|
+
[place, { :require => false }]
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
beaker_version = ENV['BEAKER_VERSION']
|
14
|
+
|
15
|
+
if beaker_version
|
16
|
+
gem 'beaker', *location_for(beaker_version)
|
17
|
+
else
|
18
|
+
gem 'beaker'
|
19
|
+
end
|
20
|
+
|
21
|
+
|
3
22
|
gemspec
|
data/HISTORY.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
#
|
1
|
+
# default - History
|
2
2
|
## Tags
|
3
|
-
* [LATEST -
|
3
|
+
* [LATEST - 5 Jun, 2015 (6ca92bf3)](#LATEST)
|
4
|
+
* [beaker-rspec5.0.2 - 30 Mar, 2015 (b9831088)](#beaker-rspec5.0.2)
|
4
5
|
* [beaker-rspec5.0.1 - 27 Jan, 2015 (7a64f285)](#beaker-rspec5.0.1)
|
5
6
|
* [beaker-rspec5.0.0 - 8 Jan, 2015 (bbf806a4)](#beaker-rspec5.0.0)
|
6
7
|
* [beaker-rspec4.0.0 - 5 Dec, 2014 (a4fe104a)](#beaker-rspec4.0.0)
|
@@ -18,7 +19,73 @@
|
|
18
19
|
* [beaker-rspec1.0.0 - 3 Dec, 2013 (65e89ec9)](#beaker-rspec1.0.0)
|
19
20
|
|
20
21
|
## Details
|
21
|
-
### <a name = "LATEST">LATEST -
|
22
|
+
### <a name = "LATEST">LATEST - 5 Jun, 2015 (6ca92bf3)
|
23
|
+
|
24
|
+
* (GEM) update beaker-rspec version to 5.1.0 (6ca92bf3)
|
25
|
+
|
26
|
+
* Merge pull request #69 from anodelman/host-control (44ea85b5)
|
27
|
+
|
28
|
+
|
29
|
+
```
|
30
|
+
Merge pull request #69 from anodelman/host-control
|
31
|
+
|
32
|
+
(BKR-280) ability to install pe/foss on subset of hosts
|
33
|
+
```
|
34
|
+
* (BKR-280) ability to install pe/foss on subset of hosts (612dd1ff)
|
35
|
+
|
36
|
+
|
37
|
+
```
|
38
|
+
(BKR-280) ability to install pe/foss on subset of hosts
|
39
|
+
|
40
|
+
- provide a hosts setter so that we can alter the hosts during runtime
|
41
|
+
```
|
42
|
+
* Merge pull request #68 from anodelman/standardize (4f564531)
|
43
|
+
|
44
|
+
|
45
|
+
```
|
46
|
+
Merge pull request #68 from anodelman/standardize
|
47
|
+
|
48
|
+
(BKR-286) set up beaker-rspec to use standard gem structure practices
|
49
|
+
```
|
50
|
+
* Merge pull request #67 from anodelman/add-beaker-globals (fe32bc1b)
|
51
|
+
|
52
|
+
|
53
|
+
```
|
54
|
+
Merge pull request #67 from anodelman/add-beaker-globals
|
55
|
+
|
56
|
+
(BKR-283) beaker-rspec needs access to @metadata, broken with beaker 2.12.0
|
57
|
+
```
|
58
|
+
* (BKR-286) set up beaker-rspec to use standard gem structure practices (c62996be)
|
59
|
+
|
60
|
+
|
61
|
+
```
|
62
|
+
(BKR-286) set up beaker-rspec to use standard gem structure practices
|
63
|
+
|
64
|
+
- this will allow us to use our standard release pipelines
|
65
|
+
```
|
66
|
+
* (BKR-283) beaker-rspec needs access to @metadata, broken with... (826455be)
|
67
|
+
|
68
|
+
|
69
|
+
```
|
70
|
+
(BKR-283) beaker-rspec needs access to @metadata, broken with...
|
71
|
+
|
72
|
+
...beaker 2.12.0
|
73
|
+
|
74
|
+
- add accessor for metadata
|
75
|
+
```
|
76
|
+
* (MAINT) be able to set used beaker using BEAKER_VERSION (a1b64039)
|
77
|
+
|
78
|
+
### <a name = "beaker-rspec5.0.2">beaker-rspec5.0.2 - 30 Mar, 2015 (b9831088)
|
79
|
+
|
80
|
+
* Merge pull request #62 from anodelman/master (b9831088)
|
81
|
+
|
82
|
+
|
83
|
+
```
|
84
|
+
Merge pull request #62 from anodelman/master
|
85
|
+
|
86
|
+
create 5.0.2 gem
|
87
|
+
```
|
88
|
+
* (HISTORY) update beaker-rspec history for gem release 5.0.2 (6f6cfcbf)
|
22
89
|
|
23
90
|
* (GEM) update beaker-rspec version to 5.0.2 (7de55221)
|
24
91
|
|
data/beaker-rspec.gemspec
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
$:.push File.expand_path("../lib", __FILE__)
|
3
3
|
require 'rbconfig'
|
4
|
+
require 'beaker-rspec/version'
|
5
|
+
|
4
6
|
ruby_conf = defined?(RbConfig) ? RbConfig::CONFIG : Config::CONFIG
|
5
7
|
less_than_one_nine = ruby_conf['MAJOR'].to_i == 1 && ruby_conf['MINOR'].to_i < 9
|
6
8
|
|
7
9
|
Gem::Specification.new do |s|
|
8
10
|
s.name = "beaker-rspec"
|
9
|
-
s.version =
|
11
|
+
s.version = BeakerRSpec::Version::STRING
|
10
12
|
s.authors = ["Puppetlabs"]
|
11
13
|
s.email = ["sqa@puppetlabs.com"]
|
12
14
|
s.homepage = "https://github.com/puppetlabs/beaker-rspec"
|
data/lib/beaker-rspec.rb
CHANGED
@@ -15,6 +15,12 @@ module BeakerRSpec
|
|
15
15
|
RSpec.configuration.logger
|
16
16
|
end
|
17
17
|
|
18
|
+
# Accessor for metadata
|
19
|
+
# @return Hash metadata
|
20
|
+
def metadata
|
21
|
+
RSpec.configuration.metadata
|
22
|
+
end
|
23
|
+
|
18
24
|
# Accessor for options hash
|
19
25
|
# @return Hash options
|
20
26
|
def options
|
@@ -62,6 +68,11 @@ module BeakerRSpec
|
|
62
68
|
RSpec.configuration.hosts
|
63
69
|
end
|
64
70
|
|
71
|
+
# Setter for hosts object
|
72
|
+
def hosts= v
|
73
|
+
RSpec.configuration.hosts = v
|
74
|
+
end
|
75
|
+
|
65
76
|
# Accessor for default node
|
66
77
|
# @return [Beaker::Host]
|
67
78
|
def default_node
|
@@ -10,6 +10,8 @@ RSpec.configure do |c|
|
|
10
10
|
c.add_setting :hosts, :default => []
|
11
11
|
# Define persistant options setting
|
12
12
|
c.add_setting :options, :default => {}
|
13
|
+
# Define persistant metadata object
|
14
|
+
c.add_setting :metadata, :default => {}
|
13
15
|
# Define persistant logger object
|
14
16
|
c.add_setting :logger, :default => nil
|
15
17
|
# Define persistant default node
|
@@ -8,6 +8,10 @@ describe "ignore" do
|
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
11
|
+
example "use self.host" do
|
12
|
+
self.hosts = hosts
|
13
|
+
end
|
14
|
+
|
11
15
|
example "access options hash" do
|
12
16
|
install_pe
|
13
17
|
end
|
@@ -17,6 +21,14 @@ describe "ignore" do
|
|
17
21
|
logger.notify("hi, I'm a notify message")
|
18
22
|
end
|
19
23
|
|
24
|
+
example "access the options" do
|
25
|
+
expect(options).to be_kind_of(Hash)
|
26
|
+
end
|
27
|
+
|
28
|
+
example "create a beaker dsl::step" do
|
29
|
+
step('testing that a step can be used')
|
30
|
+
end
|
31
|
+
|
20
32
|
context "has serverspec support" do
|
21
33
|
hosts.each do |node|
|
22
34
|
sshd = case node['platform']
|
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.0
|
4
|
+
version: 5.1.0
|
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-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -182,6 +182,7 @@ files:
|
|
182
182
|
- lib/beaker-rspec/helpers/serverspec.rb
|
183
183
|
- lib/beaker-rspec/rake_task.rb
|
184
184
|
- lib/beaker-rspec/spec_helper.rb
|
185
|
+
- lib/beaker-rspec/version.rb
|
185
186
|
- sample.cfg
|
186
187
|
- spec/acceptance/example_spec.rb
|
187
188
|
- spec/spec_helper.rb
|
@@ -212,3 +213,4 @@ summary: RSpec bindings for beaker
|
|
212
213
|
test_files:
|
213
214
|
- spec/acceptance/example_spec.rb
|
214
215
|
- spec/spec_helper.rb
|
216
|
+
has_rdoc:
|