beaker-rspec 8.2.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +90 -15
- data/.github/workflows/test.yml +13 -11
- data/.rubocop.yml +3 -0
- data/.rubocop_todo.yml +7 -45
- data/CHANGELOG.md +28 -0
- data/Gemfile +2 -0
- data/beaker-rspec.gemspec +9 -7
- data/lib/beaker-rspec/beaker_shim.rb +2 -0
- data/lib/beaker-rspec/helpers/serverspec.rb +12 -47
- data/lib/beaker-rspec/rake_task.rb +2 -0
- data/lib/beaker-rspec/spec_helper.rb +4 -0
- data/lib/beaker-rspec/version.rb +3 -1
- data/lib/beaker-rspec.rb +2 -0
- data/spec/acceptance/example_spec.rb +3 -1
- data/spec/spec_helper.rb +3 -1
- metadata +10 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c5bbbb615965d4437d3816e434f7784b0c67b40c4a17c89332997777de9638b
|
4
|
+
data.tar.gz: 465fb8eed2ee81871b4d2ad45e1af7eb271f63145f2b902fda04bfd2af41ea01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 364b59937f776b1a289098554ef88891773ffd5175268a08da544b29fc48fa6b3a1729b3a16c3e73ffcb08af81e98f6869dc6d2c6e597ec5a4a42bafee4fdbce
|
7
|
+
data.tar.gz: 3e69b85ae12de86d688f1ef98e184a5d88ea490ee2f6ebe629b9a438ca577074689e17bc2d77eb10453aec136438d3c3b861bca2270fe2b025404de8c86f2a4d
|
@@ -1,31 +1,106 @@
|
|
1
|
-
|
1
|
+
---
|
2
|
+
name: Gem Release
|
2
3
|
|
3
4
|
on:
|
4
5
|
push:
|
5
6
|
tags:
|
6
7
|
- '*'
|
7
8
|
|
9
|
+
permissions: {}
|
10
|
+
|
8
11
|
jobs:
|
9
|
-
release:
|
10
|
-
|
12
|
+
build-release:
|
13
|
+
# Prevent releases from forked repositories
|
11
14
|
if: github.repository_owner == 'voxpupuli'
|
15
|
+
name: Build the gem
|
16
|
+
runs-on: ubuntu-24.04
|
12
17
|
steps:
|
13
18
|
- uses: actions/checkout@v4
|
14
|
-
- name: Install Ruby
|
19
|
+
- name: Install Ruby
|
15
20
|
uses: ruby/setup-ruby@v1
|
16
21
|
with:
|
17
|
-
ruby-version: '
|
18
|
-
bundler: 'none'
|
22
|
+
ruby-version: 'ruby'
|
19
23
|
- name: Build gem
|
20
|
-
|
24
|
+
shell: bash
|
25
|
+
run: gem build --verbose *.gemspec
|
26
|
+
- name: Upload gem to GitHub cache
|
27
|
+
uses: actions/upload-artifact@v4
|
28
|
+
with:
|
29
|
+
name: gem-artifact
|
30
|
+
path: '*.gem'
|
31
|
+
retention-days: 1
|
32
|
+
compression-level: 0
|
33
|
+
|
34
|
+
create-github-release:
|
35
|
+
needs: build-release
|
36
|
+
name: Create GitHub release
|
37
|
+
runs-on: ubuntu-24.04
|
38
|
+
permissions:
|
39
|
+
contents: write # clone repo and create release
|
40
|
+
steps:
|
41
|
+
- name: Download gem from GitHub cache
|
42
|
+
uses: actions/download-artifact@v5
|
43
|
+
with:
|
44
|
+
name: gem-artifact
|
45
|
+
- name: Create Release
|
46
|
+
shell: bash
|
47
|
+
env:
|
48
|
+
GH_TOKEN: ${{ github.token }}
|
49
|
+
run: gh release create --repo ${{ github.repository }} ${{ github.ref_name }} --generate-notes *.gem
|
50
|
+
|
51
|
+
release-to-github:
|
52
|
+
needs: build-release
|
53
|
+
name: Release to GitHub
|
54
|
+
runs-on: ubuntu-24.04
|
55
|
+
permissions:
|
56
|
+
packages: write # publish to rubygems.pkg.github.com
|
57
|
+
steps:
|
58
|
+
- name: Download gem from GitHub cache
|
59
|
+
uses: actions/download-artifact@v5
|
60
|
+
with:
|
61
|
+
name: gem-artifact
|
62
|
+
- name: Publish gem to GitHub packages
|
63
|
+
run: gem push --host https://rubygems.pkg.github.com/${{ github.repository_owner }} *.gem
|
64
|
+
env:
|
65
|
+
GEM_HOST_API_KEY: ${{ secrets.GITHUB_TOKEN }}
|
66
|
+
|
67
|
+
release-to-rubygems:
|
68
|
+
needs: build-release
|
69
|
+
name: Release gem to rubygems.org
|
70
|
+
runs-on: ubuntu-24.04
|
71
|
+
environment: release # recommended by rubygems.org
|
72
|
+
permissions:
|
73
|
+
id-token: write # rubygems.org authentication
|
74
|
+
steps:
|
75
|
+
- name: Download gem from GitHub cache
|
76
|
+
uses: actions/download-artifact@v5
|
77
|
+
with:
|
78
|
+
name: gem-artifact
|
79
|
+
- uses: rubygems/configure-rubygems-credentials@v1.0.0
|
21
80
|
- name: Publish gem to rubygems.org
|
81
|
+
shell: bash
|
22
82
|
run: gem push *.gem
|
23
|
-
|
24
|
-
|
25
|
-
|
83
|
+
|
84
|
+
release-verification:
|
85
|
+
name: Check that all releases are done
|
86
|
+
runs-on: ubuntu-24.04
|
87
|
+
permissions:
|
88
|
+
contents: read # minimal permissions that we have to grant
|
89
|
+
needs:
|
90
|
+
- create-github-release
|
91
|
+
- release-to-github
|
92
|
+
- release-to-rubygems
|
93
|
+
steps:
|
94
|
+
- name: Download gem from GitHub cache
|
95
|
+
uses: actions/download-artifact@v5
|
96
|
+
with:
|
97
|
+
name: gem-artifact
|
98
|
+
- name: Install Ruby
|
99
|
+
uses: ruby/setup-ruby@v1
|
100
|
+
with:
|
101
|
+
ruby-version: 'ruby'
|
102
|
+
- name: Wait for release to propagate
|
103
|
+
shell: bash
|
26
104
|
run: |
|
27
|
-
|
28
|
-
|
29
|
-
chmod 0600 ~/.gem/credentials
|
30
|
-
- name: Publish gem to GitHub packages
|
31
|
-
run: gem push --key github --host https://rubygems.pkg.github.com/${{ github.repository_owner }} *.gem
|
105
|
+
gem install rubygems-await
|
106
|
+
gem await *.gem
|
data/.github/workflows/test.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
name: Test
|
2
3
|
|
3
4
|
on:
|
@@ -11,28 +12,29 @@ env:
|
|
11
12
|
BEAKER_HYPERVISOR: docker
|
12
13
|
|
13
14
|
jobs:
|
14
|
-
|
15
|
-
runs-on: ubuntu-
|
15
|
+
rubocop_and_matrix:
|
16
|
+
runs-on: ubuntu-24.04
|
17
|
+
outputs:
|
18
|
+
ruby: ${{ steps.ruby.outputs.versions }}
|
16
19
|
steps:
|
17
20
|
- uses: actions/checkout@v4
|
18
21
|
- name: Install Ruby ${{ matrix.ruby }}
|
19
22
|
uses: ruby/setup-ruby@v1
|
20
23
|
with:
|
21
|
-
ruby-version: "3.
|
24
|
+
ruby-version: "3.4"
|
22
25
|
bundler-cache: true
|
23
26
|
- name: Run Rubocop
|
24
27
|
run: bundle exec rake rubocop
|
28
|
+
- id: ruby
|
29
|
+
uses: voxpupuli/ruby-version@v1
|
30
|
+
|
25
31
|
build:
|
26
|
-
runs-on: ubuntu-
|
32
|
+
runs-on: ubuntu-24.04
|
33
|
+
needs: rubocop_and_matrix
|
27
34
|
strategy:
|
28
35
|
fail-fast: false
|
29
36
|
matrix:
|
30
|
-
ruby:
|
31
|
-
- "2.7"
|
32
|
-
- "3.0"
|
33
|
-
- "3.1"
|
34
|
-
- "3.2"
|
35
|
-
- "3.3"
|
37
|
+
ruby: ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
|
36
38
|
name: Ruby ${{ matrix.ruby }}
|
37
39
|
steps:
|
38
40
|
- uses: actions/checkout@v4
|
@@ -48,7 +50,7 @@ jobs:
|
|
48
50
|
|
49
51
|
tests:
|
50
52
|
needs:
|
51
|
-
-
|
53
|
+
- rubocop_and_matrix
|
52
54
|
- build
|
53
55
|
runs-on: ubuntu-latest
|
54
56
|
name: Test suite
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
@@ -1,18 +1,11 @@
|
|
1
1
|
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
#
|
2
|
+
# `rubocop --auto-gen-config --no-auto-gen-timestamp`
|
3
|
+
# using RuboCop version 1.75.8.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
-
# Offense count: 3
|
10
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
11
|
-
# Configuration parameters: AutoCorrect.
|
12
|
-
Lint/UselessAssignment:
|
13
|
-
Exclude:
|
14
|
-
- 'lib/beaker-rspec/helpers/serverspec.rb'
|
15
|
-
|
16
9
|
# Offense count: 1
|
17
10
|
Naming/AccessorMethodName:
|
18
11
|
Exclude:
|
@@ -34,14 +27,6 @@ Naming/MethodParameterName:
|
|
34
27
|
Exclude:
|
35
28
|
- 'lib/beaker-rspec/beaker_shim.rb'
|
36
29
|
|
37
|
-
# Offense count: 1
|
38
|
-
# This cop supports safe autocorrection (--autocorrect).
|
39
|
-
# Configuration parameters: EnforcedStyle.
|
40
|
-
# SupportedStyles: be_a, be_kind_of
|
41
|
-
RSpec/ClassCheck:
|
42
|
-
Exclude:
|
43
|
-
- 'spec/acceptance/example_spec.rb'
|
44
|
-
|
45
30
|
# Offense count: 3
|
46
31
|
# Configuration parameters: Prefixes, AllowedPatterns.
|
47
32
|
# Prefixes: when, with, without
|
@@ -75,10 +60,12 @@ Style/AndOr:
|
|
75
60
|
Exclude:
|
76
61
|
- 'lib/beaker-rspec/helpers/serverspec.rb'
|
77
62
|
|
78
|
-
# Offense count:
|
63
|
+
# Offense count: 6
|
79
64
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
80
|
-
# Configuration parameters: EnforcedStyle.
|
65
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForClasses, EnforcedStyleForModules.
|
81
66
|
# SupportedStyles: nested, compact
|
67
|
+
# SupportedStylesForClasses: ~, nested, compact
|
68
|
+
# SupportedStylesForModules: ~, nested, compact
|
82
69
|
Style/ClassAndModuleChildren:
|
83
70
|
Exclude:
|
84
71
|
- 'lib/beaker-rspec/helpers/serverspec.rb'
|
@@ -88,7 +75,7 @@ Style/ClassVars:
|
|
88
75
|
Exclude:
|
89
76
|
- 'lib/beaker-rspec/helpers/serverspec.rb'
|
90
77
|
|
91
|
-
# Offense count:
|
78
|
+
# Offense count: 9
|
92
79
|
# Configuration parameters: AllowedConstants.
|
93
80
|
Style/Documentation:
|
94
81
|
Exclude:
|
@@ -97,23 +84,6 @@ Style/Documentation:
|
|
97
84
|
- 'lib/beaker-rspec.rb'
|
98
85
|
- 'lib/beaker-rspec/helpers/serverspec.rb'
|
99
86
|
|
100
|
-
# Offense count: 10
|
101
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
102
|
-
# Configuration parameters: EnforcedStyle.
|
103
|
-
# SupportedStyles: always, always_true, never
|
104
|
-
Style/FrozenStringLiteralComment:
|
105
|
-
Exclude:
|
106
|
-
- 'Gemfile'
|
107
|
-
- 'beaker-rspec.gemspec'
|
108
|
-
- 'lib/beaker-rspec.rb'
|
109
|
-
- 'lib/beaker-rspec/beaker_shim.rb'
|
110
|
-
- 'lib/beaker-rspec/helpers/serverspec.rb'
|
111
|
-
- 'lib/beaker-rspec/rake_task.rb'
|
112
|
-
- 'lib/beaker-rspec/spec_helper.rb'
|
113
|
-
- 'lib/beaker-rspec/version.rb'
|
114
|
-
- 'spec/acceptance/example_spec.rb'
|
115
|
-
- 'spec/spec_helper.rb'
|
116
|
-
|
117
87
|
# Offense count: 1
|
118
88
|
Style/MissingRespondToMissing:
|
119
89
|
Exclude:
|
@@ -124,14 +94,6 @@ Style/MixinUsage:
|
|
124
94
|
Exclude:
|
125
95
|
- 'lib/beaker-rspec/spec_helper.rb'
|
126
96
|
|
127
|
-
# Offense count: 1
|
128
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
129
|
-
# Configuration parameters: EnforcedStyle.
|
130
|
-
# SupportedStyles: literals, strict
|
131
|
-
Style/MutableConstant:
|
132
|
-
Exclude:
|
133
|
-
- 'lib/beaker-rspec/version.rb'
|
134
|
-
|
135
97
|
# Offense count: 1
|
136
98
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
137
99
|
# Configuration parameters: RequireEnglish.
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,34 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [9.0.0](https://github.com/voxpupuli/beaker-rspec/tree/9.0.0) (2025-08-07)
|
6
|
+
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-rspec/compare/8.3.0...9.0.0)
|
8
|
+
|
9
|
+
**Breaking changes:**
|
10
|
+
|
11
|
+
- Require Ruby 3.2 or newer [\#150](https://github.com/voxpupuli/beaker-rspec/pull/150) ([bastelfreak](https://github.com/bastelfreak))
|
12
|
+
|
13
|
+
**Implemented enhancements:**
|
14
|
+
|
15
|
+
- beaker: Allow 7.x [\#149](https://github.com/voxpupuli/beaker-rspec/pull/149) ([bastelfreak](https://github.com/bastelfreak))
|
16
|
+
|
17
|
+
## [8.3.0](https://github.com/voxpupuli/beaker-rspec/tree/8.3.0) (2025-05-27)
|
18
|
+
|
19
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-rspec/compare/8.2.0...8.3.0)
|
20
|
+
|
21
|
+
**Implemented enhancements:**
|
22
|
+
|
23
|
+
- Use the backend variable inside the loop [\#145](https://github.com/voxpupuli/beaker-rspec/pull/145) ([ekohl](https://github.com/ekohl))
|
24
|
+
- Remove redundant Specinfra::Runner.run definition [\#144](https://github.com/voxpupuli/beaker-rspec/pull/144) ([ekohl](https://github.com/ekohl))
|
25
|
+
- Remove unused get\_windows\_cmd method [\#143](https://github.com/voxpupuli/beaker-rspec/pull/143) ([ekohl](https://github.com/ekohl))
|
26
|
+
- Add Ruby 3.4 to CI / generate matrix automatically [\#142](https://github.com/voxpupuli/beaker-rspec/pull/142) ([bastelfreak](https://github.com/bastelfreak))
|
27
|
+
- Vagrant: Add options to configure memsize/cpu cores [\#139](https://github.com/voxpupuli/beaker-rspec/pull/139) ([bastelfreak](https://github.com/bastelfreak))
|
28
|
+
|
29
|
+
**Merged pull requests:**
|
30
|
+
|
31
|
+
- fakefs: Allow 3.x [\#146](https://github.com/voxpupuli/beaker-rspec/pull/146) ([bastelfreak](https://github.com/bastelfreak))
|
32
|
+
|
5
33
|
## [8.2.0](https://github.com/voxpupuli/beaker-rspec/tree/8.2.0) (2024-05-28)
|
6
34
|
|
7
35
|
[Full Changelog](https://github.com/voxpupuli/beaker-rspec/compare/8.1.0...8.2.0)
|
data/Gemfile
CHANGED
data/beaker-rspec.gemspec
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
$:.push File.expand_path('lib', __dir__)
|
2
4
|
require 'beaker-rspec/version'
|
3
5
|
|
@@ -11,21 +13,21 @@ Gem::Specification.new do |s|
|
|
11
13
|
s.description = 'RSpec bindings for beaker, see https://github.com/voxpupuli/beaker'
|
12
14
|
s.license = 'Apache-2.0'
|
13
15
|
|
14
|
-
s.required_ruby_version = '>= 2.
|
16
|
+
s.required_ruby_version = '>= 3.2.0', '<4.0.0'
|
15
17
|
|
16
18
|
s.files = `git ls-files`.split("\n")
|
17
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
18
20
|
s.require_paths = ['lib']
|
19
21
|
|
20
22
|
# Testing dependencies
|
21
|
-
s.add_development_dependency 'fakefs', '>= 0.6', '<
|
23
|
+
s.add_development_dependency 'fakefs', '>= 0.6', '< 4'
|
22
24
|
s.add_development_dependency 'minitest', '~> 5.4'
|
23
25
|
s.add_development_dependency 'rake', '~> 13.0'
|
24
|
-
s.add_development_dependency 'voxpupuli-rubocop', '~>
|
26
|
+
s.add_development_dependency 'voxpupuli-rubocop', '~> 4.1.0'
|
25
27
|
|
26
28
|
# Run time dependencies
|
27
|
-
s.
|
28
|
-
s.
|
29
|
-
s.
|
30
|
-
s.
|
29
|
+
s.add_dependency 'beaker', '>= 4.0', '< 8'
|
30
|
+
s.add_dependency 'rspec', '~> 3.0'
|
31
|
+
s.add_dependency 'serverspec', '~> 2'
|
32
|
+
s.add_dependency 'specinfra', '~> 2'
|
31
33
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'serverspec'
|
2
4
|
require 'specinfra'
|
3
5
|
require 'specinfra/backend/powershell/script_helper'
|
@@ -79,69 +81,32 @@ module Specinfra::Helper::Os
|
|
79
81
|
Specinfra::Helper::DetectOs.subclasses.each do |c|
|
80
82
|
res = c.detect
|
81
83
|
if res
|
82
|
-
res[:arch] ||=
|
84
|
+
res[:arch] ||= backend.run_command('uname -m').stdout.strip
|
83
85
|
return res
|
84
86
|
end
|
85
87
|
end
|
86
88
|
end
|
87
89
|
end
|
88
90
|
|
89
|
-
class Specinfra::CommandFactory
|
90
|
-
class << self
|
91
|
-
# Force creation of a windows command
|
92
|
-
def get_windows_cmd(meth, *args)
|
93
|
-
action, resource_type, subaction = breakdown(meth)
|
94
|
-
method = action
|
95
|
-
method += "_#{subaction}" if subaction
|
96
|
-
|
97
|
-
common_class = Specinfra::Command
|
98
|
-
base_class = common_class.const_get(:Base)
|
99
|
-
os_class = common_class.const_get(:Windows)
|
100
|
-
version_class = os_class.const_get(:Base)
|
101
|
-
command_class = version_class.const_get(resource_type.to_camel_case)
|
102
|
-
|
103
|
-
command_class = command_class.create
|
104
|
-
unless command_class.respond_to?(method)
|
105
|
-
raise NotImplementedError,
|
106
|
-
"#{method} is not implemented in #{command_class}"
|
107
|
-
end
|
108
|
-
|
109
|
-
command_class.send(method, *args)
|
110
|
-
end
|
111
|
-
end
|
112
|
-
end
|
113
|
-
|
114
91
|
module Specinfra
|
115
92
|
# Rewrite the runner to use the appropriate backend based upon platform information
|
116
93
|
class Runner
|
117
|
-
def self.method_missing(meth, *
|
94
|
+
def self.method_missing(meth, *)
|
118
95
|
backend = Specinfra.backend
|
119
96
|
node = get_working_node
|
120
97
|
if !node['platform'].include?('windows')
|
121
98
|
processor = Specinfra::Processor
|
122
99
|
if processor.respond_to?(meth)
|
123
|
-
processor.send(meth, *
|
100
|
+
processor.send(meth, *)
|
124
101
|
elsif backend.respond_to?(meth)
|
125
|
-
backend.send(meth, *
|
102
|
+
backend.send(meth, *)
|
126
103
|
else
|
127
|
-
run(meth, *
|
104
|
+
run(meth, *)
|
128
105
|
end
|
129
106
|
elsif backend.respond_to?(meth)
|
130
|
-
backend.send(meth, *
|
131
|
-
else
|
132
|
-
run(meth, *args)
|
133
|
-
end
|
134
|
-
end
|
135
|
-
|
136
|
-
def self.run(meth, *args)
|
137
|
-
backend = Specinfra.backend
|
138
|
-
cmd = Specinfra.command.get(meth, *args)
|
139
|
-
backend = Specinfra.backend
|
140
|
-
ret = backend.run_command(cmd)
|
141
|
-
if meth.to_s.start_with?('check')
|
142
|
-
ret.success?
|
107
|
+
backend.send(meth, *)
|
143
108
|
else
|
144
|
-
|
109
|
+
run(meth, *)
|
145
110
|
end
|
146
111
|
end
|
147
112
|
end
|
@@ -183,11 +148,11 @@ end
|
|
183
148
|
# Used as a container for the two backends, dispatches as windows/nix depending on node platform
|
184
149
|
module Specinfra::Backend
|
185
150
|
class BeakerDispatch < BeakerBase
|
186
|
-
def dispatch_method(meth, *
|
151
|
+
def dispatch_method(meth, *)
|
187
152
|
if get_working_node['platform'].include?('windows')
|
188
|
-
cygwin_backend.send(meth, *
|
153
|
+
cygwin_backend.send(meth, *)
|
189
154
|
else
|
190
|
-
exec_backend.send(meth, *
|
155
|
+
exec_backend.send(meth, *)
|
191
156
|
end
|
192
157
|
end
|
193
158
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'beaker-rspec/beaker_shim'
|
2
4
|
require 'beaker-rspec/helpers/serverspec'
|
3
5
|
include BeakerRSpec::BeakerShim
|
@@ -32,6 +34,8 @@ RSpec.configure do |c|
|
|
32
34
|
debug: ENV['BEAKER_DEBUG'] || ENV['BEAKER_debug'] || ENV.fetch('RS_DEBUG', nil),
|
33
35
|
destroy: ENV['BEAKER_DESTROY'] || ENV['BEAKER_destroy'] || ENV.fetch('RS_DESTROY', nil),
|
34
36
|
optionsfile: ENV['BEAKER_OPTIONS_FILE'] || ENV['BEAKER_options_file'] || ENV.fetch('RS_OPTIONS_FILE', nil),
|
37
|
+
vagrant_memsize: ENV.fetch('BEAKER_VAGRANT_MEMSIZE', nil),
|
38
|
+
vagrant_cpus: ENV.fetch('BEAKER_VAGRANT_CPUS', nil),
|
35
39
|
}.compact
|
36
40
|
# combine defaults and env_vars to determine overall options
|
37
41
|
options = defaults.merge(env_vars)
|
data/lib/beaker-rspec/version.rb
CHANGED
data/lib/beaker-rspec.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
5
|
describe 'ignore' do
|
@@ -21,7 +23,7 @@ describe 'ignore' do
|
|
21
23
|
end
|
22
24
|
|
23
25
|
example 'access the options' do
|
24
|
-
expect(options).to
|
26
|
+
expect(options).to be_a(Hash)
|
25
27
|
end
|
26
28
|
|
27
29
|
example 'create a beaker dsl::step' do
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 9.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vox Pupuli
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: fakefs
|
@@ -19,7 +18,7 @@ dependencies:
|
|
19
18
|
version: '0.6'
|
20
19
|
- - "<"
|
21
20
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
21
|
+
version: '4'
|
23
22
|
type: :development
|
24
23
|
prerelease: false
|
25
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +28,7 @@ dependencies:
|
|
29
28
|
version: '0.6'
|
30
29
|
- - "<"
|
31
30
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
31
|
+
version: '4'
|
33
32
|
- !ruby/object:Gem::Dependency
|
34
33
|
name: minitest
|
35
34
|
requirement: !ruby/object:Gem::Requirement
|
@@ -64,14 +63,14 @@ dependencies:
|
|
64
63
|
requirements:
|
65
64
|
- - "~>"
|
66
65
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
66
|
+
version: 4.1.0
|
68
67
|
type: :development
|
69
68
|
prerelease: false
|
70
69
|
version_requirements: !ruby/object:Gem::Requirement
|
71
70
|
requirements:
|
72
71
|
- - "~>"
|
73
72
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
73
|
+
version: 4.1.0
|
75
74
|
- !ruby/object:Gem::Dependency
|
76
75
|
name: beaker
|
77
76
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,7 +80,7 @@ dependencies:
|
|
81
80
|
version: '4.0'
|
82
81
|
- - "<"
|
83
82
|
- !ruby/object:Gem::Version
|
84
|
-
version: '
|
83
|
+
version: '8'
|
85
84
|
type: :runtime
|
86
85
|
prerelease: false
|
87
86
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -91,7 +90,7 @@ dependencies:
|
|
91
90
|
version: '4.0'
|
92
91
|
- - "<"
|
93
92
|
- !ruby/object:Gem::Version
|
94
|
-
version: '
|
93
|
+
version: '8'
|
95
94
|
- !ruby/object:Gem::Dependency
|
96
95
|
name: rspec
|
97
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -166,7 +165,6 @@ homepage: https://github.com/voxpupuli/beaker-rspec
|
|
166
165
|
licenses:
|
167
166
|
- Apache-2.0
|
168
167
|
metadata: {}
|
169
|
-
post_install_message:
|
170
168
|
rdoc_options: []
|
171
169
|
require_paths:
|
172
170
|
- lib
|
@@ -174,7 +172,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
174
172
|
requirements:
|
175
173
|
- - ">="
|
176
174
|
- !ruby/object:Gem::Version
|
177
|
-
version: 2.
|
175
|
+
version: 3.2.0
|
178
176
|
- - "<"
|
179
177
|
- !ruby/object:Gem::Version
|
180
178
|
version: 4.0.0
|
@@ -184,8 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
182
|
- !ruby/object:Gem::Version
|
185
183
|
version: '0'
|
186
184
|
requirements: []
|
187
|
-
rubygems_version: 3.
|
188
|
-
signing_key:
|
185
|
+
rubygems_version: 3.6.9
|
189
186
|
specification_version: 4
|
190
187
|
summary: RSpec bindings for beaker
|
191
188
|
test_files: []
|