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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjMzOTU5OGJjMmVmNTBhZDMxZjc2YjQ1OWI4NTU2ZTJlZGE5NmExZg==
4
+ MjAxZThjODY5NWM2YTdjZjhmMDZkYmViNGI2OWUzMDRjZmJlNzNmZA==
5
5
  data.tar.gz: !binary |-
6
- ZDUzYzExYTFmYTM4NzZkNmVlODA5MDcyMDZjYmM1Y2RhMTJiYzg0MQ==
6
+ ZmQ4YTM4YmIwNzg1YTgxNjhlMGY3NjM0YmJmZDZjMWFkNDRmMTk4ZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDJmMzEwNTJhOGE0YTFjOGM4YWM3ZDhjYjUzNmM4NDE1YzY4ODQzNWY5ZDM0
10
- MTFlMmQwMjAzMmYzZjY2ODE1ZTQwYTczYjIzY2M2OTVhODk5ZjhjZjAyZmY5
11
- ZGEzNGZlNjZlZTJlZGNmMDIyZTNmMmE3ZTgzN2NiNDk4NDgyOGQ=
9
+ NzBhNTgxOGUxMTAzYzY0MWYyZTQ3ODgwOWRkOGJlODIxYmExNWNhOGVlMTBk
10
+ OWQ5NmIwODFkNzEzZTQyNDVhNzkyNDA2ODRjNWZjZDE4MzBjODA4YzAzYTVl
11
+ MDA5NDMxMjk4Nzc5NWJhZmJjODQ1ZDY0YjM1YjA0MDBlZDRiMGY=
12
12
  data.tar.gz: !binary |-
13
- OTdiMzg4MDI5NDdiZDI0MjYzZmQzMTRlMTc0NjNlMDA4NGEyMThkZTg1N2Y4
14
- ZDk3OTVjYTZlMjcwOTAyYjA0MDIzNzBiMmFmZTNkZjYyMWYxOTA1NmZjY2Nh
15
- YjRmNzgyOTExZDE0NTRmN2MxOGQ4ODdiNTg1YjgyNjM1ODlmM2Q=
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
- * `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 module's spec/acceptance/nodesets directory.
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`, it is assumed to be located in 'spec/acceptance/nodesets/${NAME}.yml' by beaker-rspec. If you wish to use a completely different file location use `BEAKER_setfile` and set it to the full path (including file extension) of your hosts file.
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
- nodesetfile = options[:nodesetfile] || File.join('spec/acceptance/nodesets',"#{options[:nodeset]}.yml")
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
@@ -1,5 +1,5 @@
1
1
  module BeakerRSpec
2
2
  module Version
3
- STRING = '6.2.1'
3
+ STRING = '6.2.2'
4
4
  end
5
5
  end
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.1
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-10-03 00:00:00.000000000 Z
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.6
199
+ rubygems_version: 2.4.8
200
200
  signing_key:
201
201
  specification_version: 4
202
202
  summary: RSpec bindings for beaker