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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6af340966d12698b6df06d87a1cd60cc8751b38146fd9901e99cd7e495a719ba
4
- data.tar.gz: 9b315b4fdcad53249b879f4913390f478d42dd8ec85482fe1f5a28914d680a72
3
+ metadata.gz: 74f4253e3560ebff2a8c54f81eb71f7c49c50125096966cde054452e19fe0d94
4
+ data.tar.gz: bef8b058d02a069abb348946aa852df492dd011abf772a5a9baa45a1bfd30fb7
5
5
  SHA512:
6
- metadata.gz: f871f6ba3f4b59ad70b33368afdf5bfe39bd89af93b3e7e4d59be051490f4d6c3d634bb369ad32c70f4be5d737b0662cdc1c37f26845ce31455866c29696d0a5
7
- data.tar.gz: 4c6680bc8711f74c1c5900fcd5b7a24e38fd6d1d50a766ac2801107e46a80d401bf4fae701cae5997c025c37b713fec9a66fc4ec5a989caadb73ce33895ab94d
6
+ metadata.gz: 3ef68990ac8a8202b5e4a2bb6d7f7dcf0f1c094944a0112f8b7f6be4a33c6e0878931c6adfcbfae23390d8fe0319798890946b8f9019ee7fc2c10f98f548602f
7
+ data.tar.gz: 15632922da5bd5fb058a3e61fd036d88a59d2c743fc86e438fe1f05f10117814e21bba8e2475c316f69cec0264e59bcd745521c31f59e3b7b1f5ff7838002c08
@@ -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
- name: Release
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
- runs-on: ubuntu-latest
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@v3
14
- - name: Install Ruby 3.3
18
+ - uses: actions/checkout@v4
19
+ - name: Install Ruby
15
20
  uses: ruby/setup-ruby@v1
16
21
  with:
17
- ruby-version: '3.3'
18
- env:
19
- BUNDLE_WITHOUT: release:development:rubocop
22
+ ruby-version: 'ruby'
20
23
  - name: Build gem
21
- run: gem build --strict --verbose *.gemspec
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
- env:
25
- GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
26
- - name: Setup GitHub packages access
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
- 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
105
+ gem install rubygems-await
106
+ gem await *.gem
@@ -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
- env:
10
- BUNDLE_WITHOUT: release
10
+ permissions:
11
+ contents: read
11
12
 
12
13
  jobs:
13
- rubocop:
14
- runs-on: ubuntu-latest
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@v3
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: "2.7"
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-latest
31
+ runs-on: ubuntu-24.04
32
+ needs: rubocop_and_matrix
26
33
  strategy:
27
34
  fail-fast: false
28
35
  matrix:
29
- include:
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
- - rubocop
59
- runs-on: ubuntu-latest
59
+ runs-on: ubuntu-24.04
60
60
  name: Test suite
61
61
  steps:
62
- - run: echo Test suite completed
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
- # on 2024-05-28 09:54:02 UTC using RuboCop version 1.63.5.
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
- # This cop supports unsafe autocorrection (--autocorrect-all).
24
- Lint/NonDeterministicRequireOrder:
23
+ Naming/AccessorMethodName:
25
24
  Exclude:
26
- - 'spec/spec_helper.rb'
25
+ - 'lib/beaker/hypervisor/vagrant.rb'
27
26
 
28
27
  # Offense count: 2
29
- # This cop supports unsafe autocorrection (--autocorrect-all).
30
- # Configuration parameters: AutoCorrect.
31
- Lint/UselessAssignment:
32
- Exclude:
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: 2
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: 8
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: 23
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, IgnoreCopDirectives, AllowedPatterns.
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.16.4', require: false
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
@@ -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.7')
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', '< 3.0'
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 'simplecov', '~> 0.22.0'
31
- s.add_development_dependency 'voxpupuli-rubocop', '~> 2.7.0'
37
+ s.add_development_dependency 'voxpupuli-rubocop', '~> 5.2.0'
32
38
 
33
- s.add_runtime_dependency 'beaker', '>= 4', '< 7'
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
- '1'
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
- '1024'
304
+ '2048'
307
305
  end
308
306
  end
309
307
 
@@ -1,3 +1,3 @@
1
1
  module BeakerVagrant
2
- VERSION = '1.4.0'
2
+ VERSION = '2.1.0'
3
3
  end
@@ -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'] = '1024'\n end))
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'] = '1024'\n end))
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
@@ -45,7 +45,7 @@ describe Beaker::VagrantLibvirt do
45
45
  end
46
46
 
47
47
  it 'can specify the memory as an integer' do
48
- expect(subject).to include('node.memory = 1024')
48
+ expect(subject).to include('node.memory = 2048')
49
49
  end
50
50
 
51
51
  it 'can specify the number of cpus' do
@@ -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 = '1024'\n end))
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
 
@@ -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', '1024', '--cpus', '1', '--audio', 'none']
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', '1024', '--cpus', '1', '--audio', 'none']
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', '1024', '--cpus', '1', '--audio', 'none']
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
- path = vagrant.instance_variable_get(:@vagrant_path)
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
- path = vagrant.instance_variable_get(:@vagrant_path)
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', '1', '--audio', 'none'\]/)
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', '1024', '--cpus', 'goodbye!', '--audio', 'none'\]/)
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', '1024', '--cpus', '1', '--audio', 'none']\n end))
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'] = '1024'\n end))
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
@@ -1,4 +1,3 @@
1
- require 'simplecov'
2
1
  require 'beaker'
3
2
 
4
3
  Dir.glob(Dir.pwd + '/lib/beaker/hypervisor/*.rb') { |file| require file }
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.0
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: 2024-05-28 00:00:00.000000000 Z
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: '3.0'
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: '3.0'
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.7.0
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.7.0
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: '7'
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: '7'
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
- post_install_message:
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.7'
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: 3.5.9
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: []
data/.simplecov DELETED
@@ -1,9 +0,0 @@
1
- SimpleCov.configure do
2
- add_filter 'spec/'
3
- add_filter 'vendor/'
4
- add_filter do |file|
5
- file.lines_of_code < 10
6
- end
7
- end
8
-
9
- SimpleCov.start if ENV['BEAKER_VAGRANT_COVERAGE']