beaker-vmware 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be69407550d964113e9fb9e3fdcd567c903fbff2e137dd716143e2abe38bd701
4
- data.tar.gz: 6b9a1365fec6cbcece962a6906588deeddd37eb87f7b939c9b78c01ab5d8b77e
3
+ metadata.gz: '08785ad75325b14676664b01b6f1e06d1bc71db1e1b282be476c5c153278bfc1'
4
+ data.tar.gz: 22e42b6dd8ddbcbf1da8ee9615ff1bb131e644691f58ec555774f086ac17f0de
5
5
  SHA512:
6
- metadata.gz: dda90f1f25eef41f3cdf32407d95ca6f2482b5de059ee443909f1174e6fdcd0e42f494792c70f41d279c3c3a004ede3e497ad0f461a634f26567eb3882efd78c
7
- data.tar.gz: f0293b346e71faec357550a5c955ef5da222b91fba56cfbd41ff69b2899df0223bae1a34d37f5072e60dc56abe9c0fe6c7e59e807d7b02a42847e8b1cf18d069
6
+ metadata.gz: 9464ebff95eb0ef4ae8c4afae38db526a99997112b28eff6d1ca5e088dc0d3bd35c101491f6ead2de832849861c906cf9880e1575d7cb0de3e0ef5288acf4cdf
7
+ data.tar.gz: c0f5e43b93c8376f9c4af45d955a1a7417448315f2df6f1e5ca41ec8e0feca30fe7d04a0740b4bda913e04c6948e9a1a3715b646979d5af64015399e764a31cd
@@ -1,17 +1,18 @@
1
+ ---
1
2
  version: 2
2
3
  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
4
+ # raise PRs for gem updates
5
+ - package-ecosystem: bundler
6
+ directory: "/"
7
+ schedule:
8
+ interval: daily
9
+ time: "13:00"
10
+ open-pull-requests-limit: 10
10
11
 
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
12
+ # Maintain dependencies for GitHub Actions
13
+ - package-ecosystem: github-actions
14
+ directory: "/"
15
+ schedule:
16
+ interval: daily
17
+ time: "13:00"
18
+ open-pull-requests-limit: 10
@@ -10,15 +10,15 @@ jobs:
10
10
  runs-on: ubuntu-latest
11
11
  if: github.repository_owner == 'voxpupuli'
12
12
  steps:
13
- - uses: actions/checkout@v3
14
- - name: Install Ruby 3.0
13
+ - uses: actions/checkout@v4
14
+ - name: Install Ruby 3.3
15
15
  uses: ruby/setup-ruby@v1
16
16
  with:
17
- ruby-version: '3.0'
17
+ ruby-version: '3.3'
18
18
  env:
19
19
  BUNDLE_WITHOUT: release
20
20
  - name: Build gem
21
- run: gem build *.gemspec
21
+ run: gem build --strict --verbose *.gemspec
22
22
  - name: Publish gem to rubygems.org
23
23
  run: gem push *.gem
24
24
  env:
@@ -13,11 +13,11 @@ jobs:
13
13
  rubocop:
14
14
  runs-on: ubuntu-latest
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: "3.1"
20
+ ruby-version: "3.3"
21
21
  bundler-cache: true
22
22
  - name: Run Rubocop
23
23
  run: bundle exec rake rubocop
@@ -32,10 +32,12 @@ jobs:
32
32
  - ruby: "3.0"
33
33
  coverage: "yes"
34
34
  - ruby: "3.1"
35
+ - ruby: "3.2"
36
+ - ruby: "3.3"
35
37
  env:
36
38
  COVERAGE: ${{ matrix.coverage }}
37
39
  steps:
38
- - uses: actions/checkout@v3
40
+ - uses: actions/checkout@v4
39
41
  - name: Install Ruby ${{ matrix.ruby }}
40
42
  uses: ruby/setup-ruby@v1
41
43
  with:
@@ -44,7 +46,7 @@ jobs:
44
46
  - name: Run tests
45
47
  run: bundle exec rake
46
48
  - name: Build gem
47
- run: gem build *.gemspec
49
+ run: gem build --strict --verbose *.gemspec
48
50
 
49
51
  tests:
50
52
  needs:
data/.rubocop.yml CHANGED
@@ -2,4 +2,4 @@
2
2
  inherit_from: .rubocop_todo.yml
3
3
 
4
4
  inherit_gem:
