beaker-vcloud 2.0.0 → 2.2.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/release.yml +41 -0
- data/.github/workflows/release.yml +91 -17
- data/.github/workflows/test.yml +19 -15
- data/.rubocop_todo.yml +10 -53
- data/CHANGELOG.md +25 -0
- data/Gemfile +0 -5
- data/beaker-vcloud.gemspec +7 -7
- data/lib/beaker/hypervisor/vcloud.rb +1 -1
- data/lib/beaker-vcloud/version.rb +1 -1
- data/spec/spec_helper.rb +0 -24
- metadata +38 -17
- 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: '08bf1c198f5b39d15e9cce2f8e9ef18e712313a9d1a946a2b3660d7e94050632'
|
|
4
|
+
data.tar.gz: 37f1b56ca2a0e89023f86cc304d3ca8ed62c653828979333c76a6593f4df421b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d4ff069266088639032aa6ba442e94bd01c246e781fcc18249b5ff84188326e8077e581d0112d2fc5a92b4736da62102b38b0d36927842ad8d6f04007a86734
|
|
7
|
+
data.tar.gz: bedc8a8cedf790656d93098a932b0d6d735ace76fb552859ebdea65b63a530a5a0a81ead15c01a91a1487587d2e9581f7f114c22de21a68b81f265979a8dbb3d
|
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
|
@@ -6,14 +6,19 @@ on:
|
|
|
6
6
|
branches:
|
|
7
7
|
- master
|
|
8
8
|
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
9
12
|
env:
|
|
10
13
|
BUNDLE_WITHOUT: release
|
|
11
14
|
|
|
12
15
|
jobs:
|
|
13
|
-
|
|
16
|
+
rubocop_and_matrix:
|
|
14
17
|
runs-on: ubuntu-latest
|
|
18
|
+
outputs:
|
|
19
|
+
ruby: ${{ steps.ruby.outputs.versions }}
|
|
15
20
|
steps:
|
|
16
|
-
- uses: actions/checkout@
|
|
21
|
+
- uses: actions/checkout@v6
|
|
17
22
|
- name: Install Ruby ${{ matrix.ruby }}
|
|
18
23
|
uses: ruby/setup-ruby@v1
|
|
19
24
|
with:
|
|
@@ -21,23 +26,18 @@ jobs:
|
|
|
21
26
|
bundler-cache: true
|
|
22
27
|
- name: Run Rubocop
|
|
23
28
|
run: bundle exec rake rubocop
|
|
29
|
+
- id: ruby
|
|
30
|
+
uses: voxpupuli/ruby-version@v2
|
|
24
31
|
|
|
25
32
|
test:
|
|
33
|
+
needs: rubocop_and_matrix
|
|
26
34
|
runs-on: ubuntu-latest
|
|
27
35
|
strategy:
|
|
28
36
|
fail-fast: false
|
|
29
37
|
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 }}
|
|
38
|
+
ruby: ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
|
|
39
39
|
steps:
|
|
40
|
-
- uses: actions/checkout@
|
|
40
|
+
- uses: actions/checkout@v6
|
|
41
41
|
- name: Install Ruby ${{ matrix.ruby }}
|
|
42
42
|
uses: ruby/setup-ruby@v1
|
|
43
43
|
with:
|
|
@@ -49,10 +49,14 @@ jobs:
|
|
|
49
49
|
run: gem build --strict --verbose *.gemspec
|
|
50
50
|
|
|
51
51
|
tests:
|
|
52
|
+
if: always()
|
|
52
53
|
needs:
|
|
53
|
-
-
|
|
54
|
+
- rubocop_and_matrix
|
|
54
55
|
- test
|
|
55
|
-
runs-on: ubuntu-
|
|
56
|
+
runs-on: ubuntu-24.04
|
|
56
57
|
name: Test suite
|
|
57
58
|
steps:
|
|
58
|
-
-
|
|
59
|
+
- name: Decide whether the needed jobs succeeded or failed
|
|
60
|
+
uses: re-actors/alls-green@release/v1
|
|
61
|
+
with:
|
|
62
|
+
jobs: ${{ toJSON(needs) }}
|
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: 1
|
|
10
|
-
# Configuration parameters: Severity, Include.
|
|
11
|
-
# Include: **/*.gemspec
|
|
12
|
-
Gemspec/RequiredRubyVersion:
|
|
13
|
-
Exclude:
|
|
14
|
-
- 'beaker-vcloud.gemspec'
|
|
15
|
-
|
|
16
9
|
# Offense count: 1
|
|
17
10
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
18
11
|
# Configuration parameters: AllowSafeAssignment.
|
|
@@ -31,19 +24,6 @@ Lint/MissingSuper:
|
|
|
31
24
|
Exclude:
|
|
32
25
|
- 'lib/beaker/hypervisor/vcloud.rb'
|
|
33
26
|
|
|
34
|
-
# Offense count: 1
|
|
35
|
-
# Configuration parameters: AllowComments, AllowNil.
|
|
36
|
-
Lint/SuppressedException:
|
|
37
|
-
Exclude:
|
|
38
|
-
- 'Rakefile'
|
|
39
|
-
|
|
40
|
-
# Offense count: 2
|
|
41
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
42
|
-
# Configuration parameters: AutoCorrect.
|
|
43
|
-
Lint/UselessAssignment:
|
|
44
|
-
Exclude:
|
|
45
|
-
- 'Rakefile'
|
|
46
|
-
|
|
47
27
|
# Offense count: 3
|
|
48
28
|
Naming/AccessorMethodName:
|
|
49
29
|
Exclude:
|
|
@@ -51,8 +31,9 @@ Naming/AccessorMethodName:
|
|
|
51
31
|
- 'spec/mock_vsphere_helper.rb'
|
|
52
32
|
|
|
53
33
|
# Offense count: 30
|
|
54
|
-
# Configuration parameters: EnforcedStyle, AllowedPatterns.
|
|
34
|
+
# Configuration parameters: EnforcedStyle, AllowedPatterns, ForbiddenIdentifiers, ForbiddenPatterns.
|
|
55
35
|
# SupportedStyles: snake_case, camelCase
|
|
36
|
+
# ForbiddenIdentifiers: __id__, __send__
|
|
56
37
|
Naming/MethodName:
|
|
57
38
|
Exclude:
|
|
58
39
|
- 'spec/mock_vsphere.rb'
|
|
@@ -67,7 +48,7 @@ Naming/MethodParameterName:
|
|
|
67
48
|
- 'spec/mock_vsphere_helper.rb'
|
|
68
49
|
|
|
69
50
|
# Offense count: 16
|
|
70
|
-
# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns.
|
|
51
|
+
# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns, ForbiddenIdentifiers, ForbiddenPatterns.
|
|
71
52
|
# SupportedStyles: snake_case, camelCase
|
|
72
53
|
Naming/VariableName:
|
|
73
54
|
Exclude:
|
|
@@ -128,7 +109,7 @@ RSpec/VerifiedDoubles:
|
|
|
128
109
|
Exclude:
|
|
129
110
|
- 'spec/beaker/hypervisor/vcloud_spec.rb'
|
|
130
111
|
|
|
131
|
-
# Offense count:
|
|
112
|
+
# Offense count: 2
|
|
132
113
|
# This cop supports safe autocorrection (--autocorrect).
|
|
133
114
|
Rake/Desc:
|
|
134
115
|
Exclude:
|
|
@@ -170,13 +151,13 @@ Style/FormatString:
|
|
|
170
151
|
Exclude:
|
|
171
152
|
- 'lib/beaker/hypervisor/vcloud.rb'
|
|
172
153
|
|
|
173
|
-
# Offense count:
|
|
154
|
+
# Offense count: 10
|
|
174
155
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
175
156
|
# Configuration parameters: EnforcedStyle.
|
|
176
157
|
# SupportedStyles: always, always_true, never
|
|
177
158
|
Style/FrozenStringLiteralComment:
|
|
178
159
|
Exclude:
|
|
179
|
-
- '
|
|
160
|
+
- '**/*.arb'
|
|
180
161
|
- 'Gemfile'
|
|
181
162
|
- 'Rakefile'
|
|
182
163
|
- 'beaker-vcloud.gemspec'
|
|
@@ -202,27 +183,18 @@ Style/IfUnlessModifier:
|
|
|
202
183
|
Exclude:
|
|
203
184
|
- 'lib/beaker/hypervisor/vcloud.rb'
|
|
204
185
|
|
|
205
|
-
# Offense count: 1
|
|
206
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
207
|
-
# Configuration parameters: AllowedMethods.
|
|
208
|
-
# AllowedMethods: nonzero?
|
|
209
|
-
Style/IfWithBooleanLiteralBranches:
|
|
210
|
-
Exclude:
|
|
211
|
-
- 'Rakefile'
|
|
212
|
-
|
|
213
186
|
# Offense count: 3
|
|
214
187
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
215
188
|
Style/LineEndConcatenation:
|
|
216
189
|
Exclude:
|
|
217
190
|
- 'lib/beaker/hypervisor/vcloud.rb'
|
|
218
191
|
|
|
219
|
-
# Offense count:
|
|
192
|
+
# Offense count: 2
|
|
220
193
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
221
194
|
# Configuration parameters: EnforcedStyle.
|
|
222
195
|
# SupportedStyles: literals, strict
|
|
223
196
|
Style/MutableConstant:
|
|
224
197
|
Exclude:
|
|
225
|
-
- 'Rakefile'
|
|
226
198
|
- 'bin/beaker-vcloud'
|
|
227
199
|
- 'lib/beaker-vcloud/version.rb'
|
|
228
200
|
|
|
@@ -255,21 +227,6 @@ Style/PreferredHashMethods:
|
|
|
255
227
|
Exclude:
|
|
256
228
|
- 'spec/mock_vsphere_helper.rb'
|
|
257
229
|
|
|
258
|
-
# Offense count: 1
|
|
259
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
260
|
-
# Configuration parameters: Methods.
|
|
261
|
-
Style/RedundantArgument:
|
|
262
|
-
Exclude:
|
|
263
|
-
- 'Rakefile'
|
|
264
|
-
|
|
265
|
-
# Offense count: 2
|
|
266
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
267
|
-
# Configuration parameters: AutoCorrect, AllowComments.
|
|
268
|
-
Style/RedundantInitialize:
|
|
269
|
-
Exclude:
|
|
270
|
-
- 'spec/mock_vsphere.rb'
|
|
271
|
-
- 'spec/mock_vsphere_helper.rb'
|
|
272
|
-
|
|
273
230
|
# Offense count: 3
|
|
274
231
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
275
232
|
# Configuration parameters: Mode.
|
|
@@ -286,7 +243,7 @@ Style/ZeroLengthPredicate:
|
|
|
286
243
|
|
|
287
244
|
# Offense count: 4
|
|
288
245
|
# This cop supports safe autocorrection (--autocorrect).
|
|
289
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
|
246
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
|
|
290
247
|
# URISchemes: http, https
|
|
291
248
|
Layout/LineLength:
|
|
292
249
|
Max: 152
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.2.0](https://github.com/voxpupuli/beaker-vcloud/tree/2.2.0) (2026-02-28)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-vcloud/compare/2.1.0...2.2.0)
|
|
6
|
+
|
|
7
|
+
**Implemented enhancements:**
|
|
8
|
+
|
|
9
|
+
- Add Ruby 4 support [\#51](https://github.com/voxpupuli/beaker-vcloud/pull/51) ([bastelfreak](https://github.com/bastelfreak))
|
|
10
|
+
- fakefs: Allow 3.x [\#50](https://github.com/voxpupuli/beaker-vcloud/pull/50) ([bastelfreak](https://github.com/bastelfreak))
|
|
11
|
+
- beaker-vmware: Allow 3.x [\#49](https://github.com/voxpupuli/beaker-vcloud/pull/49) ([bastelfreak](https://github.com/bastelfreak))
|
|
12
|
+
- rspec-its: Allow 2.x [\#48](https://github.com/voxpupuli/beaker-vcloud/pull/48) ([bastelfreak](https://github.com/bastelfreak))
|
|
13
|
+
- beaker: Allow 7.x [\#39](https://github.com/voxpupuli/beaker-vcloud/pull/39) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
14
|
+
|
|
15
|
+
## [2.1.0](https://github.com/voxpupuli/beaker-vcloud/tree/2.1.0) (2024-05-28)
|
|
16
|
+
|
|
17
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-vcloud/compare/2.0.0...2.1.0)
|
|
18
|
+
|
|
19
|
+
**Implemented enhancements:**
|
|
20
|
+
|
|
21
|
+
- beaker: Allow 6.x [\#33](https://github.com/voxpupuli/beaker-vcloud/pull/33) ([bastelfreak](https://github.com/bastelfreak))
|
|
22
|
+
- Run release tasks on Ruby 3.3 [\#30](https://github.com/voxpupuli/beaker-vcloud/pull/30) ([bastelfreak](https://github.com/bastelfreak))
|
|
23
|
+
|
|
24
|
+
**Merged pull requests:**
|
|
25
|
+
|
|
26
|
+
- Update voxpupuli-rubocop requirement from ~\> 2.6.0 to ~\> 2.7.0 [\#32](https://github.com/voxpupuli/beaker-vcloud/pull/32) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
27
|
+
|
|
3
28
|
## [2.0.0](https://github.com/voxpupuli/beaker-vcloud/tree/2.0.0) (2024-04-23)
|
|
4
29
|
|
|
5
30
|
[Full Changelog](https://github.com/voxpupuli/beaker-vcloud/compare/1.1.0...2.0.0)
|
data/Gemfile
CHANGED
|
@@ -6,8 +6,3 @@ group :release 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/beaker-vcloud.gemspec
CHANGED
|
@@ -18,15 +18,15 @@ Gem::Specification.new do |s|
|
|
|
18
18
|
s.required_ruby_version = '>= 2.7'
|
|
19
19
|
|
|
20
20
|
# Testing dependencies
|
|
21
|
-
s.add_development_dependency 'fakefs', '
|
|
21
|
+
s.add_development_dependency 'fakefs', '>= 2.5', '< 4'
|
|
22
22
|
s.add_development_dependency 'rake', '~> 13.2', '>= 13.2.1'
|
|
23
23
|
s.add_development_dependency 'rspec', '~> 3.0'
|
|
24
|
-
s.add_development_dependency 'rspec-its', '
|
|
25
|
-
s.add_development_dependency 'voxpupuli-rubocop', '~>
|
|
24
|
+
s.add_development_dependency 'rspec-its', '>= 1.3', '< 3'
|
|
25
|
+
s.add_development_dependency 'voxpupuli-rubocop', '~> 3.1.0'
|
|
26
26
|
|
|
27
27
|
# Run time dependencies
|
|
28
|
-
s.
|
|
29
|
-
s.
|
|
30
|
-
s.
|
|
31
|
-
s.
|
|
28
|
+
s.add_dependency 'beaker', '>= 5.8', '< 8'
|
|
29
|
+
s.add_dependency 'beaker-vmware', '>= 2.1', '< 4'
|
|
30
|
+
s.add_dependency 'rbvmomi2', '~> 3.7', '>= 3.7.1'
|
|
31
|
+
s.add_dependency 'stringify-hash', '~> 0.0.0'
|
|
32
32
|
end
|
|
@@ -161,7 +161,7 @@ module Beaker
|
|
|
161
161
|
|
|
162
162
|
try = (Time.now - start) / 5
|
|
163
163
|
@vsphere_helper.wait_for_tasks(tasks, try, attempts)
|
|
164
|
-
@logger.notify format('Spent %.2f seconds deploying VMs',
|
|
164
|
+
@logger.notify format('Spent %.2f seconds deploying VMs', Time.now - start)
|
|
165
165
|
|
|
166
166
|
try = (Time.now - start) / 5
|
|
167
167
|
duration = run_and_report_duration do
|
data/spec/spec_helper.rb
CHANGED
|
@@ -2,30 +2,6 @@ require 'beaker'
|
|
|
2
2
|
require 'mock_vsphere'
|
|
3
3
|
require 'mock_vsphere_helper'
|
|
4
4
|
|
|
5
|
-
begin
|
|
6
|
-
require 'simplecov'
|
|
7
|
-
require 'simplecov-console'
|
|
8
|
-
require 'codecov'
|
|
9
|
-
rescue LoadError
|
|
10
|
-
# Do nothing if no required gem installed
|
|
11
|
-
else
|
|
12
|
-
SimpleCov.start do
|
|
13
|
-
track_files 'lib/**/*.rb'
|
|
14
|
-
|
|
15
|
-
add_filter '/spec'
|
|
16
|
-
# do not track vendored files
|
|
17
|
-
add_filter '/vendor'
|
|
18
|
-
add_filter '/.vendor'
|
|
19
|
-
|
|
20
|
-
enable_coverage :branch
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
SimpleCov.formatters = [
|
|
24
|
-
SimpleCov::Formatter::Console,
|
|
25
|
-
SimpleCov::Formatter::Codecov,
|
|
26
|
-
]
|
|
27
|
-
end
|
|
28
|
-
|
|
29
5
|
Dir['./lib/beaker/hypervisor/*.rb'].sort.each { |file| require file }
|
|
30
6
|
|
|
31
7
|
# setup & require beaker's spec_helper.rb
|
metadata
CHANGED
|
@@ -1,29 +1,34 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: beaker-vcloud
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.2.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
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
|
-
- - "
|
|
16
|
+
- - ">="
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
18
|
version: '2.5'
|
|
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.5'
|
|
29
|
+
- - "<"
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: '4'
|
|
27
32
|
- !ruby/object:Gem::Dependency
|
|
28
33
|
name: rake
|
|
29
34
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -62,58 +67,76 @@ dependencies:
|
|
|
62
67
|
name: rspec-its
|
|
63
68
|
requirement: !ruby/object:Gem::Requirement
|
|
64
69
|
requirements:
|
|
65
|
-
- - "
|
|
70
|
+
- - ">="
|
|
66
71
|
- !ruby/object:Gem::Version
|
|
67
72
|
version: '1.3'
|
|
73
|
+
- - "<"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '3'
|
|
68
76
|
type: :development
|
|
69
77
|
prerelease: false
|
|
70
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
71
79
|
requirements:
|
|
72
|
-
- - "
|
|
80
|
+
- - ">="
|
|
73
81
|
- !ruby/object:Gem::Version
|
|
74
82
|
version: '1.3'
|
|
83
|
+
- - "<"
|
|
84
|
+
- !ruby/object:Gem::Version
|
|
85
|
+
version: '3'
|
|
75
86
|
- !ruby/object:Gem::Dependency
|
|
76
87
|
name: voxpupuli-rubocop
|
|
77
88
|
requirement: !ruby/object:Gem::Requirement
|
|
78
89
|
requirements:
|
|
79
90
|
- - "~>"
|
|
80
91
|
- !ruby/object:Gem::Version
|
|
81
|
-
version:
|
|
92
|
+
version: 3.1.0
|
|
82
93
|
type: :development
|
|
83
94
|
prerelease: false
|
|
84
95
|
version_requirements: !ruby/object:Gem::Requirement
|
|
85
96
|
requirements:
|
|
86
97
|
- - "~>"
|
|
87
98
|
- !ruby/object:Gem::Version
|
|
88
|
-
version:
|
|
99
|
+
version: 3.1.0
|
|
89
100
|
- !ruby/object:Gem::Dependency
|
|
90
101
|
name: beaker
|
|
91
102
|
requirement: !ruby/object:Gem::Requirement
|
|
92
103
|
requirements:
|
|
93
|
-
- - "
|
|
104
|
+
- - ">="
|
|
94
105
|
- !ruby/object:Gem::Version
|
|
95
106
|
version: '5.8'
|
|
107
|
+
- - "<"
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: '8'
|
|
96
110
|
type: :runtime
|
|
97
111
|
prerelease: false
|
|
98
112
|
version_requirements: !ruby/object:Gem::Requirement
|
|
99
113
|
requirements:
|
|
100
|
-
- - "
|
|
114
|
+
- - ">="
|
|
101
115
|
- !ruby/object:Gem::Version
|
|
102
116
|
version: '5.8'
|
|
117
|
+
- - "<"
|
|
118
|
+
- !ruby/object:Gem::Version
|
|
119
|
+
version: '8'
|
|
103
120
|
- !ruby/object:Gem::Dependency
|
|
104
121
|
name: beaker-vmware
|
|
105
122
|
requirement: !ruby/object:Gem::Requirement
|
|
106
123
|
requirements:
|
|
107
|
-
- - "
|
|
124
|
+
- - ">="
|
|
108
125
|
- !ruby/object:Gem::Version
|
|
109
126
|
version: '2.1'
|
|
127
|
+
- - "<"
|
|
128
|
+
- !ruby/object:Gem::Version
|
|
129
|
+
version: '4'
|
|
110
130
|
type: :runtime
|
|
111
131
|
prerelease: false
|
|
112
132
|
version_requirements: !ruby/object:Gem::Requirement
|
|
113
133
|
requirements:
|
|
114
|
-
- - "
|
|
134
|
+
- - ">="
|
|
115
135
|
- !ruby/object:Gem::Version
|
|
116
136
|
version: '2.1'
|
|
137
|
+
- - "<"
|
|
138
|
+
- !ruby/object:Gem::Version
|
|
139
|
+
version: '4'
|
|
117
140
|
- !ruby/object:Gem::Dependency
|
|
118
141
|
name: rbvmomi2
|
|
119
142
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -157,12 +180,12 @@ extensions: []
|
|
|
157
180
|
extra_rdoc_files: []
|
|
158
181
|
files:
|
|
159
182
|
- ".github/dependabot.yml"
|
|
183
|
+
- ".github/release.yml"
|
|
160
184
|
- ".github/workflows/release.yml"
|
|
161
185
|
- ".github/workflows/test.yml"
|
|
162
186
|
- ".gitignore"
|
|
163
187
|
- ".rubocop.yml"
|
|
164
188
|
- ".rubocop_todo.yml"
|
|
165
|
-
- ".simplecov"
|
|
166
189
|
- CHANGELOG.md
|
|
167
190
|
- Gemfile
|
|
168
191
|
- LICENSE
|
|
@@ -180,7 +203,6 @@ homepage: https://github.com/voxpupuli/beaker-vcloud
|
|
|
180
203
|
licenses:
|
|
181
204
|
- Apache-2.0
|
|
182
205
|
metadata: {}
|
|
183
|
-
post_install_message:
|
|
184
206
|
rdoc_options: []
|
|
185
207
|
require_paths:
|
|
186
208
|
- lib
|
|
@@ -195,8 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
195
217
|
- !ruby/object:Gem::Version
|
|
196
218
|
version: '0'
|
|
197
219
|
requirements: []
|
|
198
|
-
rubygems_version:
|
|
199
|
-
signing_key:
|
|
220
|
+
rubygems_version: 4.0.3
|
|
200
221
|
specification_version: 4
|
|
201
222
|
summary: Beaker DSL Extension Helpers!
|
|
202
223
|
test_files: []
|