beaker-vmware 2.2.0 → 3.0.1
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/release.yml +41 -0
- data/.github/workflows/release.yml +91 -17
- data/.github/workflows/test.yml +20 -18
- data/.rubocop_todo.yml +39 -15
- data/CHANGELOG.md +19 -0
- data/Gemfile +1 -6
- data/README.md +0 -1
- data/Rakefile +0 -7
- data/beaker-vmware.gemspec +9 -8
- data/lib/beaker/hypervisor/vsphere.rb +2 -2
- data/lib/beaker-vmware/version.rb +1 -1
- data/spec/spec_helper.rb +0 -24
- metadata +39 -16
- data/.simplecov +0 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8cf20bc166ce616ed93eba37bd394fb62079cbc6e400e945d2ff39f952b39e82
|
|
4
|
+
data.tar.gz: e848a63144dedb71e94bea0845833b53da580daa47a6f8e67e227f220faa3f9b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 56e3a5ef5194b3508ae34a828cefe2ed487249804a9f13a63270a5d4c71abfdae2d7d5206a0245210e1493493e82e484ad75edecc1d051b802cbad912554bbec
|
|
7
|
+
data.tar.gz: 5836aed9f6a5a5e3359ddaa52f0048cd19e3efb76f5fd3c5d00c3e01d91838a9091b0bf6008cf070f8152f10a12a627a39f6cebfd548597cd0f8c8aac87236b7
|
data/.github/release.yml
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes
|
|
3
|
+
|
|
4
|
+
changelog:
|
|
5
|
+
exclude:
|
|
6
|
+
labels:
|
|
7
|
+
- duplicate
|
|
8
|
+
- invalid
|
|
9
|
+
- modulesync
|
|
10
|
+
- question
|
|
11
|
+
- skip-changelog
|
|
12
|
+
- wont-fix
|
|
13
|
+
- wontfix
|
|
14
|
+
- github_actions
|
|
15
|
+
|
|
16
|
+
categories:
|
|
17
|
+
- title: Breaking Changes 🛠
|
|
18
|
+
labels:
|
|
19
|
+
- backwards-incompatible
|
|
20
|
+
|
|
21
|
+
- title: New Features 🎉
|
|
22
|
+
labels:
|
|
23
|
+
- enhancement
|
|
24
|
+
|
|
25
|
+
- title: Bug Fixes 🐛
|
|
26
|
+
labels:
|
|
27
|
+
- bug
|
|
28
|
+
- bugfix
|
|
29
|
+
|
|
30
|
+
- title: Documentation Updates 📚
|
|
31
|
+
labels:
|
|
32
|
+
- documentation
|
|
33
|
+
- docs
|
|
34
|
+
|
|
35
|
+
- title: Dependency Updates ⬆️
|
|
36
|
+
labels:
|
|
37
|
+
- dependencies
|
|
38
|
+
|
|
39
|
+
- title: Other Changes
|
|
40
|
+
labels:
|
|
41
|
+
- "*"
|
|
@@ -1,32 +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
|
-
- uses: actions/checkout@
|
|
14
|
-
- name: Install Ruby
|
|
18
|
+
- uses: actions/checkout@v6
|
|
19
|
+
- name: Install Ruby
|
|
15
20
|
uses: ruby/setup-ruby@v1
|
|
16
21
|
with:
|
|
17
|
-
ruby-version: '
|
|
18
|
-
env:
|
|
19
|
-
BUNDLE_WITHOUT: release
|
|
22
|
+
ruby-version: 'ruby'
|
|
20
23
|
- name: Build gem
|
|
21
|
-
|
|
24
|
+
shell: bash
|
|
25
|
+
run: gem build --verbose *.gemspec
|
|
26
|
+
- name: Upload gem to GitHub cache
|
|
27
|
+
uses: actions/upload-artifact@v7
|
|
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@v8
|
|
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@v8
|
|
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@v8
|
|
77
|
+
with:
|
|
78
|
+
name: gem-artifact
|
|
79
|
+
- uses: rubygems/configure-rubygems-credentials@v1.0.0
|
|
22
80
|
- name: Publish gem to rubygems.org
|
|
81
|
+
shell: bash
|
|
23
82
|
run: gem push *.gem
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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@v8
|
|
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
|
|
27
104
|
run: |
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
chmod 0600 ~/.gem/credentials
|
|
31
|
-
- name: Publish gem to GitHub packages
|
|
32
|
-
run: gem push --key github --host https://rubygems.pkg.github.com/voxpupuli *.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:
|
|
@@ -6,38 +7,35 @@ on:
|
|
|
6
7
|
branches:
|
|
7
8
|
- master
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
11
12
|
|
|
12
13
|
jobs:
|
|
13
|
-
|
|
14
|
+
rubocop_and_matrix:
|
|
15
|
+
outputs:
|
|
16
|
+
ruby: ${{ steps.ruby.outputs.versions }}
|
|
14
17
|
runs-on: ubuntu-latest
|
|
15
18
|
steps:
|
|
16
|
-
- uses: actions/checkout@
|
|
19
|
+
- uses: actions/checkout@v6
|
|
17
20
|
- name: Install Ruby ${{ matrix.ruby }}
|
|
18
21
|
uses: ruby/setup-ruby@v1
|
|
19
22
|
with:
|
|
20
|
-
ruby-version: "3.
|
|
23
|
+
ruby-version: "3.4"
|
|
21
24
|
bundler-cache: true
|
|
22
25
|
- name: Run Rubocop
|
|
23
26
|
run: bundle exec rake rubocop
|
|
27
|
+
- id: ruby
|
|
28
|
+
uses: voxpupuli/ruby-version@v2
|
|
24
29
|
|
|
25
30
|
test:
|
|
26
31
|
runs-on: ubuntu-latest
|
|
32
|
+
needs: rubocop_and_matrix
|
|
27
33
|
strategy:
|
|
28
34
|
fail-fast: false
|
|
29
35
|
matrix:
|
|
30
|
-
|
|
31
|
-
- ruby: "2.7"
|
|
32
|
-
- ruby: "3.0"
|
|
33
|
-
coverage: "yes"
|
|
34
|
-
- ruby: "3.1"
|
|
35
|
-
- ruby: "3.2"
|
|
36
|
-
- ruby: "3.3"
|
|
37
|
-
env:
|
|
38
|
-
COVERAGE: ${{ matrix.coverage }}
|
|
36
|
+
ruby: ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
|
|
39
37
|
steps:
|
|
40
|
-
- uses: actions/checkout@
|
|
38
|
+
- uses: actions/checkout@v6
|
|
41
39
|
- name: Install Ruby ${{ matrix.ruby }}
|
|
42
40
|
uses: ruby/setup-ruby@v1
|
|
43
41
|
with:
|
|
@@ -49,10 +47,14 @@ jobs:
|
|
|
49
47
|
run: gem build --strict --verbose *.gemspec
|
|
50
48
|
|
|
51
49
|
tests:
|
|
50
|
+
if: always()
|
|
52
51
|
needs:
|
|
53
|
-
-
|
|
52
|
+
- rubocop_and_matrix
|
|
54
53
|
- test
|
|
55
|
-
runs-on: ubuntu-
|
|
54
|
+
runs-on: ubuntu-24.04
|
|
56
55
|
name: Test suite
|
|
57
56
|
steps:
|
|
58
|
-
-
|
|
57
|
+
- name: Decide whether the needed jobs succeeded or failed
|
|
58
|
+
uses: re-actors/alls-green@release/v1
|
|
59
|
+
with:
|
|
60
|
+
jobs: ${{ toJSON(needs) }}
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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.79.2.
|
|
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
|
|
@@ -25,6 +25,12 @@ Lint/MissingSuper:
|
|
|
25
25
|
- 'lib/beaker/hypervisor/fusion.rb'
|
|
26
26
|
- 'lib/beaker/hypervisor/vsphere.rb'
|
|
27
27
|
|
|
28
|
+
# Offense count: 1
|
|
29
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
30
|
+
Lint/RedundantDirGlobSort:
|
|
31
|
+
Exclude:
|
|
32
|
+
- 'spec/spec_helper.rb'
|
|
33
|
+
|
|
28
34
|
# Offense count: 4
|
|
29
35
|
Naming/AccessorMethodName:
|
|
30
36
|
Exclude:
|
|
@@ -40,8 +46,9 @@ Naming/HeredocDelimiterNaming:
|
|
|
40
46
|
- 'Rakefile'
|
|
41
47
|
|
|
42
48
|
# Offense count: 30
|
|
43
|
-
# Configuration parameters: EnforcedStyle, AllowedPatterns.
|
|
49
|
+
# Configuration parameters: EnforcedStyle, AllowedPatterns, ForbiddenIdentifiers, ForbiddenPatterns.
|
|
44
50
|
# SupportedStyles: snake_case, camelCase
|
|
51
|
+
# ForbiddenIdentifiers: __id__, __send__
|
|
45
52
|
Naming/MethodName:
|
|
46
53
|
Exclude:
|
|
47
54
|
- 'spec/mock_vsphere.rb'
|
|
@@ -56,8 +63,17 @@ Naming/MethodParameterName:
|
|
|
56
63
|
- 'spec/mock_vsphere.rb'
|
|
57
64
|
- 'spec/mock_vsphere_helper.rb'
|
|
58
65
|
|
|
66
|
+
# Offense count: 7
|
|
67
|
+
# Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
|
|
68
|
+
# AllowedMethods: call
|
|
69
|
+
# WaywardPredicates: nonzero?
|
|
70
|
+
Naming/PredicateMethod:
|
|
71
|
+
Exclude:
|
|
72
|
+
- 'spec/mock_vsphere.rb'
|
|
73
|
+
- 'spec/mock_vsphere_helper.rb'
|
|
74
|
+
|
|
59
75
|
# Offense count: 28
|
|
60
|
-
# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns.
|
|
76
|
+
# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns, ForbiddenIdentifiers, ForbiddenPatterns.
|
|
61
77
|
# SupportedStyles: snake_case, camelCase
|
|
62
78
|
Naming/VariableName:
|
|
63
79
|
Exclude:
|
|
@@ -175,12 +191,28 @@ Style/FormatString:
|
|
|
175
191
|
- 'lib/beaker/hypervisor/fusion.rb'
|
|
176
192
|
- 'lib/beaker/hypervisor/vsphere.rb'
|
|
177
193
|
|
|
178
|
-
# Offense count:
|
|
194
|
+
# Offense count: 15
|
|
179
195
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
180
196
|
# Configuration parameters: EnforcedStyle.
|
|
181
197
|
# SupportedStyles: always, always_true, never
|
|
182
198
|
Style/FrozenStringLiteralComment:
|
|
183
|
-
|
|
199
|
+
Exclude:
|
|
200
|
+
- '**/*.arb'
|
|
201
|
+
- 'Gemfile'
|
|
202
|
+
- 'Rakefile'
|
|
203
|
+
- 'beaker-vmware.gemspec'
|
|
204
|
+
- 'bin/beaker-vmware'
|
|
205
|
+
- 'lib/beaker-vmware/version.rb'
|
|
206
|
+
- 'lib/beaker/hypervisor/fusion.rb'
|
|
207
|
+
- 'lib/beaker/hypervisor/vsphere.rb'
|
|
208
|
+
- 'lib/beaker/hypervisor/vsphere_helper.rb'
|
|
209
|
+
- 'spec/beaker/hypervisor/fusion_spec.rb'
|
|
210
|
+
- 'spec/beaker/hypervisor/vsphere_helper_spec.rb'
|
|
211
|
+
- 'spec/beaker/hypervisor/vsphere_spec.rb'
|
|
212
|
+
- 'spec/mock_fission.rb'
|
|
213
|
+
- 'spec/mock_vsphere.rb'
|
|
214
|
+
- 'spec/mock_vsphere_helper.rb'
|
|
215
|
+
- 'spec/spec_helper.rb'
|
|
184
216
|
|
|
185
217
|
# Offense count: 3
|
|
186
218
|
# This cop supports safe autocorrection (--autocorrect).
|
|
@@ -229,14 +261,6 @@ Style/PreferredHashMethods:
|
|
|
229
261
|
Exclude:
|
|
230
262
|
- 'spec/mock_vsphere_helper.rb'
|
|
231
263
|
|
|
232
|
-
# Offense count: 2
|
|
233
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
234
|
-
# Configuration parameters: AutoCorrect, AllowComments.
|
|
235
|
-
Style/RedundantInitialize:
|
|
236
|
-
Exclude:
|
|
237
|
-
- 'spec/mock_vsphere.rb'
|
|
238
|
-
- 'spec/mock_vsphere_helper.rb'
|
|
239
|
-
|
|
240
264
|
# Offense count: 2
|
|
241
265
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
242
266
|
# Configuration parameters: Mode.
|
|
@@ -254,7 +278,7 @@ Style/SymbolProc:
|
|
|
254
278
|
|
|
255
279
|
# Offense count: 5
|
|
256
280
|
# This cop supports safe autocorrection (--autocorrect).
|
|
257
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
|
281
|
+
# Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
|
|
258
282
|
# URISchemes: http, https
|
|
259
283
|
Layout/LineLength:
|
|
260
284
|
Max: 152
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.0.1](https://github.com/voxpupuli/beaker-vmware/tree/3.0.1) (2026-02-27)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-vmware/compare/3.0.0...3.0.1)
|
|
6
|
+
|
|
7
|
+
The 3.0.0 release didn't make it to rubygems.org. The 3.0.1 contains the identical code.
|
|
8
|
+
|
|
9
|
+
## [3.0.0](https://github.com/voxpupuli/beaker-vmware/tree/3.0.0) (2026-01-06)
|
|
10
|
+
|
|
11
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-vmware/compare/2.2.0...3.0.0)
|
|
12
|
+
|
|
13
|
+
**Breaking changes:**
|
|
14
|
+
|
|
15
|
+
- Require Ruby 3.2 or newer [\#56](https://github.com/voxpupuli/beaker-vmware/pull/56) ([bastelfreak](https://github.com/bastelfreak))
|
|
16
|
+
|
|
17
|
+
**Implemented enhancements:**
|
|
18
|
+
|
|
19
|
+
- Add Ruby 4.0 support [\#67](https://github.com/voxpupuli/beaker-vmware/pull/67) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
20
|
+
- beaker: Allow 7.x [\#57](https://github.com/voxpupuli/beaker-vmware/pull/57) ([bastelfreak](https://github.com/bastelfreak))
|
|
21
|
+
|
|
3
22
|
## [2.2.0](https://github.com/voxpupuli/beaker-vmware/tree/2.2.0) (2024-05-28)
|
|
4
23
|
|
|
5
24
|
[Full Changelog](https://github.com/voxpupuli/beaker-vmware/compare/2.1.1...2.2.0)
|
data/Gemfile
CHANGED
|
@@ -2,12 +2,7 @@ source ENV['GEM_SOURCE'] || 'https://rubygems.org'
|
|
|
2
2
|
|
|
3
3
|
gemspec
|
|
4
4
|
|
|
5
|
-
group :release do
|
|
5
|
+
group :release, optional: true do
|
|
6
6
|
gem 'faraday-retry', '~> 2.1', require: false
|
|
7
7
|
gem 'github_changelog_generator', '~> 1.16.4', require: false
|
|
8
8
|
end
|
|
9
|
-
|
|
10
|
-
group :coverage, optional: ENV['COVERAGE'] != 'yes' do
|
|
11
|
-
gem 'codecov', require: false
|
|
12
|
-
gem 'simplecov-console', require: false
|
|
13
|
-
end
|
data/README.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/voxpupuli/beaker-vmware/blob/master/LICENSE)
|
|
4
4
|
[](https://github.com/voxpupuli/beaker-vmware/actions/workflows/test.yml)
|
|
5
|
-
[](https://codecov.io/gh/voxpupuli/beaker-vmware)
|
|
6
5
|
[](https://github.com/voxpupuli/beaker-vmware/actions/workflows/release.yml)
|
|
7
6
|
[](https://rubygems.org/gems/beaker-vmware)
|
|
8
7
|
[](https://rubygems.org/gems/beaker-vmware)
|
data/Rakefile
CHANGED
|
@@ -7,13 +7,6 @@ namespace :test do
|
|
|
7
7
|
t.rspec_opts = ['--color']
|
|
8
8
|
t.pattern = 'spec/'
|
|
9
9
|
end
|
|
10
|
-
|
|
11
|
-
desc 'Run spec tests with coverage'
|
|
12
|
-
RSpec::Core::RakeTask.new(:coverage) do |t|
|
|
13
|
-
ENV['BEAKER_VMWARE_COVERAGE'] = 'y'
|
|
14
|
-
t.rspec_opts = ['--color']
|
|
15
|
-
t.pattern = 'spec/'
|
|
16
|
-
end
|
|
17
10
|
end
|
|
18
11
|
|
|
19
12
|
namespace :acceptance do
|
data/beaker-vmware.gemspec
CHANGED
|
@@ -15,17 +15,18 @@ Gem::Specification.new do |s|
|
|
|
15
15
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
|
16
16
|
s.require_paths = ['lib']
|
|
17
17
|
|
|
18
|
-
s.required_ruby_version = Gem::Requirement.new('>= 2
|
|
18
|
+
s.required_ruby_version = Gem::Requirement.new('>= 3.2')
|
|
19
19
|
|
|
20
20
|
# Testing dependencies
|
|
21
|
-
s.add_development_dependency 'fakefs', '
|
|
21
|
+
s.add_development_dependency 'fakefs', '>= 2.4', '< 4'
|
|
22
|
+
s.add_development_dependency 'ostruct', '< 0.7'
|
|
22
23
|
s.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
|
|
23
24
|
s.add_development_dependency 'rspec', '~> 3.0'
|
|
24
|
-
s.add_development_dependency 'rspec-its', '
|
|
25
|
-
s.add_development_dependency 'voxpupuli-rubocop', '~>
|
|
25
|
+
s.add_development_dependency 'rspec-its', '>= 1.3', '< 3'
|
|
26
|
+
s.add_development_dependency 'voxpupuli-rubocop', '~> 5.1.0'
|
|
26
27
|
# Run time dependencies
|
|
27
|
-
s.
|
|
28
|
-
s.
|
|
29
|
-
s.
|
|
30
|
-
s.
|
|
28
|
+
s.add_dependency 'beaker', '>= 4', '< 8'
|
|
29
|
+
s.add_dependency 'fission', '~> 0.4'
|
|
30
|
+
s.add_dependency 'rbvmomi2', '~> 3.7'
|
|
31
|
+
s.add_dependency 'stringify-hash', '~> 0.0.0'
|
|
31
32
|
end
|
|
@@ -47,7 +47,7 @@ module Beaker
|
|
|
47
47
|
@logger.notify "Booting #{vm.name}"
|
|
48
48
|
start = Time.now
|
|
49
49
|
vm.PowerOnVM_Task.wait_for_completion
|
|
50
|
-
@logger.notify format("Spent %.2f seconds booting #{vm.name}",
|
|
50
|
+
@logger.notify format("Spent %.2f seconds booting #{vm.name}", Time.now - start)
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
vsphere_helper.close
|
|
@@ -75,7 +75,7 @@ module Beaker
|
|
|
75
75
|
start = Time.now
|
|
76
76
|
vm.PowerOffVM_Task.wait_for_completion
|
|
77
77
|
@logger.notify(
|
|
78
|
-
format("Spent %.2f seconds halting #{vm.name}",
|
|
78
|
+
format("Spent %.2f seconds halting #{vm.name}", Time.now - start),
|
|
79
79
|
)
|
|
80
80
|
end
|
|
81
81
|
|
data/spec/spec_helper.rb
CHANGED
|
@@ -3,30 +3,6 @@ require 'mock_fission'
|
|
|
3
3
|
require 'mock_vsphere'
|
|
4
4
|
require 'mock_vsphere_helper'
|
|
5
5
|
|
|
6
|
-
begin
|
|
7
|
-
require 'simplecov'
|
|
8
|
-
require 'simplecov-console'
|
|
9
|
-
require 'codecov'
|
|
10
|
-
rescue LoadError
|
|
11
|
-
# Do nothing if no required gem installed
|
|
12
|
-
else
|
|
13
|
-
SimpleCov.start do
|
|
14
|
-
track_files 'lib/**/*.rb'
|
|
15
|
-
|
|
16
|
-
add_filter '/spec'
|
|
17
|
-
# do not track vendored files
|
|
18
|
-
add_filter '/vendor'
|
|
19
|
-
add_filter '/.vendor'
|
|
20
|
-
|
|
21
|
-
enable_coverage :branch
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
SimpleCov.formatters = [
|
|
25
|
-
SimpleCov::Formatter::Console,
|
|
26
|
-
SimpleCov::Formatter::Codecov,
|
|
27
|
-
]
|
|
28
|
-
end
|
|
29
|
-
|
|
30
6
|
Dir['./lib/beaker/hypervisor/*.rb'].sort.each { |file| require file }
|
|
31
7
|
|
|
32
8
|
# setup & require beaker's spec_helper.rb
|
metadata
CHANGED
|
@@ -1,29 +1,48 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: beaker-vmware
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.1
|
|
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
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
|
-
- - "
|
|
16
|
+
- - ">="
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
18
|
version: '2.4'
|
|
19
|
+
- - "<"
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '4'
|
|
20
22
|
type: :development
|
|
21
23
|
prerelease: false
|
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
25
|
requirements:
|
|
24
|
-
- - "
|
|
26
|
+
- - ">="
|
|
25
27
|
- !ruby/object:Gem::Version
|
|
26
28
|
version: '2.4'
|
|
29
|
+
- - "<"
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: '4'
|
|
32
|
+
- !ruby/object:Gem::Dependency
|
|
33
|
+
name: ostruct
|
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
|
35
|
+
requirements:
|
|
36
|
+
- - "<"
|
|
37
|
+
- !ruby/object:Gem::Version
|
|
38
|
+
version: '0.7'
|
|
39
|
+
type: :development
|
|
40
|
+
prerelease: false
|
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
42
|
+
requirements:
|
|
43
|
+
- - "<"
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '0.7'
|
|
27
46
|
- !ruby/object:Gem::Dependency
|
|
28
47
|
name: rake
|
|
29
48
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -62,30 +81,36 @@ dependencies:
|
|
|
62
81
|
name: rspec-its
|
|
63
82
|
requirement: !ruby/object:Gem::Requirement
|
|
64
83
|
requirements:
|
|
65
|
-
- - "
|
|
84
|
+
- - ">="
|
|
66
85
|
- !ruby/object:Gem::Version
|
|
67
86
|
version: '1.3'
|
|
87
|
+
- - "<"
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '3'
|
|
68
90
|
type: :development
|
|
69
91
|
prerelease: false
|
|
70
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
71
93
|
requirements:
|
|
72
|
-
- - "
|
|
94
|
+
- - ">="
|
|
73
95
|
- !ruby/object:Gem::Version
|
|
74
96
|
version: '1.3'
|
|
97
|
+
- - "<"
|
|
98
|
+
- !ruby/object:Gem::Version
|
|
99
|
+
version: '3'
|
|
75
100
|
- !ruby/object:Gem::Dependency
|
|
76
101
|
name: voxpupuli-rubocop
|
|
77
102
|
requirement: !ruby/object:Gem::Requirement
|
|
78
103
|
requirements:
|
|
79
104
|
- - "~>"
|
|
80
105
|
- !ruby/object:Gem::Version
|
|
81
|
-
version:
|
|
106
|
+
version: 5.1.0
|
|
82
107
|
type: :development
|
|
83
108
|
prerelease: false
|
|
84
109
|
version_requirements: !ruby/object:Gem::Requirement
|
|
85
110
|
requirements:
|
|
86
111
|
- - "~>"
|
|
87
112
|
- !ruby/object:Gem::Version
|
|
88
|
-
version:
|
|
113
|
+
version: 5.1.0
|
|
89
114
|
- !ruby/object:Gem::Dependency
|
|
90
115
|
name: beaker
|
|
91
116
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -95,7 +120,7 @@ dependencies:
|
|
|
95
120
|
version: '4'
|
|
96
121
|
- - "<"
|
|
97
122
|
- !ruby/object:Gem::Version
|
|
98
|
-
version: '
|
|
123
|
+
version: '8'
|
|
99
124
|
type: :runtime
|
|
100
125
|
prerelease: false
|
|
101
126
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -105,7 +130,7 @@ dependencies:
|
|
|
105
130
|
version: '4'
|
|
106
131
|
- - "<"
|
|
107
132
|
- !ruby/object:Gem::Version
|
|
108
|
-
version: '
|
|
133
|
+
version: '8'
|
|
109
134
|
- !ruby/object:Gem::Dependency
|
|
110
135
|
name: fission
|
|
111
136
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -157,12 +182,12 @@ extensions: []
|
|
|
157
182
|
extra_rdoc_files: []
|
|
158
183
|
files:
|
|
159
184
|
- ".github/dependabot.yml"
|
|
185
|
+
- ".github/release.yml"
|
|
160
186
|
- ".github/workflows/release.yml"
|
|
161
187
|
- ".github/workflows/test.yml"
|
|
162
188
|
- ".gitignore"
|
|
163
189
|
- ".rubocop.yml"
|
|
164
190
|
- ".rubocop_todo.yml"
|
|
165
|
-
- ".simplecov"
|
|
166
191
|
- CHANGELOG.md
|
|
167
192
|
- Gemfile
|
|
168
193
|
- LICENSE
|
|
@@ -190,7 +215,6 @@ homepage: https://github.com/voxpupuli/beaker-vmware
|
|
|
190
215
|
licenses:
|
|
191
216
|
- Apache-2.0
|
|
192
217
|
metadata: {}
|
|
193
|
-
post_install_message:
|
|
194
218
|
rdoc_options: []
|
|
195
219
|
require_paths:
|
|
196
220
|
- lib
|
|
@@ -198,15 +222,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
198
222
|
requirements:
|
|
199
223
|
- - ">="
|
|
200
224
|
- !ruby/object:Gem::Version
|
|
201
|
-
version: '2
|
|
225
|
+
version: '3.2'
|
|
202
226
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
227
|
requirements:
|
|
204
228
|
- - ">="
|
|
205
229
|
- !ruby/object:Gem::Version
|
|
206
230
|
version: '0'
|
|
207
231
|
requirements: []
|
|
208
|
-
rubygems_version:
|
|
209
|
-
signing_key:
|
|
232
|
+
rubygems_version: 4.0.3
|
|
210
233
|
specification_version: 4
|
|
211
234
|
summary: Beaker DSL Extension Helpers!
|
|
212
235
|
test_files: []
|