5
- beaker: rubocop.yml
5
+ voxpupuli-rubocop: rubocop.yml
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2023-03-27 20:09:11 UTC using RuboCop version 1.48.1.
3
+ # on 2023-09-26 11:32:50 UTC using RuboCop version 1.54.2.
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
@@ -19,23 +19,12 @@ Lint/DuplicateMethods:
19
19
  - 'spec/mock_vsphere_helper.rb'
20
20
 
21
21
  # Offense count: 2
22
+ # Configuration parameters: AllowedParentClasses.
22
23
  Lint/MissingSuper:
23
24
  Exclude:
24
25
  - 'lib/beaker/hypervisor/fusion.rb'
25
26
  - 'lib/beaker/hypervisor/vsphere.rb'
26
27
 
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
28
  # Offense count: 4
40
29
  Naming/AccessorMethodName:
41
30
  Exclude:
@@ -128,6 +117,11 @@ RSpec/VerifiedDoubles:
128
117
  Exclude:
129
118
  - 'spec/beaker/hypervisor/vsphere_helper_spec.rb'
130
119
 
120
+ # Offense count: 3
121
+ RSpec/VoidExpect:
122
+ Exclude:
123
+ - 'spec/beaker/hypervisor/vsphere_spec.rb'
124
+
131
125
  # Offense count: 3
132
126
  # This cop supports safe autocorrection (--autocorrect).
