beaker-vmware 0.3.0 → 2.0.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 +17 -0
- data/.github/workflows/release.yml +32 -0
- data/.github/workflows/test.yml +56 -0
- data/.rubocop.yml +5 -0
- data/.rubocop_todo.yml +266 -0
- data/.simplecov +1 -1
- data/CHANGELOG.md +62 -0
- data/Gemfile +6 -21
- data/README.md +43 -9
- data/Rakefile +34 -119
- data/beaker-vmware.gemspec +20 -30
- data/bin/beaker-vmware +1 -3
- data/lib/beaker/hypervisor/fusion.rb +21 -23
- data/lib/beaker/hypervisor/vsphere.rb +23 -24
- data/lib/beaker/hypervisor/vsphere_helper.rb +78 -81
- data/lib/beaker-vmware/version.rb +1 -1
- data/spec/beaker/hypervisor/fusion_spec.rb +14 -16
- data/spec/beaker/hypervisor/vsphere_helper_spec.rb +120 -124
- data/spec/beaker/hypervisor/vsphere_spec.rb +28 -40
- data/spec/mock_fission.rb +63 -0
- data/spec/mock_vsphere.rb +284 -0
- data/spec/mock_vsphere_helper.rb +167 -0
- data/spec/spec_helper.rb +28 -3
- metadata +65 -59
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: be69407550d964113e9fb9e3fdcd567c903fbff2e137dd716143e2abe38bd701
|
4
|
+
data.tar.gz: 6b9a1365fec6cbcece962a6906588deeddd37eb87f7b939c9b78c01ab5d8b77e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dda90f1f25eef41f3cdf32407d95ca6f2482b5de059ee443909f1174e6fdcd0e42f494792c70f41d279c3c3a004ede3e497ad0f461a634f26567eb3882efd78c
|
7
|
+
data.tar.gz: f0293b346e71faec357550a5c955ef5da222b91fba56cfbd41ff69b2899df0223bae1a34d37f5072e60dc56abe9c0fe6c7e59e807d7b02a42847e8b1cf18d069
|
@@ -0,0 +1,17 @@
|
|
1
|
+
version: 2
|
2
|
+
updates:
|
3
|
+
# raise PRs for gem updates
|
4
|
+
- package-ecosystem: bundler
|
5
|
+
directory: "/"
|
6
|
+
schedule:
|
7
|
+
interval: daily
|
8
|
+
time: "13:00"
|
9
|
+
open-pull-requests-limit: 10
|
10
|
+
|
11
|
+
# Maintain dependencies for GitHub Actions
|
12
|
+
- package-ecosystem: github-actions
|
13
|
+
directory: "/"
|
14
|
+
schedule:
|
15
|
+
interval: daily
|
16
|
+
time: "13:00"
|
17
|
+
open-pull-requests-limit: 10
|
@@ -0,0 +1,32 @@
|
|
1
|
+
name: Release
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- '*'
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
release:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
if: github.repository_owner == 'voxpupuli'
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v3
|
14
|
+
- name: Install Ruby 3.0
|
15
|
+
uses: ruby/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: '3.0'
|
18
|
+
env:
|
19
|
+
BUNDLE_WITHOUT: release
|
20
|
+
- name: Build gem
|
21
|
+
run: gem build *.gemspec
|
22
|
+
- name: Publish gem to rubygems.org
|
23
|
+
run: gem push *.gem
|
24
|
+
env:
|
25
|
+
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
|
26
|
+
- name: Setup GitHub packages access
|
27
|
+
run: |
|
28
|
+
mkdir -p ~/.gem
|
29
|
+
echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials
|
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
|
@@ -0,0 +1,56 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request: {}
|
5
|
+
push:
|
6
|
+
branches:
|
7
|
+
- master
|
8
|
+
|
9
|
+
env:
|
10
|
+
BUNDLE_WITHOUT: release
|
11
|
+
|
12
|
+
jobs:
|
13
|
+
rubocop:
|
14
|
+
runs-on: ubuntu-latest
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v3
|
17
|
+
- name: Install Ruby ${{ matrix.ruby }}
|
18
|
+
uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: "3.1"
|
21
|
+
bundler-cache: true
|
22
|
+
- name: Run Rubocop
|
23
|
+
run: bundle exec rake rubocop
|
24
|
+
|
25
|
+
test:
|
26
|
+
runs-on: ubuntu-latest
|
27
|
+
strategy:
|
28
|
+
fail-fast: false
|
29
|
+
matrix:
|
30
|
+
include:
|
31
|
+
- ruby: "2.7"
|
32
|
+
- ruby: "3.0"
|
33
|
+
coverage: "yes"
|
34
|
+
- ruby: "3.1"
|
35
|
+
env:
|
36
|
+
COVERAGE: ${{ matrix.coverage }}
|
37
|
+
steps:
|
38
|
+
- uses: actions/checkout@v3
|
39
|
+
- name: Install Ruby ${{ matrix.ruby }}
|
40
|
+
uses: ruby/setup-ruby@v1
|
41
|
+
with:
|
42
|
+
ruby-version: ${{ matrix.ruby }}
|
43
|
+
bundler-cache: true
|
44
|
+
- name: Run tests
|
45
|
+
run: bundle exec rake
|
46
|
+
- name: Build gem
|
47
|
+
run: gem build *.gemspec
|
48
|
+
|
49
|
+
tests:
|
50
|
+
needs:
|
51
|
+
- rubocop
|
52
|
+
- test
|
53
|
+
runs-on: ubuntu-latest
|
54
|
+
name: Test suite
|
55
|
+
steps:
|
56
|
+
- run: echo Test suite completed
|
data/.rubocop.yml
ADDED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,266 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2023-03-27 20:09:11 UTC using RuboCop version 1.48.1.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 2
|
10
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
11
|
+
# Configuration parameters: AllowSafeAssignment.
|
12
|
+
Lint/AssignmentInCondition:
|
13
|
+
Exclude:
|
14
|
+
- 'lib/beaker/hypervisor/vsphere.rb'
|
15
|
+
|
16
|
+
# Offense count: 2
|
17
|
+
Lint/DuplicateMethods:
|
18
|
+
Exclude:
|
19
|
+
- 'spec/mock_vsphere_helper.rb'
|
20
|
+
|
21
|
+
# Offense count: 2
|
22
|
+
Lint/MissingSuper:
|
23
|
+
Exclude:
|
24
|
+
- 'lib/beaker/hypervisor/fusion.rb'
|
25
|
+
- 'lib/beaker/hypervisor/vsphere.rb'
|
26
|
+
|
27
|
+
# Offense count: 1
|
28
|
+
# Configuration parameters: AllowComments, AllowNil.
|
29
|
+
Lint/SuppressedException:
|
30
|
+
Exclude:
|
31
|
+
- 'Rakefile'
|
32
|
+
|
33
|
+
# Offense count: 3
|
34
|
+
# Configuration parameters: CheckForMethodsWithNoSideEffects.
|
35
|
+
Lint/Void:
|
36
|
+
Exclude:
|
37
|
+
- 'spec/beaker/hypervisor/vsphere_spec.rb'
|
38
|
+
|
39
|
+
# Offense count: 4
|
40
|
+
Naming/AccessorMethodName:
|
41
|
+
Exclude:
|
42
|
+
- 'spec/mock_fission.rb'
|
43
|
+
- 'spec/mock_vsphere.rb'
|
44
|
+
- 'spec/mock_vsphere_helper.rb'
|
45
|
+
|
46
|
+
# Offense count: 1
|
47
|
+
# Configuration parameters: ForbiddenDelimiters.
|
48
|
+
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
49
|
+
Naming/HeredocDelimiterNaming:
|
50
|
+
Exclude:
|
51
|
+
- 'Rakefile'
|
52
|
+
|
53
|
+
# Offense count: 30
|
54
|
+
# Configuration parameters: EnforcedStyle, AllowedPatterns.
|
55
|
+
# SupportedStyles: snake_case, camelCase
|
56
|
+
Naming/MethodName:
|
57
|
+
Exclude:
|
58
|
+
- 'spec/mock_vsphere.rb'
|
59
|
+
- 'spec/mock_vsphere_helper.rb'
|
60
|
+
|
61
|
+
# Offense count: 11
|
62
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
63
|
+
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
|
64
|
+
Naming/MethodParameterName:
|
65
|
+
Exclude:
|
66
|
+
- 'lib/beaker/hypervisor/vsphere_helper.rb'
|
67
|
+
- 'spec/mock_vsphere.rb'
|
68
|
+
- 'spec/mock_vsphere_helper.rb'
|
69
|
+
|
70
|
+
# Offense count: 28
|
71
|
+
# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns.
|
72
|
+
# SupportedStyles: snake_case, camelCase
|
73
|
+
Naming/VariableName:
|
74
|
+
Exclude:
|
75
|
+
- 'lib/beaker/hypervisor/vsphere_helper.rb'
|
76
|
+
- 'spec/mock_vsphere.rb'
|
77
|
+
- 'spec/mock_vsphere_helper.rb'
|
78
|
+
|
79
|
+
# Offense count: 1
|
80
|
+
# Configuration parameters: MinSize.
|
81
|
+
Performance/CollectionLiteralInLoop:
|
82
|
+
Exclude:
|
83
|
+
- 'lib/beaker/hypervisor/vsphere_helper.rb'
|
84
|
+
|
85
|
+
# Offense count: 1
|
86
|
+
RSpec/AnyInstance:
|
87
|
+
Exclude:
|
88
|
+
- 'spec/beaker/hypervisor/fusion_spec.rb'
|
89
|
+
|
90
|
+
# Offense count: 12
|
91
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
92
|
+
# Configuration parameters: SkipBlocks, EnforcedStyle.
|
93
|
+
# SupportedStyles: described_class, explicit
|
94
|
+
RSpec/DescribedClass:
|
95
|
+
Exclude:
|
96
|
+
- 'spec/beaker/hypervisor/fusion_spec.rb'
|
97
|
+
- 'spec/beaker/hypervisor/vsphere_helper_spec.rb'
|
98
|
+
- 'spec/beaker/hypervisor/vsphere_spec.rb'
|
99
|
+
|
100
|
+
# Offense count: 6
|
101
|
+
# Configuration parameters: CountAsOne.
|
102
|
+
RSpec/ExampleLength:
|
103
|
+
Max: 8
|
104
|
+
|
105
|
+
# Offense count: 1
|
106
|
+
# Configuration parameters: .
|
107
|
+
# SupportedStyles: have_received, receive
|
108
|
+
RSpec/MessageSpies:
|
109
|
+
EnforcedStyle: receive
|
110
|
+
|
111
|
+
# Offense count: 1
|
112
|
+
# Configuration parameters: AllowedPatterns.
|
113
|
+
# AllowedPatterns: ^expect_, ^assert_
|
114
|
+
RSpec/NoExpectationExample:
|
115
|
+
Exclude:
|
116
|
+
- 'spec/beaker/hypervisor/fusion_spec.rb'
|
117
|
+
|
118
|
+
# Offense count: 5
|
119
|
+
RSpec/UnspecifiedException:
|
120
|
+
Exclude:
|
121
|
+
- 'spec/beaker/hypervisor/fusion_spec.rb'
|
122
|
+
- 'spec/beaker/hypervisor/vsphere_helper_spec.rb'
|
123
|
+
- 'spec/beaker/hypervisor/vsphere_spec.rb'
|
124
|
+
|
125
|
+
# Offense count: 1
|
126
|
+
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
|
127
|
+
RSpec/VerifiedDoubles:
|
128
|
+
Exclude:
|
129
|
+
- 'spec/beaker/hypervisor/vsphere_helper_spec.rb'
|
130
|
+
|
131
|
+
# Offense count: 3
|
132
|
+
# This cop supports safe autocorrection (--autocorrect).
|
133
|
+
Rake/Desc:
|
134
|
+
Exclude:
|
135
|
+
- 'Rakefile'
|
136
|
+
|
137
|
+
# Offense count: 2
|
138
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
139
|
+
# Configuration parameters: EnforcedStyle.
|
140
|
+
# SupportedStyles: always, conditionals
|
141
|
+
Style/AndOr:
|
142
|
+
Exclude:
|
143
|
+
- 'lib/beaker/hypervisor/fusion.rb'
|
144
|
+
- 'lib/beaker/hypervisor/vsphere_helper.rb'
|
145
|
+
|
146
|
+
# Offense count: 12
|
147
|
+
# This cop supports safe autocorrection (--autocorrect).
|
148
|
+
# Configuration parameters: AllowOnConstant, AllowOnSelfClass.
|
149
|
+
Style/CaseEquality:
|
150
|
+
Exclude:
|
151
|
+
- 'spec/beaker/hypervisor/vsphere_helper_spec.rb'
|
152
|
+
|
153
|
+
# Offense count: 7
|
154
|
+
Style/ClassVars:
|
155
|
+
Exclude:
|
156
|
+
- 'spec/mock_fission.rb'
|
157
|
+
- 'spec/mock_vsphere_helper.rb'
|
158
|
+
|
159
|
+
# Offense count: 1
|
160
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
161
|
+
Style/CommentedKeyword:
|
162
|
+
Exclude:
|
163
|
+
- 'lib/beaker/hypervisor/fusion.rb'
|
164
|
+
|
165
|
+
# Offense count: 3
|
166
|
+
# Configuration parameters: AllowedConstants.
|
167
|
+
Style/Documentation:
|
168
|
+
Exclude:
|
169
|
+
- 'spec/**/*'
|
170
|
+
- 'test/**/*'
|
171
|
+
- 'lib/beaker/hypervisor/fusion.rb'
|
172
|
+
- 'lib/beaker/hypervisor/vsphere.rb'
|
173
|
+
- 'lib/beaker/hypervisor/vsphere_helper.rb'
|
174
|
+
|
175
|
+
# Offense count: 3
|
176
|
+
# This cop supports safe autocorrection (--autocorrect).
|
177
|
+
# Configuration parameters: EnforcedStyle.
|
178
|
+
# SupportedStyles: format, sprintf, percent
|
179
|
+
Style/FormatString:
|
180
|
+
Exclude:
|
181
|
+
- 'lib/beaker/hypervisor/fusion.rb'
|
182
|
+
- 'lib/beaker/hypervisor/vsphere.rb'
|
183
|
+
|
184
|
+
# Offense count: 16
|
185
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
186
|
+
# Configuration parameters: EnforcedStyle.
|
187
|
+
# SupportedStyles: always, always_true, never
|
188
|
+
Style/FrozenStringLiteralComment:
|
189
|
+
Enabled: false
|
190
|
+
|
191
|
+
# Offense count: 3
|
192
|
+
# This cop supports safe autocorrection (--autocorrect).
|
193
|
+
Style/IfUnlessModifier:
|
194
|
+
Exclude:
|
195
|
+
- 'lib/beaker/hypervisor/fusion.rb'
|
196
|
+
|
197
|
+
# Offense count: 1
|
198
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
199
|
+
Style/InfiniteLoop:
|
200
|
+
Exclude:
|
201
|
+
- 'lib/beaker/hypervisor/vsphere_helper.rb'
|
202
|
+
|
203
|
+
# Offense count: 2
|
204
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
205
|
+
Style/LineEndConcatenation:
|
206
|
+
Exclude:
|
207
|
+
- 'lib/beaker/hypervisor/vsphere.rb'
|
208
|
+
|
209
|
+
# Offense count: 2
|
210
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
211
|
+
# Configuration parameters: EnforcedStyle.
|
212
|
+
# SupportedStyles: literals, strict
|
213
|
+
Style/MutableConstant:
|
214
|
+
Exclude:
|
215
|
+
- 'bin/beaker-vmware'
|
216
|
+
- 'lib/beaker-vmware/version.rb'
|
217
|
+
|
218
|
+
# Offense count: 2
|
219
|
+
Style/OpenStructUse:
|
220
|
+
Exclude:
|
221
|
+
- 'spec/mock_vsphere.rb'
|
222
|
+
|
223
|
+
# Offense count: 1
|
224
|
+
# Configuration parameters: AllowedMethods.
|
225
|
+
# AllowedMethods: respond_to_missing?
|
226
|
+
Style/OptionalBooleanParameter:
|
227
|
+
Exclude:
|
228
|
+
- 'spec/mock_vsphere.rb'
|
229
|
+
|
230
|
+
# Offense count: 2
|
231
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
232
|
+
# Configuration parameters: EnforcedStyle.
|
233
|
+
# SupportedStyles: short, verbose
|
234
|
+
Style/PreferredHashMethods:
|
235
|
+
Exclude:
|
236
|
+
- 'spec/mock_vsphere_helper.rb'
|
237
|
+
|
238
|
+
# Offense count: 2
|
239
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
240
|
+
# Configuration parameters: AllowComments.
|
241
|
+
Style/RedundantInitialize:
|
242
|
+
Exclude:
|
243
|
+
- 'spec/mock_vsphere.rb'
|
244
|
+
- 'spec/mock_vsphere_helper.rb'
|
245
|
+
|
246
|
+
# Offense count: 2
|
247
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
248
|
+
# Configuration parameters: Mode.
|
249
|
+
Style/StringConcatenation:
|
250
|
+
Exclude:
|
251
|
+
- 'spec/mock_vsphere.rb'
|
252
|
+
|
253
|
+
# Offense count: 1
|
254
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
255
|
+
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
|
256
|
+
# AllowedMethods: define_method
|
257
|
+
Style/SymbolProc:
|
258
|
+
Exclude:
|
259
|
+
- 'lib/beaker/hypervisor/fusion.rb'
|
260
|
+
|
261
|
+
# Offense count: 5
|
262
|
+
# This cop supports safe autocorrection (--autocorrect).
|
263
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
264
|
+
# URISchemes: http, https
|
265
|
+
Layout/LineLength:
|
266
|
+
Max: 152
|
data/.simplecov
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## [2.0.0](https://github.com/voxpupuli/beaker-vmware/tree/2.0.0) (2023-03-28)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-vmware/compare/1.0.0...2.0.0)
|
6
|
+
|
7
|
+
**Breaking changes:**
|
8
|
+
|
9
|
+
- Drop Ruby 2.4/2.5/2.6 support; Add 3.1 [\#25](https://github.com/voxpupuli/beaker-vmware/pull/25) ([bastelfreak](https://github.com/bastelfreak))
|
10
|
+
|
11
|
+
**Implemented enhancements:**
|
12
|
+
|
13
|
+
- Implement rubocop [\#26](https://github.com/voxpupuli/beaker-vmware/pull/26) ([bastelfreak](https://github.com/bastelfreak))
|
14
|
+
|
15
|
+
**Merged pull requests:**
|
16
|
+
|
17
|
+
- Update fakefs requirement from ~\> 0.6 to ~\> 2.4 [\#23](https://github.com/voxpupuli/beaker-vmware/pull/23) ([dependabot[bot]](https://github.com/apps/dependabot))
|
18
|
+
- CI: Apply Vox Pupuli best practices [\#22](https://github.com/voxpupuli/beaker-vmware/pull/22) ([bastelfreak](https://github.com/bastelfreak))
|
19
|
+
- Bump actions/checkout from 2 to 3 [\#21](https://github.com/voxpupuli/beaker-vmware/pull/21) ([dependabot[bot]](https://github.com/apps/dependabot))
|
20
|
+
- dependabot: check for github actions and gems [\#20](https://github.com/voxpupuli/beaker-vmware/pull/20) ([bastelfreak](https://github.com/bastelfreak))
|
21
|
+
- Update rbvmomi requirement from ~\> 1.9 to \>= 1.9, \< 4.0 [\#12](https://github.com/voxpupuli/beaker-vmware/pull/12) ([dependabot[bot]](https://github.com/apps/dependabot))
|
22
|
+
|
23
|
+
## [1.0.0](https://github.com/voxpupuli/beaker-vmware/tree/1.0.0) (2021-08-09)
|
24
|
+
|
25
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-vmware/compare/0.3.0...1.0.0)
|
26
|
+
|
27
|
+
**Merged pull requests:**
|
28
|
+
|
29
|
+
- Add GitHub actions, Update README.md after migration [\#10](https://github.com/voxpupuli/beaker-vmware/pull/10) ([bastelfreak](https://github.com/bastelfreak))
|
30
|
+
- \(BKR-1509\) Hypervisor usage instructions for Beaker 4.0 [\#9](https://github.com/voxpupuli/beaker-vmware/pull/9) ([Dakta](https://github.com/Dakta))
|
31
|
+
|
32
|
+
## [0.3.0](https://github.com/voxpupuli/beaker-vmware/tree/0.3.0) (2018-07-16)
|
33
|
+
|
34
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-vmware/compare/0.2.0...0.3.0)
|
35
|
+
|
36
|
+
**Merged pull requests:**
|
37
|
+
|
38
|
+
- \(MAINT\) Pin fakefs for old Ruby [\#7](https://github.com/voxpupuli/beaker-vmware/pull/7) ([Dakta](https://github.com/Dakta))
|
39
|
+
- \(BKR-1485\) Update documentation [\#6](https://github.com/voxpupuli/beaker-vmware/pull/6) ([Dakta](https://github.com/Dakta))
|
40
|
+
- \(BKR-1481\) Rewrite beaker-vmware to use shared .fog parsing [\#5](https://github.com/voxpupuli/beaker-vmware/pull/5) ([Dakta](https://github.com/Dakta))
|
41
|
+
|
42
|
+
## [0.2.0](https://github.com/voxpupuli/beaker-vmware/tree/0.2.0) (2017-07-19)
|
43
|
+
|
44
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-vmware/compare/0.1.0...0.2.0)
|
45
|
+
|
46
|
+
**Merged pull requests:**
|
47
|
+
|
48
|
+
- \(BKR-1162\) Add vsphere hypervisor support [\#4](https://github.com/voxpupuli/beaker-vmware/pull/4) ([rishijavia](https://github.com/rishijavia))
|
49
|
+
|
50
|
+
## [0.1.0](https://github.com/voxpupuli/beaker-vmware/tree/0.1.0) (2017-07-18)
|
51
|
+
|
52
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-vmware/compare/7ddc6f7aa8480bfef0e7d5271c71acf89fce0149...0.1.0)
|
53
|
+
|
54
|
+
**Merged pull requests:**
|
55
|
+
|
56
|
+
- \(MAINT\) Add simplecov [\#3](https://github.com/voxpupuli/beaker-vmware/pull/3) ([rishijavia](https://github.com/rishijavia))
|
57
|
+
- \(MAINT\) Add version constant [\#2](https://github.com/voxpupuli/beaker-vmware/pull/2) ([rishijavia](https://github.com/rishijavia))
|
58
|
+
- \(MAINT\) Update acceptance test instructions [\#1](https://github.com/voxpupuli/beaker-vmware/pull/1) ([rishijavia](https://github.com/rishijavia))
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/Gemfile
CHANGED
@@ -1,27 +1,12 @@
|
|
1
|
-
source ENV['GEM_SOURCE'] ||
|
1
|
+
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
def location_for(place, fake_version = nil)
|
8
|
-
if place =~ /^git:([^#]*)#(.*)/
|
9
|
-
[fake_version, { :git => $1, :branch => $2, :require => false }].compact
|
10
|
-
elsif place =~ /^file:\/\/(.*)/
|
11
|
-
['>= 0', { :path => File.expand_path($1), :require => false }]
|
12
|
-
else
|
13
|
-
[place, { :require => false }]
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
|
18
|
-
# We don't put beaker in as a test dependency because we
|
19
|
-
# don't want to create a transitive dependency
|
20
|
-
group :acceptance_testing do
|
21
|
-
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 3.0')
|
5
|
+
group :release do
|
6
|
+
gem 'github_changelog_generator', require: false
|
22
7
|
end
|
23
8
|
|
24
|
-
|
25
|
-
|
26
|
-
|
9
|
+
group :coverage, optional: ENV['COVERAGE'] != 'yes' do
|
10
|
+
gem 'codecov', require: false
|
11
|
+
gem 'simplecov-console', require: false
|
27
12
|
end
|
data/README.md
CHANGED
@@ -1,21 +1,37 @@
|
|
1
1
|
# beaker-vmware
|
2
2
|
|
3
|
+
[![License](https://img.shields.io/github/license/voxpupuli/beaker-vmware.svg)](https://github.com/voxpupuli/beaker-vmware/blob/master/LICENSE)
|
4
|
+
[![Test](https://github.com/voxpupuli/beaker-vmware/actions/workflows/test.yml/badge.svg)](https://github.com/voxpupuli/beaker-vmware/actions/workflows/test.yml)
|
5
|
+
[![codecov](https://codecov.io/gh/voxpupuli/beaker-vmware/branch/master/graph/badge.svg)](https://codecov.io/gh/voxpupuli/beaker-vmware)
|
6
|
+
[![Release](https://github.com/voxpupuli/beaker-vmware/actions/workflows/release.yml/badge.svg)](https://github.com/voxpupuli/beaker-vmware/actions/workflows/release.yml)
|
7
|
+
[![RubyGem Version](https://img.shields.io/gem/v/beaker-vmware.svg)](https://rubygems.org/gems/beaker-vmware)
|
8
|
+
[![RubyGem Downloads](https://img.shields.io/gem/dt/beaker-vmware.svg)](https://rubygems.org/gems/beaker-vmware)
|
9
|
+
[![Donated by Puppet Inc](https://img.shields.io/badge/donated%20by-Puppet%20Inc-fb7047.svg)](#transfer-notice)
|
10
|
+
|
3
11
|
Beaker library to use vmware fusion hypervisor
|
4
12
|
|
5
13
|
# How to use this wizardry
|
6
14
|
|
7
15
|
This gem allows you to use hosts with [vmware_fusion](vmware_fusion.md) and [vsphere](vsphere.md) hypervisor with [beaker](https://github.com/puppetlabs/beaker).
|
8
16
|
|
9
|
-
|
17
|
+
Beaker will automatically load the appropriate hypervisors for any given hosts file, so as long as your project dependencies are satisfied there's nothing else to do. No need to `require` this library in your tests.
|
18
|
+
|
19
|
+
## With Beaker 3.x
|
10
20
|
|
11
|
-
This
|
21
|
+
This library is included as a dependency of Beaker 3.x versions, so there's nothing to do.
|
12
22
|
|
13
|
-
|
23
|
+
## With Beaker 4.x
|
14
24
|
|
15
|
-
In
|
16
|
-
|
17
|
-
|
18
|
-
|
25
|
+
As of Beaker 4.0, all hypervisor and DSL extension libraries have been removed and are no longer dependencies. In order to use a specific hypervisor or DSL extension library in your project, you will need to include them alongside Beaker in your Gemfile or project.gemspec. E.g.
|
26
|
+
|
27
|
+
~~~ruby
|
28
|
+
# Gemfile
|
29
|
+
gem 'beaker', '~>4.0'
|
30
|
+
gem 'beaker-vmware'
|
31
|
+
# project.gemspec
|
32
|
+
s.add_runtime_dependency 'beaker', '~>4.0'
|
33
|
+
s.add_runtime_dependency 'beaker-vmware'
|
34
|
+
~~~
|
19
35
|
|
20
36
|
# Spec tests
|
21
37
|
|
@@ -33,6 +49,24 @@ We run beaker's base acceptance tests with this library to see if the hypervisor
|
|
33
49
|
$ bundle exec rake test:acceptance
|
34
50
|
```
|
35
51
|
|
36
|
-
|
52
|
+
## Transfer Notice
|
53
|
+
|
54
|
+
This plugin was originally authored by [Puppet Inc](http://puppet.com).
|
55
|
+
The maintainer preferred that Vox Pupuli take ownership of the module for future improvement and maintenance.
|
56
|
+
Existing pull requests and issues were transferred over, please fork and continue to contribute at https://github.com/voxpupuli/beaker-vmware
|
57
|
+
|
58
|
+
Previously: https://github.com/puppetlabs/beaker-vmware
|
59
|
+
|
60
|
+
## License
|
61
|
+
|
62
|
+
This gem is licensed under the Apache-2 license.
|
63
|
+
|
64
|
+
## Release information
|
37
65
|
|
38
|
-
|
66
|
+
To make a new release, please do:
|
67
|
+
* update the version in lib/beaker-vmware/version.rb
|
68
|
+
* Install gems with `bundle install --with release --path .vendor`
|
69
|
+
* generate the changelog with `bundle exec rake changelog`
|
70
|
+
* Check if the new version matches the closed issues/PRs in the changelog
|
71
|
+
* Create a PR with it
|
72
|
+
* After it got merged, push a tag. GitHub actions will do the actual release to rubygems and GitHub Packages
|