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 +5 -5
- data/.github/dependabot.yml +8 -0
- data/.github/workflows/test.yml +29 -0
- data/Gemfile +4 -0
- data/README.md +1 -1
- data/beaker-rspec.gemspec +4 -1
- data/lib/beaker-rspec/spec_helper.rb +12 -3
- data/lib/beaker-rspec/version.rb +1 -1
- data/spec/spec_helper.rb +3 -0
- metadata +20 -6
- data/.travis.yml +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 20eed9cdf4d73abdff3288faeafa0bc2fb6cdef267ac8b7c77274a36ca8879bd
|
4
|
+
data.tar.gz: 9a7c150ebed5fcaea176fdc551726be8b00f12719236e4a42edff4484c56e823
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef5f1efa8854efc43980c6c4e72fe84f5db4f66f2dfe362e502fbd5f5b1210f23c28749d4d3649606f2eacf2e57792871ea7e4781d7162b92dd5683438e4e03e
|
7
|
+
data.tar.gz: 5eae3992b56f4d4946adffd7dd743f0254ec29a690843b6a604f4540fcde532d1d97bce8c7d2ac8553f8e096070de8859cd2305583593fe7cd3d2413972634a5
|
@@ -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
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/
|
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', '<
|
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]
|
data/lib/beaker-rspec/version.rb
CHANGED
data/spec/spec_helper.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.
|
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:
|
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:
|
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
|
-
|
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
|