133
127
  Rake/Desc:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.1.0](https://github.com/voxpupuli/beaker-vmware/tree/2.1.0) (2024-04-23)
4
+
5
+ [Full Changelog](https://github.com/voxpupuli/beaker-vmware/compare/2.0.0...2.1.0)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Add Ruby 3.3 to CI matrix [\#43](https://github.com/voxpupuli/beaker-vmware/pull/43) ([bastelfreak](https://github.com/bastelfreak))
10
+ - Replace dead dependency rbvmomi with rbvmomi2 [\#41](https://github.com/voxpupuli/beaker-vmware/pull/41) ([bastelfreak](https://github.com/bastelfreak))
11
+ - Add Ruby 3.2 support [\#33](https://github.com/voxpupuli/beaker-vmware/pull/33) ([bastelfreak](https://github.com/bastelfreak))
12
+
13
+ **Merged pull requests:**
14
+
15
+ - rubocop: Use task from voxpupuli-rubocop [\#42](https://github.com/voxpupuli/beaker-vmware/pull/42) ([bastelfreak](https://github.com/bastelfreak))
16
+ - rubocop: safe autocorrection [\#38](https://github.com/voxpupuli/beaker-vmware/pull/38) ([bastelfreak](https://github.com/bastelfreak))
17
+ - Update voxpupuli-rubocop requirement from ~\> 1.2 to ~\> 2.0 [\#36](https://github.com/voxpupuli/beaker-vmware/pull/36) ([dependabot[bot]](https://github.com/apps/dependabot))
18
+ - GCG: Add faraday-retry dep [\#34](https://github.com/voxpupuli/beaker-vmware/pull/34) ([bastelfreak](https://github.com/bastelfreak))
19
+ - switch to voxpupuli-rubocop & Build gems with verbosity and strictness [\#32](https://github.com/voxpupuli/beaker-vmware/pull/32) ([bastelfreak](https://github.com/bastelfreak))
20
+
3
21
  ## [2.0.0](https://github.com/voxpupuli/beaker-vmware/tree/2.0.0) (2023-03-28)
4
22
 
5
23
  [Full Changelog](https://github.com/voxpupuli/beaker-vmware/compare/1.0.0...2.0.0)
@@ -16,7 +34,6 @@
16
34
 
17
35
  - 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
36
  - 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
37
  - dependabot: check for github actions and gems [\#20](https://github.com/voxpupuli/beaker-vmware/pull/20) ([bastelfreak](https://github.com/bastelfreak))
21
38
  - 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
39
 
data/Gemfile CHANGED
@@ -3,7 +3,8 @@ source ENV['GEM_SOURCE'] || 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :release do
6
- gem 'github_changelog_generator', require: false
6
+ gem 'faraday-retry', '~> 2.1', require: false
7
+ gem 'github_changelog_generator', '~> 1.16.4', require: false
7
8
  end
8
9
 
9
10
  group :coverage, optional: ENV['COVERAGE'] != 'yes' do
data/Rakefile CHANGED
@@ -53,7 +53,7 @@ rescue LoadError
53
53
  # github_changelog_generator is an optional group
54
54
  else
55
55
  GitHubChangelogGenerator::RakeTask.new :changelog do |config|
56
- config.exclude_labels = %w[duplicate question invalid wontfix wont-fix skip-changelog]
56
+ config.exclude_labels = %w[duplicate question invalid wontfix wont-fix skip-changelog github_actions]
57
57
  config.user = 'voxpupuli'
58
58
  config.project = 'beaker-vmware'
59
59
  gem_version = Gem::Specification.load("#{config.project}.gemspec").version
@@ -62,14 +62,7 @@ else
62
62
  end
63
63
 
64
64
  begin
65
- require 'rubocop/rake_task'
65
+ require 'voxpupuli/rubocop/rake'
66
66
  rescue LoadError
67
- # RuboCop is an optional group
68
- else
69
- RuboCop::RakeTask.new(:rubocop) do |task|
70
- # These make the rubocop experience maybe slightly less terrible
71
- task.options = ['--display-cop-names', '--display-style-guide', '--extra-details']
72
- # Use Rubocop's Github Actions formatter if possible
73
- task.formatters << 'github' if ENV['GITHUB_ACTIONS'] == 'true'
74
- end
67
+ # the voxpupuli-rubocop gem is optional
75
68
  end
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.homepage = 'https://github.com/voxpupuli/beaker-vmware'
10
10
  s.summary = 'Beaker DSL Extension Helpers!'
11
11
  s.description = 'For use for the Beaker acceptance testing tool'
12
- s.license = 'Apache2'
12
+ s.license = 'Apache-2.0'
13
13
 
14
14
  s.files = `git ls-files`.split("\n")
15
15
  s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
@@ -19,16 +19,13 @@ Gem::Specification.new do |s|
19
19
 
20
20
  # Testing dependencies
21
21
  s.add_development_dependency 'fakefs', '~> 2.4'
22
- s.add_development_dependency 'rake'
22
+ s.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
23
23
  s.add_development_dependency 'rspec', '~> 3.0'
24
- s.add_development_dependency 'rspec-its'
25
- s.add_development_dependency 'rubocop', '~> 1.48.1'
26
- s.add_development_dependency 'rubocop-performance', '~> 1.10'
27
- s.add_development_dependency 'rubocop-rake', '~> 0.2'
28
- s.add_development_dependency 'rubocop-rspec', '>= 1.44'
24
+ s.add_development_dependency 'rspec-its', '~> 1.3'
25
+ s.add_development_dependency 'voxpupuli-rubocop', '~> 2.6.0'
29
26
  # Run time dependencies
30
27
  s.add_runtime_dependency 'beaker', '>= 4', '< 6'
31
28
  s.add_runtime_dependency 'fission', '~> 0.4'
32
- s.add_runtime_dependency 'rbvmomi', '>= 1.9', '< 4.0'
29
+ s.add_runtime_dependency 'rbvmomi2', '~> 3.7'
33
30
  s.add_runtime_dependency 'stringify-hash', '~> 0.0.0'
34
31
  end
@@ -1,3 +1,3 @@
1
1
  module BeakerVmware
2
- VERSION = '2.0.0'
2
+ VERSION = '2.1.0'
3
3
  end
@@ -17,7 +17,7 @@ module Beaker
17
17
 
18
18
  hosts = vsphere.instance_variable_get(:@hosts)
19
19
  hosts.each do |host|
20
- expect(MockVsphereHelper.find_vm(host.name).powerState) == 'poweredOn'
20
+ expect(MockVsphereHelper.find_vm(host.name).powerState)
21
21
  end
22
22
  end
23
23
 
@@ -48,7 +48,7 @@ module Beaker
48
48
  vsphere.provision
49
49
 
50
50
  hosts.each do |host|
51
- expect(MockVsphereHelper.find_vm(host.name).powerState) == 'poweredOn'
51
+ expect(MockVsphereHelper.find_vm(host.name).powerState)
52
52
  end
53
53
  end
54
54
  end
@@ -61,7 +61,7 @@ module Beaker
61
61
 
62
62
  hosts = vsphere.instance_variable_get(:@hosts)
63
63
  hosts.each do |host|
64
- expect(MockVsphereHelper.find_vm(host.name).powerState) == 'poweredOff'
64
+ expect(MockVsphereHelper.find_vm(host.name).powerState)
65
65
  end
66
66
  end
67
67
 
data/spec/mock_vsphere.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'ostruct'
2
+
1
3
  class MockRbVmomiSnapshot
2
4
  attr_accessor :name, :rootSnapshotList, :childSnapshotList
3
5
 
@@ -88,13 +88,13 @@ class MockVsphereHelper
88
88
  end
89
89
 
90
90
  def self.powerOn
91
- @@vms.each do |_name, vm|
91
+ @@vms.each_value do |vm|
92
92
  vm.powerState = 'poweredOn'
93
93
  end
94
94
  end
95
95
 
96
96
  def self.powerOff
97
- @@vms.each do |_name, vm|
97
+ @@vms.each_value do |vm|
98
98
  vm.powerState = 'poweredOff'
99
99
  end
100
100
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-vmware
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-28 00:00:00.000000000 Z
11
+ date: 2024-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fakefs
@@ -28,16 +28,22 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '13.0'
31
34
  - - ">="
32
35
  - !ruby/object:Gem::Version
33
- version: '0'
36
+ version: 13.0.6
34
37
  type: :development
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '13.0'
38
44
  - - ">="
39
45
  - !ruby/object:Gem::Version
40
- version: '0'
46
+ version: 13.0.6
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: rspec
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -54,74 +60,32 @@ dependencies:
54
60
  version: '3.0'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: rspec-its
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: rubocop
71
63
  requirement: !ruby/object:Gem::Requirement
72
64
  requirements:
73
65
  - - "~>"
74
66
  - !ruby/object:Gem::Version
75
- version: 1.48.1
67
+ version: '1.3'
76
68
  type: :development
77
69
  prerelease: false
78
70
  version_requirements: !ruby/object:Gem::Requirement
79
71
  requirements:
80
72
  - - "~>"
81
73
  - !ruby/object:Gem::Version
82
- version: 1.48.1
74
+ version: '1.3'
83
75
  - !ruby/object:Gem::Dependency
84
- name: rubocop-performance
76
+ name: voxpupuli-rubocop
85
77
  requirement: !ruby/object:Gem::Requirement
86
78
  requirements:
87
79
  - - "~>"
88
80
  - !ruby/object:Gem::Version
89
- version: '1.10'
81
+ version: 2.6.0
90
82
  type: :development
91
83
  prerelease: false
92
84
  version_requirements: !ruby/object:Gem::Requirement
93
85
  requirements:
94
86
  - - "~>"
95
87
  - !ruby/object:Gem::Version
96
- version: '1.10'
97
- - !ruby/object:Gem::Dependency
98
- name: rubocop-rake
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '0.2'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '0.2'
111
- - !ruby/object:Gem::Dependency
112
- name: rubocop-rspec
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '1.44'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '1.44'
88
+ version: 2.6.0
125
89
  - !ruby/object:Gem::Dependency
126
90
  name: beaker
127
91
  requirement: !ruby/object:Gem::Requirement
@@ -157,25 +121,19 @@ dependencies:
157
121
  - !ruby/object:Gem::Version
158
122
  version: '0.4'
159
123
  - !ruby/object:Gem::Dependency
160
- name: rbvmomi
124
+ name: rbvmomi2
161
125
  requirement: !ruby/object:Gem::Requirement
162
126
  requirements:
163
- - - ">="
164
- - !ruby/object:Gem::Version
165
- version: '1.9'
166
- - - "<"
127
+ - - "~>"
167
128
  - !ruby/object:Gem::Version
168
- version: '4.0'
129
+ version: '3.7'
169
130
  type: :runtime
170
131
  prerelease: false
171
132
  version_requirements: !ruby/object:Gem::Requirement
172
133
  requirements:
173
- - - ">="
174
- - !ruby/object:Gem::Version
175
- version: '1.9'
176
- - - "<"
134
+ - - "~>"
177
135
  - !ruby/object:Gem::Version
178
- version: '4.0'
136
+ version: '3.7'
179
137
  - !ruby/object:Gem::Dependency
180
138
  name: stringify-hash
181
139
  requirement: !ruby/object:Gem::Requirement
@@ -230,7 +188,7 @@ files:
230
188
  - vsphere.md
231
189
  homepage: https://github.com/voxpupuli/beaker-vmware
232
190
  licenses:
233
- - Apache2
191
+ - Apache-2.0
234
192
  metadata: {}
235
193
  post_install_message:
236
194
  rdoc_options: []
@@ -247,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
247
205
  - !ruby/object:Gem::Version
248
206
  version: '0'
249
207
  requirements: []
250
- rubygems_version: 3.2.33
208
+ rubygems_version: 3.5.3
251
209
  signing_key:
252
210
  specification_version: 4
253
211
  summary: Beaker DSL Extension Helpers!