beaker-vagrant 1.4.0 → 2.1.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 +22 -19
- data/.rubocop_todo.yml +36 -23
- data/CHANGELOG.md +21 -6
- data/Gemfile +2 -2
- data/Rakefile +0 -7
- data/beaker-vagrant.gemspec +11 -5
- data/lib/beaker/hypervisor/vagrant.rb +2 -4
- data/lib/beaker-vagrant/version.rb +1 -1
- data/spec/beaker/vagrant_desktop_spec.rb +1 -1
- data/spec/beaker/vagrant_fusion_spec.rb +1 -1
- data/spec/beaker/vagrant_libvirt_spec.rb +1 -1
- data/spec/beaker/vagrant_parallels_spec.rb +1 -1
- data/spec/beaker/vagrant_spec.rb +7 -7
- data/spec/beaker/vagrant_virtualbox_spec.rb +1 -1
- data/spec/beaker/vagrant_workstation_spec.rb +1 -1
- data/spec/spec_helper.rb +0 -1
- metadata +19 -29
- 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: 74f4253e3560ebff2a8c54f81eb71f7c49c50125096966cde054452e19fe0d94
|
|
4
|
+
data.tar.gz: bef8b058d02a069abb348946aa852df492dd011abf772a5a9baa45a1bfd30fb7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ef68990ac8a8202b5e4a2bb6d7f7dcf0f1c094944a0112f8b7f6be4a33c6e0878931c6adfcbfae23390d8fe0319798890946b8f9019ee7fc2c10f98f548602f
|
|
7
|
+
data.tar.gz: 15632922da5bd5fb058a3e61fd036d88a59d2c743fc86e438fe1f05f10117814e21bba8e2475c316f69cec0264e59bcd745521c31f59e3b7b1f5ff7838002c08
|
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@v4
|
|
19
|
+
- name: Install Ruby
|
|
15
20
|
uses: ruby/setup-ruby@v1
|
|
16
21
|
with:
|
|
17
|
-
ruby-version: '
|
|
18
|
-
env:
|
|
19
|
-
BUNDLE_WITHOUT: release:development:rubocop
|
|
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@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
|
|
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@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
|
|
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,35 +7,33 @@ on:
|
|
|
6
7
|
branches:
|
|
7
8
|
- master
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
11
12
|
|
|
12
13
|
jobs:
|
|
13
|
-
|
|
14
|
-
runs-on: ubuntu-
|
|
14
|
+
rubocop_and_matrix:
|
|
15
|
+
runs-on: ubuntu-24.04
|
|
16
|
+
outputs:
|
|
17
|
+
ruby: ${{ steps.ruby.outputs.versions }}
|
|
15
18
|
steps:
|
|
16
|
-
- uses: actions/checkout@
|
|
19
|
+
- uses: actions/checkout@v4
|
|
17
20
|
- name: Install Ruby ${{ matrix.ruby }}
|
|
18
21
|
uses: ruby/setup-ruby@v1
|
|
19
22
|
with:
|
|
20
|
-
ruby-version: "
|
|
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
|
|
29
|
+
|
|
24
30
|
spec:
|
|
25
|
-
runs-on: ubuntu-
|
|
31
|
+
runs-on: ubuntu-24.04
|
|
32
|
+
needs: rubocop_and_matrix
|
|
26
33
|
strategy:
|
|
27
34
|
fail-fast: false
|
|
28
35
|
matrix:
|
|
29
|
-
|
|
30
|
-
- ruby: "2.7"
|
|
31
|
-
coverage: "yes"
|
|
32
|
-
- ruby: "3.0"
|
|
33
|
-
- ruby: "3.1"
|
|
34
|
-
- ruby: "3.2"
|
|
35
|
-
- ruby: "3.3"
|
|
36
|
-
env:
|
|
37
|
-
COVERAGE: ${{ matrix.coverage }}
|
|
36
|
+
ruby: ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
|
|
38
37
|
name: RSpec - Ruby ${{ matrix.ruby }}
|
|
39
38
|
steps:
|
|
40
39
|
- uses: actions/checkout@v3
|
|
@@ -53,10 +52,14 @@ jobs:
|
|
|
53
52
|
# run: bundle exec rake test:acceptance
|
|
54
53
|
|
|
55
54
|
tests:
|
|
55
|
+
if: always()
|
|
56
56
|
needs:
|
|
57
|
+
- rubocop_and_matrix
|
|
57
58
|
- spec
|
|
58
|
-
|
|
59
|
-
runs-on: ubuntu-latest
|
|
59
|
+
runs-on: ubuntu-24.04
|
|
60
60
|
name: Test suite
|
|
61
61
|
steps:
|
|
62
|
-
-
|
|
62
|
+
- name: Decide whether the needed jobs succeeded or failed
|
|
63
|
+
uses: re-actors/alls-green@release/v1
|
|
64
|
+
with:
|
|
65
|
+
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.85.1.
|
|
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
|
|
@@ -20,20 +20,15 @@ Lint/MissingSuper:
|
|
|
20
20
|
- 'lib/beaker/hypervisor/vagrant.rb'
|
|
21
21
|
|
|
22
22
|
# Offense count: 1
|
|
23
|
-
|
|
24
|
-
Lint/NonDeterministicRequireOrder:
|
|
23
|
+
Naming/AccessorMethodName:
|
|
25
24
|
Exclude:
|
|
26
|
-
- '
|
|
25
|
+
- 'lib/beaker/hypervisor/vagrant.rb'
|
|
27
26
|
|
|
28
27
|
# Offense count: 2
|
|
29
|
-
# This cop supports
|
|
30
|
-
# Configuration parameters:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
- 'spec/beaker/vagrant_spec.rb'
|
|
34
|
-
|
|
35
|
-
# Offense count: 1
|
|
36
|
-
Naming/AccessorMethodName:
|
|
28
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
29
|
+
# Configuration parameters: EnforcedStyle, BlockForwardingName.
|
|
30
|
+
# SupportedStyles: anonymous, explicit
|
|
31
|
+
Naming/BlockForwarding:
|
|
37
32
|
Exclude:
|
|
38
33
|
- 'lib/beaker/hypervisor/vagrant.rb'
|
|
39
34
|
|
|
@@ -59,7 +54,7 @@ Performance/RedundantMerge:
|
|
|
59
54
|
Exclude:
|
|
60
55
|
- 'spec/beaker/vagrant_custom_spec.rb'
|
|
61
56
|
|
|
62
|
-
# Offense count:
|
|
57
|
+
# Offense count: 1
|
|
63
58
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
64
59
|
Performance/StringInclude:
|
|
65
60
|
Exclude:
|
|
@@ -111,10 +106,6 @@ RSpec/InstanceVariable:
|
|
|
111
106
|
RSpec/MessageSpies:
|
|
112
107
|
EnforcedStyle: receive
|
|
113
108
|
|
|
114
|
-
# Offense count: 17
|
|
115
|
-
RSpec/MultipleExpectations:
|
|
116
|
-
Max: 5
|
|
117
|
-
|
|
118
109
|
# Offense count: 2
|
|
119
110
|
# Configuration parameters: AllowSubject.
|
|
120
111
|
RSpec/MultipleMemoizedHelpers:
|
|
@@ -132,6 +123,12 @@ RSpec/NamedSubject:
|
|
|
132
123
|
- 'spec/beaker/vagrant_virtualbox_spec.rb'
|
|
133
124
|
- 'spec/beaker/vagrant_workstation_spec.rb'
|
|
134
125
|
|
|
126
|
+
# Offense count: 1
|
|
127
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
128
|
+
RSpec/Output:
|
|
129
|
+
Exclude:
|
|
130
|
+
- 'spec/beaker/vagrant_spec.rb'
|
|
131
|
+
|
|
135
132
|
# Offense count: 3
|
|
136
133
|
RSpec/StubbedMock:
|
|
137
134
|
Exclude:
|
|
@@ -149,6 +146,16 @@ Rake/Desc:
|
|
|
149
146
|
Exclude:
|
|
150
147
|
- 'Rakefile'
|
|
151
148
|
|
|
149
|
+
# Offense count: 2
|
|
150
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
151
|
+
# Configuration parameters: AllowOnlyRestArgument, UseAnonymousForwarding, RedundantRestArgumentNames, RedundantKeywordRestArgumentNames, RedundantBlockArgumentNames.
|
|
152
|
+
# RedundantRestArgumentNames: args, arguments
|
|
153
|
+
# RedundantKeywordRestArgumentNames: kwargs, options, opts
|
|
154
|
+
# RedundantBlockArgumentNames: blk, block, proc
|
|
155
|
+
Style/ArgumentsForwarding:
|
|
156
|
+
Exclude:
|
|
157
|
+
- 'lib/beaker/hypervisor/vagrant.rb'
|
|
158
|
+
|
|
152
159
|
# Offense count: 7
|
|
153
160
|
# This cop supports safe autocorrection (--autocorrect).
|
|
154
161
|
# Configuration parameters: AllowOnConstant, AllowOnSelfClass.
|
|
@@ -157,13 +164,14 @@ Style/CaseEquality:
|
|
|
157
164
|
- 'spec/beaker/vagrant_custom_spec.rb'
|
|
158
165
|
- 'spec/beaker/vagrant_spec.rb'
|
|
159
166
|
|
|
160
|
-
# Offense count:
|
|
167
|
+
# Offense count: 7
|
|
161
168
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
162
|
-
# Configuration parameters: EnforcedStyle.
|
|
169
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForClasses, EnforcedStyleForModules.
|
|
163
170
|
# SupportedStyles: nested, compact
|
|
171
|
+
# SupportedStylesForClasses: ~, nested, compact
|
|
172
|
+
# SupportedStylesForModules: ~, nested, compact
|
|
164
173
|
Style/ClassAndModuleChildren:
|
|
165
174
|
Exclude:
|
|
166
|
-
- 'lib/beaker/hypervisor/vagrant/mount_folder.rb'
|
|
167
175
|
- 'lib/beaker/hypervisor/vagrant_custom.rb'
|
|
168
176
|
- 'lib/beaker/hypervisor/vagrant_desktop.rb'
|
|
169
177
|
- 'lib/beaker/hypervisor/vagrant_fusion.rb'
|
|
@@ -194,7 +202,12 @@ Style/EnvHome:
|
|
|
194
202
|
Exclude:
|
|
195
203
|
- 'Rakefile'
|
|
196
204
|
|
|
197
|
-
# Offense count:
|
|
205
|
+
# Offense count: 1
|
|
206
|
+
Style/FileOpen:
|
|
207
|
+
Exclude:
|
|
208
|
+
- 'spec/beaker/vagrant_custom_spec.rb'
|
|
209
|
+
|
|
210
|
+
# Offense count: 22
|
|
198
211
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
199
212
|
# Configuration parameters: EnforcedStyle.
|
|
200
213
|
# SupportedStyles: always, always_true, never
|
|
@@ -252,7 +265,7 @@ Style/StringConcatenation:
|
|
|
252
265
|
|
|
253
266
|
# Offense count: 24
|
|
254
267
|
# This cop supports safe autocorrection (--autocorrect).
|
|
255
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes,
|
|
268
|
+
# Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
|
|
256
269
|
# URISchemes: http, https
|
|
257
270
|
Layout/LineLength:
|
|
258
271
|
Max: 222
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.1.0](https://github.com/voxpupuli/beaker-vagrant/tree/2.1.0) (2026-04-02)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-vagrant/compare/2.0.0...2.1.0)
|
|
6
|
+
|
|
7
|
+
**Implemented enhancements:**
|
|
8
|
+
|
|
9
|
+
- Add Ruby 4.0 support [\#100](https://github.com/voxpupuli/beaker-vagrant/pull/100) ([bastelfreak](https://github.com/bastelfreak))
|
|
10
|
+
|
|
11
|
+
## [2.0.0](https://github.com/voxpupuli/beaker-vagrant/tree/2.0.0) (2025-08-07)
|
|
12
|
+
|
|
13
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-vagrant/compare/1.4.0...2.0.0)
|
|
14
|
+
|
|
15
|
+
**Breaking changes:**
|
|
16
|
+
|
|
17
|
+
- Require Ruby 3.2 or newer [\#95](https://github.com/voxpupuli/beaker-vagrant/pull/95) ([bastelfreak](https://github.com/bastelfreak))
|
|
18
|
+
|
|
19
|
+
**Implemented enhancements:**
|
|
20
|
+
|
|
21
|
+
- beaker: Allow 7.x [\#93](https://github.com/voxpupuli/beaker-vagrant/pull/93) ([bastelfreak](https://github.com/bastelfreak))
|
|
22
|
+
- Increase defaults to 2 CPU cores/2G ram [\#90](https://github.com/voxpupuli/beaker-vagrant/pull/90) ([bastelfreak](https://github.com/bastelfreak))
|
|
23
|
+
|
|
3
24
|
## [1.4.0](https://github.com/voxpupuli/beaker-vagrant/tree/1.4.0) (2024-05-28)
|
|
4
25
|
|
|
5
26
|
[Full Changelog](https://github.com/voxpupuli/beaker-vagrant/compare/1.3.0...1.4.0)
|
|
@@ -193,7 +214,6 @@
|
|
|
193
214
|
|
|
194
215
|
**Merged pull requests:**
|
|
195
216
|
|
|
196
|
-
- \(maint\) add support for extra vmware configuration [\#14](https://github.com/voxpupuli/beaker-vagrant/pull/14) ([lmayorga1980](https://github.com/lmayorga1980))
|
|
197
217
|
- Bugfix: Issue with user given invalid keys for synced folders [\#9](https://github.com/voxpupuli/beaker-vagrant/pull/9) ([cardil](https://github.com/cardil))
|
|
198
218
|
|
|
199
219
|
## [0.4.0](https://github.com/voxpupuli/beaker-vagrant/tree/0.4.0) (2018-02-22)
|
|
@@ -219,7 +239,6 @@
|
|
|
219
239
|
**Merged pull requests:**
|
|
220
240
|
|
|
221
241
|
- Improve documentation on volumes support [\#11](https://github.com/voxpupuli/beaker-vagrant/pull/11) ([beezly](https://github.com/beezly))
|
|
222
|
-
- add support for ioapic for virtualbox [\#10](https://github.com/voxpupuli/beaker-vagrant/pull/10) ([lmayorga1980](https://github.com/lmayorga1980))
|
|
223
242
|
|
|
224
243
|
## [0.2.0](https://github.com/voxpupuli/beaker-vagrant/tree/0.2.0) (2018-01-09)
|
|
225
244
|
|
|
@@ -233,10 +252,6 @@
|
|
|
233
252
|
|
|
234
253
|
[Full Changelog](https://github.com/voxpupuli/beaker-vagrant/compare/0.1.0...0.1.1)
|
|
235
254
|
|
|
236
|
-
**Merged pull requests:**
|
|
237
|
-
|
|
238
|
-
- add support for download\_insecure config [\#5](https://github.com/voxpupuli/beaker-vagrant/pull/5) ([lmayorga1980](https://github.com/lmayorga1980))
|
|
239
|
-
|
|
240
255
|
## [0.1.0](https://github.com/voxpupuli/beaker-vagrant/tree/0.1.0) (2017-07-14)
|
|
241
256
|
|
|
242
257
|
[Full Changelog](https://github.com/voxpupuli/beaker-vagrant/compare/d9545ba78c5d9ef827503c047fb7efd482734dbf...0.1.0)
|
data/Gemfile
CHANGED
|
@@ -4,7 +4,7 @@ source ENV['GEM_SOURCE'] || 'https://rubygems.org'
|
|
|
4
4
|
|
|
5
5
|
gemspec
|
|
6
6
|
|
|
7
|
-
group :release do
|
|
7
|
+
group :release, optional: true do
|
|
8
8
|
gem 'faraday-retry', '~> 2.1', require: false
|
|
9
|
-
gem 'github_changelog_generator', '~> 1.
|
|
9
|
+
gem 'github_changelog_generator', '~> 1.18', require: false
|
|
10
10
|
end
|
data/Rakefile
CHANGED
|
@@ -7,13 +7,6 @@ namespace :test do
|
|
|
7
7
|
t.rspec_opts = ['--color', '--format documentation']
|
|
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_TEMPLATE_COVERAGE'] = 'y'
|
|
14
|
-
t.rspec_opts = ['--color', '--format documentation']
|
|
15
|
-
t.pattern = 'spec/'
|
|
16
|
-
end
|
|
17
10
|
end
|
|
18
11
|
|
|
19
12
|
namespace :acceptance do
|
data/beaker-vagrant.gemspec
CHANGED
|
@@ -16,19 +16,25 @@ Gem::Specification.new do |s|
|
|
|
16
16
|
s.description = 'For use for the Beaker acceptance testing tool'
|
|
17
17
|
s.license = 'Apache-2.0'
|
|
18
18
|
|
|
19
|
-
s.required_ruby_version = Gem::Requirement.new('>= 2
|
|
19
|
+
s.required_ruby_version = Gem::Requirement.new('>= 3.2', '< 5')
|
|
20
20
|
|
|
21
21
|
s.files = `git ls-files`.split("\n")
|
|
22
22
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
|
23
23
|
s.require_paths = ['lib']
|
|
24
24
|
|
|
25
|
+
s.metadata = {
|
|
26
|
+
'source_code_uri' => 'https://github.com/voxpupuli/beaker-vagrant',
|
|
27
|
+
'changelog_uri' => 'https://github.com/voxpupuli/beaker-vagrant/blob/main/CHANGELOG.md',
|
|
28
|
+
'bug_tracker_uri' => 'https://github.com/voxpupuli/beaker-vagrant/issues',
|
|
29
|
+
'rubygems_mfa_required' => 'true',
|
|
30
|
+
}
|
|
31
|
+
|
|
25
32
|
# Testing dependencies
|
|
26
|
-
s.add_development_dependency 'fakefs', '>= 0.6', '<
|
|
33
|
+
s.add_development_dependency 'fakefs', '>= 0.6', '< 4'
|
|
27
34
|
s.add_development_dependency 'pry', '~> 0.10'
|
|
28
35
|
s.add_development_dependency 'rake', '~> 13.0'
|
|
29
36
|
s.add_development_dependency 'rspec', '~> 3.0'
|
|
30
|
-
s.add_development_dependency '
|
|
31
|
-
s.add_development_dependency 'voxpupuli-rubocop', '~> 2.7.0'
|
|
37
|
+
s.add_development_dependency 'voxpupuli-rubocop', '~> 5.2.0'
|
|
32
38
|
|
|
33
|
-
s.
|
|
39
|
+
s.add_dependency 'beaker', '>= 4', '< 8'
|
|
34
40
|
end
|
|
@@ -291,7 +291,7 @@ module Beaker
|
|
|
291
291
|
elsif options['vagrant_cpus']
|
|
292
292
|
options['vagrant_cpus']
|
|
293
293
|
else
|
|
294
|
-
'
|
|
294
|
+
'2'
|
|
295
295
|
end
|
|
296
296
|
end
|
|
297
297
|
|
|
@@ -300,10 +300,8 @@ module Beaker
|
|
|
300
300
|
host['vagrant_memsize']
|
|
301
301
|
elsif options['vagrant_memsize']
|
|
302
302
|
options['vagrant_memsize']
|
|
303
|
-
elsif /windows/.match?(host['platform'])
|
|
304
|
-
'2048'
|
|
305
303
|
else
|
|
306
|
-
'
|
|
304
|
+
'2048'
|
|
307
305
|
end
|
|
308
306
|
end
|
|
309
307
|
|
|
@@ -28,7 +28,7 @@ describe Beaker::VagrantDesktop do
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
it 'for a set of hosts' do
|
|
31
|
-
expect(subject).to include(%( v.vm.provider :vmware_desktop do |v|\n v.vmx['memsize'] = '
|
|
31
|
+
expect(subject).to include(%( v.vm.provider :vmware_desktop do |v|\n v.vmx['memsize'] = '2048'\n end))
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
context 'with whitelist_verified' do
|
|
@@ -26,7 +26,7 @@ describe Beaker::VagrantFusion do
|
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
it 'has a provider section' do
|
|
29
|
-
expect(subject).to include(%( v.vm.provider :vmware_fusion do |v|\n v.vmx['memsize'] = '
|
|
29
|
+
expect(subject).to include(%( v.vm.provider :vmware_fusion do |v|\n v.vmx['memsize'] = '2048'\n end))
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
32
|
end
|
|
@@ -26,7 +26,7 @@ describe Beaker::VagrantParallels do
|
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
it 'can make a Vagrantfile for a set of hosts' do
|
|
29
|
-
expect(subject).to include(%( v.vm.provider :parallels do |prl|\n prl.optimize_power_consumption = false\n prl.memory = '
|
|
29
|
+
expect(subject).to include(%( v.vm.provider :parallels do |prl|\n prl.optimize_power_consumption = false\n prl.memory = '2048'\n end))
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
32
|
|
data/spec/beaker/vagrant_spec.rb
CHANGED
|
@@ -56,7 +56,7 @@ module Beaker
|
|
|
56
56
|
v.vm.network :forwarded_port, guest: 443, host: 4443
|
|
57
57
|
v.vm.network :forwarded_port, guest: 8080, host: 8080
|
|
58
58
|
v.vm.provider :virtualbox do |vb|
|
|
59
|
-
vb.customize ['modifyvm', :id, '--memory', '
|
|
59
|
+
vb.customize ['modifyvm', :id, '--memory', '2048', '--cpus', '2', '--audio', 'none']
|
|
60
60
|
end
|
|
61
61
|
end
|
|
62
62
|
c.vm.define 'vm2' do |v|
|
|
@@ -71,7 +71,7 @@ module Beaker
|
|
|
71
71
|
v.vm.network :forwarded_port, guest: 443, host: 4443
|
|
72
72
|
v.vm.network :forwarded_port, guest: 8080, host: 8080
|
|
73
73
|
v.vm.provider :virtualbox do |vb|
|
|
74
|
-
vb.customize ['modifyvm', :id, '--memory', '
|
|
74
|
+
vb.customize ['modifyvm', :id, '--memory', '2048', '--cpus', '2', '--audio', 'none']
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
77
|
c.vm.define 'vm3' do |v|
|
|
@@ -86,7 +86,7 @@ module Beaker
|
|
|
86
86
|
v.vm.network :forwarded_port, guest: 443, host: 4443
|
|
87
87
|
v.vm.network :forwarded_port, guest: 8080, host: 8080
|
|
88
88
|
v.vm.provider :virtualbox do |vb|
|
|
89
|
-
vb.customize ['modifyvm', :id, '--memory', '
|
|
89
|
+
vb.customize ['modifyvm', :id, '--memory', '2048', '--cpus', '2', '--audio', 'none']
|
|
90
90
|
end
|
|
91
91
|
end
|
|
92
92
|
end
|
|
@@ -185,7 +185,7 @@ module Beaker
|
|
|
185
185
|
end
|
|
186
186
|
|
|
187
187
|
it 'raises an error if path is not set on shell_provisioner' do
|
|
188
|
-
|
|
188
|
+
vagrant.instance_variable_get(:@vagrant_path)
|
|
189
189
|
|
|
190
190
|
hosts = make_hosts({ shell_provisioner: {} }, 1)
|
|
191
191
|
expect do
|
|
@@ -194,7 +194,7 @@ module Beaker
|
|
|
194
194
|
end
|
|
195
195
|
|
|
196
196
|
it 'raises an error if path is EMPTY on shell_provisioner' do
|
|
197
|
-
|
|
197
|
+
vagrant.instance_variable_get(:@vagrant_path)
|
|
198
198
|
|
|
199
199
|
empty_shell_path = ''
|
|
200
200
|
hosts = make_hosts({
|
|
@@ -264,7 +264,7 @@ module Beaker
|
|
|
264
264
|
|
|
265
265
|
generated_file = File.read(File.expand_path(File.join(path, 'Vagrantfile')))
|
|
266
266
|
|
|
267
|
-
match = generated_file.match(/vb.customize \['modifyvm', :id, '--memory', 'hello!', '--cpus', '
|
|
267
|
+
match = generated_file.match(/vb.customize \['modifyvm', :id, '--memory', 'hello!', '--cpus', '2', '--audio', 'none'\]/)
|
|
268
268
|
|
|
269
269
|
expect(match).not_to be_nil
|
|
270
270
|
end
|
|
@@ -276,7 +276,7 @@ module Beaker
|
|
|
276
276
|
|
|
277
277
|
generated_file = File.read(File.expand_path(File.join(path, 'Vagrantfile')))
|
|
278
278
|
|
|
279
|
-
match = generated_file.match(/vb.customize \['modifyvm', :id, '--memory', '
|
|
279
|
+
match = generated_file.match(/vb.customize \['modifyvm', :id, '--memory', '2048', '--cpus', 'goodbye!', '--audio', 'none'\]/)
|
|
280
280
|
|
|
281
281
|
expect(match).not_to be_nil
|
|
282
282
|
end
|
|
@@ -27,7 +27,7 @@ describe Beaker::VagrantVirtualbox do
|
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
it 'can make a Vagrantfile for a set of hosts' do
|
|
30
|
-
expect(subject).to include(%( v.vm.provider :virtualbox do |vb|\n vb.customize ['modifyvm', :id, '--memory', '
|
|
30
|
+
expect(subject).to include(%( v.vm.provider :virtualbox do |vb|\n vb.customize ['modifyvm', :id, '--memory', '2048', '--cpus', '2', '--audio', 'none']\n end))
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
context 'with ioapic(multiple cores)' do
|
|
@@ -28,7 +28,7 @@ describe Beaker::VagrantWorkstation do
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
it 'for a set of hosts' do
|
|
31
|
-
expect(subject).to include(%( v.vm.provider :vmware_workstation do |v|\n v.vmx['memsize'] = '
|
|
31
|
+
expect(subject).to include(%( v.vm.provider :vmware_workstation do |v|\n v.vmx['memsize'] = '2048'\n end))
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
context 'with whitelist_verified' do
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: beaker-vagrant
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 2.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vox Pupuli
|
|
8
8
|
- Rishi Javia
|
|
9
9
|
- Kevin Imber
|
|
10
10
|
- Tony Vu
|
|
11
|
-
autorequire:
|
|
12
11
|
bindir: bin
|
|
13
12
|
cert_chain: []
|
|
14
|
-
date:
|
|
13
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
15
14
|
dependencies:
|
|
16
15
|
- !ruby/object:Gem::Dependency
|
|
17
16
|
name: fakefs
|
|
@@ -22,7 +21,7 @@ dependencies:
|
|
|
22
21
|
version: '0.6'
|
|
23
22
|
- - "<"
|
|
24
23
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '
|
|
24
|
+
version: '4'
|
|
26
25
|
type: :development
|
|
27
26
|
prerelease: false
|
|
28
27
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -32,7 +31,7 @@ dependencies:
|
|
|
32
31
|
version: '0.6'
|
|
33
32
|
- - "<"
|
|
34
33
|
- !ruby/object:Gem::Version
|
|
35
|
-
version: '
|
|
34
|
+
version: '4'
|
|
36
35
|
- !ruby/object:Gem::Dependency
|
|
37
36
|
name: pry
|
|
38
37
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -75,34 +74,20 @@ dependencies:
|
|
|
75
74
|
- - "~>"
|
|
76
75
|
- !ruby/object:Gem::Version
|
|
77
76
|
version: '3.0'
|
|
78
|
-
- !ruby/object:Gem::Dependency
|
|
79
|
-
name: simplecov
|
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
|
81
|
-
requirements:
|
|
82
|
-
- - "~>"
|
|
83
|
-
- !ruby/object:Gem::Version
|
|
84
|
-
version: 0.22.0
|
|
85
|
-
type: :development
|
|
86
|
-
prerelease: false
|
|
87
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
88
|
-
requirements:
|
|
89
|
-
- - "~>"
|
|
90
|
-
- !ruby/object:Gem::Version
|
|
91
|
-
version: 0.22.0
|
|
92
77
|
- !ruby/object:Gem::Dependency
|
|
93
78
|
name: voxpupuli-rubocop
|
|
94
79
|
requirement: !ruby/object:Gem::Requirement
|
|
95
80
|
requirements:
|
|
96
81
|
- - "~>"
|
|
97
82
|
- !ruby/object:Gem::Version
|
|
98
|
-
version: 2.
|
|
83
|
+
version: 5.2.0
|
|
99
84
|
type: :development
|
|
100
85
|
prerelease: false
|
|
101
86
|
version_requirements: !ruby/object:Gem::Requirement
|
|
102
87
|
requirements:
|
|
103
88
|
- - "~>"
|
|
104
89
|
- !ruby/object:Gem::Version
|
|
105
|
-
version: 2.
|
|
90
|
+
version: 5.2.0
|
|
106
91
|
- !ruby/object:Gem::Dependency
|
|
107
92
|
name: beaker
|
|
108
93
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -112,7 +97,7 @@ dependencies:
|
|
|
112
97
|
version: '4'
|
|
113
98
|
- - "<"
|
|
114
99
|
- !ruby/object:Gem::Version
|
|
115
|
-
version: '
|
|
100
|
+
version: '8'
|
|
116
101
|
type: :runtime
|
|
117
102
|
prerelease: false
|
|
118
103
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -122,7 +107,7 @@ dependencies:
|
|
|
122
107
|
version: '4'
|
|
123
108
|
- - "<"
|
|
124
109
|
- !ruby/object:Gem::Version
|
|
125
|
-
version: '
|
|
110
|
+
version: '8'
|
|
126
111
|
description: For use for the Beaker acceptance testing tool
|
|
127
112
|
email: voxpupuli@groups.io
|
|
128
113
|
executables:
|
|
@@ -131,13 +116,13 @@ extensions: []
|
|
|
131
116
|
extra_rdoc_files: []
|
|
132
117
|
files:
|
|
133
118
|
- ".github/dependabot.yml"
|
|
119
|
+
- ".github/release.yml"
|
|
134
120
|
- ".github/workflows/release.yml"
|
|
135
121
|
- ".github/workflows/test.yml"
|
|
136
122
|
- ".gitignore"
|
|
137
123
|
- ".rspec"
|
|
138
124
|
- ".rubocop.yml"
|
|
139
125
|
- ".rubocop_todo.yml"
|
|
140
|
-
- ".simplecov"
|
|
141
126
|
- CHANGELOG.md
|
|
142
127
|
- Gemfile
|
|
143
128
|
- LICENSE
|
|
@@ -171,8 +156,11 @@ files:
|
|
|
171
156
|
homepage: https://github.com/puppetlabs/beaker-vagrant
|
|
172
157
|
licenses:
|
|
173
158
|
- Apache-2.0
|
|
174
|
-
metadata:
|
|
175
|
-
|
|
159
|
+
metadata:
|
|
160
|
+
source_code_uri: https://github.com/voxpupuli/beaker-vagrant
|
|
161
|
+
changelog_uri: https://github.com/voxpupuli/beaker-vagrant/blob/main/CHANGELOG.md
|
|
162
|
+
bug_tracker_uri: https://github.com/voxpupuli/beaker-vagrant/issues
|
|
163
|
+
rubygems_mfa_required: 'true'
|
|
176
164
|
rdoc_options: []
|
|
177
165
|
require_paths:
|
|
178
166
|
- lib
|
|
@@ -180,15 +168,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
180
168
|
requirements:
|
|
181
169
|
- - ">="
|
|
182
170
|
- !ruby/object:Gem::Version
|
|
183
|
-
version: '2
|
|
171
|
+
version: '3.2'
|
|
172
|
+
- - "<"
|
|
173
|
+
- !ruby/object:Gem::Version
|
|
174
|
+
version: '5'
|
|
184
175
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
176
|
requirements:
|
|
186
177
|
- - ">="
|
|
187
178
|
- !ruby/object:Gem::Version
|
|
188
179
|
version: '0'
|
|
189
180
|
requirements: []
|
|
190
|
-
rubygems_version:
|
|
191
|
-
signing_key:
|
|
181
|
+
rubygems_version: 4.0.6
|
|
192
182
|
specification_version: 4
|
|
193
183
|
summary: Beaker DSL Extension Helpers!
|
|
194
184
|
test_files: []
|