beaker-rspec 6.2.1 → 6.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +3 -2
- data/lib/beaker-rspec/spec_helper.rb +3 -1
- data/lib/beaker-rspec/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjAxZThjODY5NWM2YTdjZjhmMDZkYmViNGI2OWUzMDRjZmJlNzNmZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmQ4YTM4YmIwNzg1YTgxNjhlMGY3NjM0YmJmZDZjMWFkNDRmMTk4ZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzBhNTgxOGUxMTAzYzY0MWYyZTQ3ODgwOWRkOGJlODIxYmExNWNhOGVlMTBk
|
10
|
+
OWQ5NmIwODFkNzEzZTQyNDVhNzkyNDA2ODRjNWZjZDE4MzBjODA4YzAzYTVl
|
11
|
+
MDA5NDMxMjk4Nzc5NWJhZmJjODQ1ZDY0YjM1YjA0MDBlZDRiMGY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmM1Y2E5MTM3MjQ5NTQ0YTQzNjc0NGU4NzU2OTgwNTQxNDE1MmI2NmM0MjMy
|
14
|
+
Mzg2Nzg4MzljODZiYjI1ZWNiMTIxODUzNTZkNDFmZTkxMGE1ZWM2YTFiNDkx
|
15
|
+
YzE4YzlhMjRlZGMwNDRmMDg5ODdjNWRiNWEzMzlhYzJlN2JkN2E=
|
data/README.md
CHANGED
@@ -42,7 +42,8 @@ cd .vagrant/beaker_vagrant_files/default.yml ; vagrant destroy --force
|
|
42
42
|
* `BEAKER_keyfile`: specify alternate SSH key to access the test VMs
|
43
43
|
* `BEAKER_options_file`: set to the file path of the options file to be used as the default options for beaker. Equivalent to the `--options-file` parameter.
|
44
44
|
* `BEAKER_provision`: set to `no` to skip provisioning boxes before testing, beaker will then assume that boxes are already provisioned and reachable
|
45
|
-
* `
|
45
|
+
* `BEAKER_setdir`: change the directory with nodesets. Defaults to the module's `spec/acceptance/nodesets` directory.
|
46
|
+
* `BEAKER_set`: set to the name of the node file to be used during testing (exclude .yml file extension, it will be added by beaker-rspec). The file is assumed to be in the `setdir` (see `BEAKER_setdir`).
|
46
47
|
* `BEAKER_setfile` - set to the full path to a node file be used during testing (be sure to include full path and file extensions, beaker-rspec will use this path without editing/altering it in any way)
|
47
48
|
|
48
49
|
For details on the specific mappings, the [setup code](https://github.com/puppetlabs/beaker-rspec/blob/2771b4b1864692690254a969680a57ff22ac0516/lib/beaker-rspec/spec_helper.rb#L26-L32) and the [beaker docs](https://github.com/puppetlabs/beaker/blob/master/docs/tutorials/the_command_line.md).
|
@@ -73,7 +74,7 @@ Then run
|
|
73
74
|
|
74
75
|
## Create node files
|
75
76
|
|
76
|
-
These files indicate the nodes (or hosts) that the tests will be run on. By default, any node file called `default.yml` will be used. You can override this using the `BEAKER_set` environment variable to indicate an alternate file. Do not provide full path or the '.yml' file extension to `BEAKER_set`,
|
77
|
+
These files indicate the nodes (or hosts) that the tests will be run on. By default, any node file called `default.yml` will be used. You can override this using the `BEAKER_set` environment variable to indicate an alternate file. Do not provide full path or the '.yml' file extension to `BEAKER_set`, beaker-rspec expands the filename to '${DIR}/${NAME}.yml'. The directory defaults to `spec/acceptance/nodesets` but can be overridden with the `BEAKER_setdir` variable. `BEAKER_setdir` gives full control over the path (including file extension).
|
77
78
|
|
78
79
|
Nodes are pulled from [Puppet Labs Vagrant Boxes](https://vagrantcloud.com/puppetlabs).
|
79
80
|
|
@@ -25,6 +25,7 @@ RSpec.configure do |c|
|
|
25
25
|
env_vars = {
|
26
26
|
:color => ENV['BEAKER_color'] || ENV['RS_COLOR'],
|
27
27
|
:nodeset => ENV['BEAKER_set'] || ENV['RS_SET'],
|
28
|
+
:nodesetdir => ENV['BEAKER_setdir'] || ENV['RS_SETDIR'],
|
28
29
|
:nodesetfile => ENV['BEAKER_setfile'] || ENV['RS_SETFILE'],
|
29
30
|
:provision => ENV['BEAKER_provision'] || ENV['RS_PROVISION'],
|
30
31
|
:keyfile => ENV['BEAKER_keyfile'] || ENV['RS_KEYFILE'],
|
@@ -36,7 +37,8 @@ RSpec.configure do |c|
|
|
36
37
|
options = defaults.merge(env_vars)
|
37
38
|
|
38
39
|
# process options to construct beaker command string
|
39
|
-
|
40
|
+
nodesetdir = options[:nodesetdir] || dir.join('spec', 'acceptance', 'nodesets')
|
41
|
+
nodesetfile = options[:nodesetfile] || File.join(nodesetdir, "#{options[:nodeset]}.yml")
|
40
42
|
fresh_nodes = options[:provision] == 'no' ? '--no-provision' : nil
|
41
43
|
keyfile = options[:keyfile] ? ['--keyfile', options[:keyfile]] : nil
|
42
44
|
debug = options[:debug] ? ['--log-level', 'debug'] : nil
|
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: 6.2.
|
4
|
+
version: 6.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppetlabs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
196
|
version: '0'
|
197
197
|
requirements: []
|
198
198
|
rubyforge_project:
|
199
|
-
rubygems_version: 2.4.
|
199
|
+
rubygems_version: 2.4.8
|
200
200
|
signing_key:
|
201
201
|
specification_version: 4
|
202
202
|
summary: RSpec bindings for beaker
|