beaker-vagrant 1.4.0 → 2.0.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: ce132dde1a0dfe1e4418cbd6cfe5db6dcbb4ee312a090ed7cfb10ff90da59a2e
4
+ data.tar.gz: 55ec2efb5d2841a28e29ad9970d1d5b0c8bd99b43d5a6d0cb8eea4d40215e6c6
5
5
  SHA512:
6
- metadata.gz: f871f6ba3f4b59ad70b33368afdf5bfe39bd89af93b3e7e4d59be051490f4d6c3d634bb369ad32c70f4be5d737b0662cdc1c37f26845ce31455866c29696d0a5
7
- data.tar.gz: 4c6680bc8711f74c1c5900fcd5b7a24e38fd6d1d50a766ac2801107e46a80d401bf4fae701cae5997c025c37b713fec9a66fc4ec5a989caadb73ce33895ab94d
6
+ metadata.gz: de429f8e1a8c53e7bf34400bf1e0ed2ffc1f076d37d3bc50ec10334c950bfa5d64ff007da1beb86c906b20f9c8aeb8a85b1ef2fed89a2373edbf70911569b1c7
7
+ data.tar.gz: d6d22e87be99c230c24dc8f23a2f22fb7d2e5a2bbe55713487f941aa7ae6d67973c96e0ec9d2159795d242bd11dbe4a95d29ff84be1314496670ec7026a8a137
@@ -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,30 @@ on:
6
7
  branches:
7
8
  - master
8
9
 
9
- env:
10
- BUNDLE_WITHOUT: release
11
-
12
10
  jobs:
13
- rubocop:
14
- runs-on: ubuntu-latest
11
+ rubocop_and_matrix:
12
+ runs-on: ubuntu-24.04
13
+ outputs:
14
+ ruby: ${{ steps.ruby.outputs.versions }}
15
15
  steps:
16
- - uses: actions/checkout@v3
16
+ - uses: actions/checkout@v4
17
17
  - name: Install Ruby ${{ matrix.ruby }}
18
18
  uses: ruby/setup-ruby@v1
19
19
  with:
20
- ruby-version: "2.7"
20
+ ruby-version: "3.4"
21
21
  bundler-cache: true
22
22
  - name: Run Rubocop
23
23
  run: bundle exec rake rubocop
24
+ - id: ruby
25
+ uses: voxpupuli/ruby-version@v1
26
+
24
27
  spec:
25
- runs-on: ubuntu-latest
28
+ runs-on: ubuntu-24.04
29
+ needs: rubocop_and_matrix
26
30
  strategy:
27
31
  fail-fast: false
28
32
  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 }}
33
+ ruby: ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
38
34
  name: RSpec - Ruby ${{ matrix.ruby }}
39
35
  steps:
40
36
  - uses: actions/checkout@v3
@@ -53,10 +49,14 @@ jobs:
53
49
  # run: bundle exec rake test:acceptance
54
50
 
55
51
  tests:
52
+ if: always()
56
53
  needs:
54
+ - rubocop_and_matrix
57
55
  - spec
58
- - rubocop
59
- runs-on: ubuntu-latest
56
+ runs-on: ubuntu-24.04
60
57
  name: Test suite
61
58
  steps:
62
- - run: echo Test suite completed
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.yml CHANGED
@@ -3,3 +3,6 @@ inherit_from: .rubocop_todo.yml
3
3
 
4
4
  inherit_gem:
5
5
  voxpupuli-rubocop: rubocop.yml
6
+
7
+ AllCops:
8
+ TargetRubyVersion: 3.2
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.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
@@ -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:
@@ -149,6 +144,16 @@ Rake/Desc:
149
144
  Exclude:
150
145
  - 'Rakefile'
151
146
 
147
+ # Offense count: 2
148
+ # This cop supports safe autocorrection (--autocorrect).
149
+ # Configuration parameters: AllowOnlyRestArgument, UseAnonymousForwarding, RedundantRestArgumentNames, RedundantKeywordRestArgumentNames, RedundantBlockArgumentNames.
150
+ # RedundantRestArgumentNames: args, arguments
151
+ # RedundantKeywordRestArgumentNames: kwargs, options, opts
152
+ # RedundantBlockArgumentNames: blk, block, proc
153
+ Style/ArgumentsForwarding:
154
+ Exclude:
155
+ - 'lib/beaker/hypervisor/vagrant.rb'
156
+
152
157
  # Offense count: 7
153
158
  # This cop supports safe autocorrection (--autocorrect).
154
159
  # Configuration parameters: AllowOnConstant, AllowOnSelfClass.
@@ -159,8 +164,10 @@ Style/CaseEquality:
159
164
 
160
165
  # Offense count: 8
161
166
  # This cop supports unsafe autocorrection (--autocorrect-all).
162
- # Configuration parameters: EnforcedStyle.
167
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForClasses, EnforcedStyleForModules.
163
168
  # SupportedStyles: nested, compact
169
+ # SupportedStylesForClasses: ~, nested, compact
170
+ # SupportedStylesForModules: ~, nested, compact
164
171
  Style/ClassAndModuleChildren:
