beaker-rspec 6.2.4 → 6.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6c23ac7bea3f88d402a714539d3bab97aa95fecc
4
- data.tar.gz: d0974caa0f09cb592390ed69034abe9e2746b3fe
2
+ SHA256:
3
+ metadata.gz: 20eed9cdf4d73abdff3288faeafa0bc2fb6cdef267ac8b7c77274a36ca8879bd
4
+ data.tar.gz: 9a7c150ebed5fcaea176fdc551726be8b00f12719236e4a42edff4484c56e823
5
5
  SHA512:
6
- metadata.gz: edf7d29e814b9ba40f3c5459354b88017dac88d121612174be5edfefc23f56b9ed38252a693d13b9f9a7463cfd7229d68a29d692bbedc7300ded4d2e1aacad7d
7
- data.tar.gz: dc1f86bcfbc251b71fd0a2ec3e3f28e6ce474bd514d8561510ed7fbca70e240b87182b31802c92ced18b7b07d96937ddb8c375371284c7eb1f5699c7b744f36a
6
+ metadata.gz: ef5f1efa8854efc43980c6c4e72fe84f5db4f66f2dfe362e502fbd5f5b1210f23c28749d4d3649606f2eacf2e57792871ea7e4781d7162b92dd5683438e4e03e
7
+ data.tar.gz: 5eae3992b56f4d4946adffd7dd743f0254ec29a690843b6a604f4540fcde532d1d97bce8c7d2ac8553f8e096070de8859cd2305583593fe7cd3d2413972634a5
@@ -0,0 +1,8 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "13:00"
8
+ open-pull-requests-limit: 10
@@ -0,0 +1,29 @@
1
+ name: Test
2
+
3
+ on:
4
+ - pull_request
5
+
6
+ jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+ strategy:
10
+ fail-fast: false
11
+ matrix:
12
+ ruby:
13
+ - "2.4"
14
+ - "2.5"
15
+ - "2.6"
16
+ - "2.7"
17
+ - "3.0"
18
+ env:
19
+ BUNDLE_WITHOUT: release
20
+ name: Ruby ${{ matrix.ruby }}
21
+ steps:
22
+ - uses: actions/checkout@v2
23
+ - name: Install Ruby ${{ matrix.ruby }}
24
+ uses: ruby/setup-ruby@v1
25
+ with:
26
+ ruby-version: ${{ matrix.ruby }}
27
+ bundler-cache: true
28
+ - name: Verify gem builds
29
+ run: bundle exec gem build beaker-rspec.gemspec
data/Gemfile CHANGED
@@ -21,4 +21,8 @@ end
21
21
  # For running the spec/acceptance/example_spec.rb
22
22
  gem 'beaker-vagrant'
23
23
 
24
+ # Dependencies for CI acceptance testing; TODO: fix CI so this can be removed
25
+ gem 'beaker-hostgenerator'
26
+ gem 'beaker-vmpooler', '~> 1.3'
27
+
24
28
  gemspec
data/README.md CHANGED
@@ -80,7 +80,7 @@ Nodes are pulled from [Puppet Labs Vagrant Boxes](https://vagrantcloud.com/puppe
80
80
 
81
81
  Example node files can be found here:
82
82
 
83
- * [Puppet Labs example Vagrant node files](https://github.com/puppetlabs/beaker/blob/master/docs/how_to/hypervisors/vagrant_hosts_file_examples.md)
83
+ * [Puppet Labs example Vagrant node files](https://github.com/puppetlabs/beaker-vagrant/blob/master/docs/vagrant_hosts_file_examples.md)
84
84
 
85
85
  Create the nodesets directory. From module's top level directory:
86
86
 
data/beaker-rspec.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.description = %q{RSpec bindings for beaker, see https://github.com/puppetlabs/beaker}
13
13
  s.license = 'Apache-2.0'
14
14
 
15
- s.required_ruby_version = Gem::Requirement.new('>= 2.1.8', '<3.0.0')
15
+ s.required_ruby_version = Gem::Requirement.new('>= 2.1.8', '<4.0.0')
16
16
 
17
17
  s.files = `git ls-files`.split("\n")
18
18
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -33,6 +33,9 @@ Gem::Specification.new do |s|
33
33
  s.add_development_dependency 'yard'
34
34
  s.add_development_dependency 'thin'
35
35
 
36
+ # Dependency for example spec/acceptance tests
37
+ s.add_runtime_dependency 'beaker-pe'
38
+
36
39
  if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.2.2')
37
40
  s.add_development_dependency 'rack', '~> 1.6'
38
41
  end
@@ -47,15 +47,24 @@ RSpec.configure do |c|
47
47
 
48
48
  # Configure all nodes in nodeset
49
49
  c.setup([fresh_nodes, '--hosts', nodesetfile, keyfile, debug, color, options_file].flatten.compact)
50
- c.provision
51
- c.validate
52
- c.configure
53
50
 
54
51
  trap "SIGINT" do
55
52
  c.cleanup
56
53
  exit!(1)
57
54
  end
58
55
 
56
+ begin
57
+ c.provision
58
+ rescue StandardError => e
59
+ logger.error(e)
60
+ logger.info(e.backtrace)
61
+ c.cleanup
62
+ exit!(1)
63
+ end
64
+
65
+ c.validate
66
+ c.configure
67
+
59
68
  # Destroy nodes if no preserve hosts
60
69
  c.after :suite do
61
70
  case options[:destroy]
@@ -1,5 +1,5 @@
1
1
  module BeakerRSpec
2
2
  module Version
3
- STRING = '6.2.4'
3
+ STRING = '6.3.0'
4
4
  end
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,6 @@
1
+ # if you need DSL extension libraries, it appears that they have to be loaded before the RSpec shim
2
+ require "beaker-pe"
3
+
1
4
  ENV['RS_SETFILE'] ||= 'sample.cfg'
2
5
 
3
6
  require "beaker-rspec"
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
4
+ version: 6.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-10 00:00:00.000000000 Z
11
+ date: 2021-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: beaker-pe
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: beaker
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -143,8 +157,9 @@ executables: []
143
157
  extensions: []
144
158
  extra_rdoc_files: []
145
159
  files:
160
+ - ".github/dependabot.yml"
161
+ - ".github/workflows/test.yml"
146
162
  - ".gitignore"
147
- - ".travis.yml"
148
163
  - Gemfile
149
164
  - HISTORY.md
150
165
  - LICENSE
@@ -174,15 +189,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
174
189
  version: 2.1.8
175
190
  - - "<"
176
191
  - !ruby/object:Gem::Version
177
- version: 3.0.0
192
+ version: 4.0.0
178
193
  required_rubygems_version: !ruby/object:Gem::Requirement
179
194
  requirements:
180
195
  - - ">="
181
196
  - !ruby/object:Gem::Version
182
197
  version: '0'
183
198
  requirements: []
184
- rubyforge_project:
185
- rubygems_version: 2.5.1
199
+ rubygems_version: 3.0.8
186
200
  signing_key:
187
201
  specification_version: 4
188
202
  summary: RSpec bindings for beaker
data/.travis.yml DELETED
@@ -1,9 +0,0 @@
1
- before_install:
2
- - gem --version
3
- language: ruby
4
- script: 'bundle exec gem build beaker-rspec.gemspec'
5
- notifications:
6
- email: false
7
- rvm:
8
- - 2.1.9
9
- - 2.2.4