165
172
  Exclude:
166
173
  - 'lib/beaker/hypervisor/vagrant/mount_folder.rb'
@@ -194,7 +201,7 @@ Style/EnvHome:
194
201
  Exclude:
195
202
  - 'Rakefile'
196
203
 
197
- # Offense count: 23
204
+ # Offense count: 22
198
205
  # This cop supports unsafe autocorrection (--autocorrect-all).
199
206
  # Configuration parameters: EnforcedStyle.
200
207
  # SupportedStyles: always, always_true, never
@@ -252,7 +259,7 @@ Style/StringConcatenation:
252
259
 
253
260
  # Offense count: 24
254
261
  # This cop supports safe autocorrection (--autocorrect).
255
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
262
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
256
263
  # URISchemes: http, https
257
264
  Layout/LineLength:
258
265
  Max: 222
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.0.0](https://github.com/voxpupuli/beaker-vagrant/tree/2.0.0) (2025-08-07)
4
+
5
+ [Full Changelog](https://github.com/voxpupuli/beaker-vagrant/compare/1.4.0...2.0.0)
6
+
7
+ **Breaking changes:**
8
+
9
+ - Require Ruby 3.2 or newer [\#95](https://github.com/voxpupuli/beaker-vagrant/pull/95) ([bastelfreak](https://github.com/bastelfreak))
10
+
11
+ **Implemented enhancements:**
12
+
13
+ - beaker: Allow 7.x [\#93](https://github.com/voxpupuli/beaker-vagrant/pull/93) ([bastelfreak](https://github.com/bastelfreak))
14
+ - Increase defaults to 2 CPU cores/2G ram [\#90](https://github.com/voxpupuli/beaker-vagrant/pull/90) ([bastelfreak](https://github.com/bastelfreak))
15
+
3
16
  ## [1.4.0](https://github.com/voxpupuli/beaker-vagrant/tree/1.4.0) (2024-05-28)
4
17
 
5
18
  [Full Changelog](https://github.com/voxpupuli/beaker-vagrant/compare/1.3.0...1.4.0)
@@ -193,7 +206,6 @@
193
206
 
194
207
  **Merged pull requests:**
195
208
 
196
- - \(maint\) add support for extra vmware configuration [\#14](https://github.com/voxpupuli/beaker-vagrant/pull/14) ([lmayorga1980](https://github.com/lmayorga1980))
197
209
  - 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
210
 
199
211
  ## [0.4.0](https://github.com/voxpupuli/beaker-vagrant/tree/0.4.0) (2018-02-22)
@@ -219,7 +231,6 @@
219
231
  **Merged pull requests:**
220
232
 
221
233
  - 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
234
 
224
235
  ## [0.2.0](https://github.com/voxpupuli/beaker-vagrant/tree/0.2.0) (2018-01-09)
225
236
 
@@ -233,10 +244,6 @@
233
244
 
234
245
  [Full Changelog](https://github.com/voxpupuli/beaker-vagrant/compare/0.1.0...0.1.1)
235
246
 
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
247
  ## [0.1.0](https://github.com/voxpupuli/beaker-vagrant/tree/0.1.0) (2017-07-14)
241
248
 
242
249
  [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
9
  gem 'github_changelog_generator', '~> 1.16.4', 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,18 @@ 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', '< 4')
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
25
  # Testing dependencies
26
- s.add_development_dependency 'fakefs', '>= 0.6', '< 3.0'
26
+ s.add_development_dependency 'fakefs', '>= 0.6', '< 4'
27
27
  s.add_development_dependency 'pry', '~> 0.10'
28
28
  s.add_development_dependency 'rake', '~> 13.0'
29
29
  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'
30
+ s.add_development_dependency 'voxpupuli-rubocop', '~> 4.1.0'
32
31
 
33
- s.add_runtime_dependency 'beaker', '>= 4', '< 7'
32
+ s.add_dependency 'beaker', '>= 4', '< 8'
34
33
  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.0.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.0.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: 4.1.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: 4.1.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
@@ -172,7 +157,6 @@ homepage: https://github.com/puppetlabs/beaker-vagrant
172
157
  licenses:
173
158
  - Apache-2.0
174
159
  metadata: {}
175
- post_install_message:
176
160
  rdoc_options: []
177
161
  require_paths:
178
162
  - lib
@@ -180,15 +164,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
180
164
  requirements:
181
165
  - - ">="
182
166
  - !ruby/object:Gem::Version
183
- version: '2.7'
167
+ version: '3.2'
168
+ - - "<"
169
+ - !ruby/object:Gem::Version
170
+ version: '4'
184
171
  required_rubygems_version: !ruby/object:Gem::Requirement
185
172
  requirements:
186
173
  - - ">="
187
174
  - !ruby/object:Gem::Version
188
175
  version: '0'
189
176
  requirements: []
190
- rubygems_version: 3.5.9
191
- signing_key:
177
+ rubygems_version: 3.6.9
192
178
  specification_version: 4
193
179
  summary: Beaker DSL Extension Helpers!
194
180
  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']