beaker-vmware 0.3.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/dependabot.yml +8 -0
- data/.github/workflows/release.yml +32 -0
- data/.github/workflows/test.yml +35 -0
- data/CHANGELOG.md +42 -0
- data/Gemfile +7 -3
- data/README.md +43 -9
- data/Rakefile +14 -0
- data/beaker-vmware.gemspec +5 -14
- data/lib/beaker-vmware/version.rb +1 -1
- data/spec/spec_helper.rb +24 -1
- metadata +10 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 60f7f50dce24d1ebc8f1a54b7764f0d640915e8b5fbcee24b7775e798e065f3c
|
4
|
+
data.tar.gz: cc69b9a923c68bd3cf2c5ec0e24f00cab54acf38533253529a9df8be76d12a96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b780022ef4f50cd6811225dec75532f6a333d0df4a40bf4335e351800d6a67e02a8248ae26e34ba81f9d7c6c43a9c9820e7078a68029dbee852e452826ac59ac
|
7
|
+
data.tar.gz: 5487718187e70b29b3d0a2eba7546171b736e601d28da8f98cf63c9155560967125bd13f9f8cffd536c460d3d09350d67a46d24e59dd4f01390d96866c54c1c8
|
@@ -0,0 +1,32 @@
|
|
1
|
+
name: Release
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- '*'
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
release:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
if: github.repository_owner == 'voxpupuli'
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v2
|
14
|
+
- name: Install Ruby 3.0
|
15
|
+
uses: ruby/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: '3.0'
|
18
|
+
env:
|
19
|
+
BUNDLE_WITHOUT: release
|
20
|
+
- name: Build gem
|
21
|
+
run: gem build *.gemspec
|
22
|
+
- name: Publish gem to rubygems.org
|
23
|
+
run: gem push *.gem
|
24
|
+
env:
|
25
|
+
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
|
26
|
+
- name: Setup GitHub packages access
|
27
|
+
run: |
|
28
|
+
mkdir -p ~/.gem
|
29
|
+
echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials
|
30
|
+
chmod 0600 ~/.gem/credentials
|
31
|
+
- name: Publish gem to GitHub packages
|
32
|
+
run: gem push --key github --host https://rubygems.pkg.github.com/voxpupuli *.gem
|
@@ -0,0 +1,35 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on:
|
4
|
+
- pull_request
|
5
|
+
- push
|
6
|
+
|
7
|
+
env:
|
8
|
+
BUNDLE_WITHOUT: release
|
9
|
+
|
10
|
+
jobs:
|
11
|
+
test:
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
strategy:
|
14
|
+
fail-fast: false
|
15
|
+
matrix:
|
16
|
+
include:
|
17
|
+
- ruby: "2.4"
|
18
|
+
- ruby: "2.5"
|
19
|
+
- ruby: "2.6"
|
20
|
+
- ruby: "2.7"
|
21
|
+
- ruby: "3.0"
|
22
|
+
coverage: "yes"
|
23
|
+
env:
|
24
|
+
COVERAGE: ${{ matrix.coverage }}
|
25
|
+
steps:
|
26
|
+
- uses: actions/checkout@v2
|
27
|
+
- name: Install Ruby ${{ matrix.ruby }}
|
28
|
+
uses: ruby/setup-ruby@v1
|
29
|
+
with:
|
30
|
+
ruby-version: ${{ matrix.ruby }}
|
31
|
+
bundler-cache: true
|
32
|
+
- name: Run tests
|
33
|
+
run: bundle exec rake
|
34
|
+
- name: Build gem
|
35
|
+
run: gem build *.gemspec
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## [1.0.0](https://github.com/voxpupuli/beaker-vmware/tree/1.0.0) (2021-08-09)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-vmware/compare/0.3.0...1.0.0)
|
6
|
+
|
7
|
+
**Merged pull requests:**
|
8
|
+
|
9
|
+
- Add GitHub actions, Update README.md after migration [\#10](https://github.com/voxpupuli/beaker-vmware/pull/10) ([bastelfreak](https://github.com/bastelfreak))
|
10
|
+
- \(BKR-1509\) Hypervisor usage instructions for Beaker 4.0 [\#9](https://github.com/voxpupuli/beaker-vmware/pull/9) ([Dakta](https://github.com/Dakta))
|
11
|
+
|
12
|
+
## [0.3.0](https://github.com/voxpupuli/beaker-vmware/tree/0.3.0) (2018-07-16)
|
13
|
+
|
14
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-vmware/compare/0.2.0...0.3.0)
|
15
|
+
|
16
|
+
**Merged pull requests:**
|
17
|
+
|
18
|
+
- \(MAINT\) Pin fakefs for old Ruby [\#7](https://github.com/voxpupuli/beaker-vmware/pull/7) ([Dakta](https://github.com/Dakta))
|
19
|
+
- \(BKR-1485\) Update documentation [\#6](https://github.com/voxpupuli/beaker-vmware/pull/6) ([Dakta](https://github.com/Dakta))
|
20
|
+
- \(BKR-1481\) Rewrite beaker-vmware to use shared .fog parsing [\#5](https://github.com/voxpupuli/beaker-vmware/pull/5) ([Dakta](https://github.com/Dakta))
|
21
|
+
|
22
|
+
## [0.2.0](https://github.com/voxpupuli/beaker-vmware/tree/0.2.0) (2017-07-19)
|
23
|
+
|
24
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-vmware/compare/0.1.0...0.2.0)
|
25
|
+
|
26
|
+
**Merged pull requests:**
|
27
|
+
|
28
|
+
- \(BKR-1162\) Add vsphere hypervisor support [\#4](https://github.com/voxpupuli/beaker-vmware/pull/4) ([rishijavia](https://github.com/rishijavia))
|
29
|
+
|
30
|
+
## [0.1.0](https://github.com/voxpupuli/beaker-vmware/tree/0.1.0) (2017-07-18)
|
31
|
+
|
32
|
+
[Full Changelog](https://github.com/voxpupuli/beaker-vmware/compare/7ddc6f7aa8480bfef0e7d5271c71acf89fce0149...0.1.0)
|
33
|
+
|
34
|
+
**Merged pull requests:**
|
35
|
+
|
36
|
+
- \(MAINT\) Add simplecov [\#3](https://github.com/voxpupuli/beaker-vmware/pull/3) ([rishijavia](https://github.com/rishijavia))
|
37
|
+
- \(MAINT\) Add version constant [\#2](https://github.com/voxpupuli/beaker-vmware/pull/2) ([rishijavia](https://github.com/rishijavia))
|
38
|
+
- \(MAINT\) Update acceptance test instructions [\#1](https://github.com/voxpupuli/beaker-vmware/pull/1) ([rishijavia](https://github.com/rishijavia))
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/Gemfile
CHANGED
@@ -18,10 +18,14 @@ end
|
|
18
18
|
# We don't put beaker in as a test dependency because we
|
19
19
|
# don't want to create a transitive dependency
|
20
20
|
group :acceptance_testing do
|
21
|
-
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '
|
21
|
+
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '>= 3.0')
|
22
22
|
end
|
23
23
|
|
24
|
+
group :release do
|
25
|
+
gem 'github_changelog_generator', require: false
|
26
|
+
end
|
24
27
|
|
25
|
-
|
26
|
-
|
28
|
+
group :coverage, optional: ENV['COVERAGE']!='yes' do
|
29
|
+
gem 'simplecov-console', :require => false
|
30
|
+
gem 'codecov', :require => false
|
27
31
|
end
|
data/README.md
CHANGED
@@ -1,21 +1,37 @@
|
|
1
1
|
# beaker-vmware
|
2
2
|
|
3
|
+
[![License](https://img.shields.io/github/license/voxpupuli/beaker-vmware.svg)](https://github.com/voxpupuli/beaker-vmware/blob/master/LICENSE)
|
4
|
+
[![Test](https://github.com/voxpupuli/beaker-vmware/actions/workflows/test.yml/badge.svg)](https://github.com/voxpupuli/beaker-vmware/actions/workflows/test.yml)
|
5
|
+
[![codecov](https://codecov.io/gh/voxpupuli/beaker-vmware/branch/master/graph/badge.svg)](https://codecov.io/gh/voxpupuli/beaker-vmware)
|
6
|
+
[![Release](https://github.com/voxpupuli/beaker-vmware/actions/workflows/release.yml/badge.svg)](https://github.com/voxpupuli/beaker-vmware/actions/workflows/release.yml)
|
7
|
+
[![RubyGem Version](https://img.shields.io/gem/v/beaker-vmware.svg)](https://rubygems.org/gems/beaker-vmware)
|
8
|
+
[![RubyGem Downloads](https://img.shields.io/gem/dt/beaker-vmware.svg)](https://rubygems.org/gems/beaker-vmware)
|
9
|
+
[![Donated by Puppet Inc](https://img.shields.io/badge/donated%20by-Puppet%20Inc-fb7047.svg)](#transfer-notice)
|
10
|
+
|
3
11
|
Beaker library to use vmware fusion hypervisor
|
4
12
|
|
5
13
|
# How to use this wizardry
|
6
14
|
|
7
15
|
This gem allows you to use hosts with [vmware_fusion](vmware_fusion.md) and [vsphere](vsphere.md) hypervisor with [beaker](https://github.com/puppetlabs/beaker).
|
8
16
|
|
9
|
-
|
17
|
+
Beaker will automatically load the appropriate hypervisors for any given hosts file, so as long as your project dependencies are satisfied there's nothing else to do. No need to `require` this library in your tests.
|
18
|
+
|
19
|
+
## With Beaker 3.x
|
10
20
|
|
11
|
-
This
|
21
|
+
This library is included as a dependency of Beaker 3.x versions, so there's nothing to do.
|
12
22
|
|
13
|
-
|
23
|
+
## With Beaker 4.x
|
14
24
|
|
15
|
-
In
|
16
|
-
|
17
|
-
|
18
|
-
|
25
|
+
As of Beaker 4.0, all hypervisor and DSL extension libraries have been removed and are no longer dependencies. In order to use a specific hypervisor or DSL extension library in your project, you will need to include them alongside Beaker in your Gemfile or project.gemspec. E.g.
|
26
|
+
|
27
|
+
~~~ruby
|
28
|
+
# Gemfile
|
29
|
+
gem 'beaker', '~>4.0'
|
30
|
+
gem 'beaker-vmware'
|
31
|
+
# project.gemspec
|
32
|
+
s.add_runtime_dependency 'beaker', '~>4.0'
|
33
|
+
s.add_runtime_dependency 'beaker-vmware'
|
34
|
+
~~~
|
19
35
|
|
20
36
|
# Spec tests
|
21
37
|
|
@@ -33,6 +49,24 @@ We run beaker's base acceptance tests with this library to see if the hypervisor
|
|
33
49
|
$ bundle exec rake test:acceptance
|
34
50
|
```
|
35
51
|
|
36
|
-
|
52
|
+
## Transfer Notice
|
53
|
+
|
54
|
+
This plugin was originally authored by [Puppet Inc](http://puppet.com).
|
55
|
+
The maintainer preferred that Vox Pupuli take ownership of the module for future improvement and maintenance.
|
56
|
+
Existing pull requests and issues were transferred over, please fork and continue to contribute at https://github.com/voxpupuli/beaker-vmware
|
57
|
+
|
58
|
+
Previously: https://github.com/puppetlabs/beaker-vmware
|
59
|
+
|
60
|
+
## License
|
61
|
+
|
62
|
+
This gem is licensed under the Apache-2 license.
|
63
|
+
|
64
|
+
## Release information
|
37
65
|
|
38
|
-
|
66
|
+
To make a new release, please do:
|
67
|
+
* update the version in lib/beaker-vmware/version.rb
|
68
|
+
* Install gems with `bundle install --with release --path .vendor`
|
69
|
+
* generate the changelog with `bundle exec rake changelog`
|
70
|
+
* Check if the new version matches the closed issues/PRs in the changelog
|
71
|
+
* Create a PR with it
|
72
|
+
* After it got merged, push a tag. GitHub actions will do the actual release to rubygems and GitHub Packages
|
data/Rakefile
CHANGED
@@ -158,3 +158,17 @@ namespace :docs do
|
|
158
158
|
end
|
159
159
|
end
|
160
160
|
end
|
161
|
+
|
162
|
+
begin
|
163
|
+
require 'rubygems'
|
164
|
+
require 'github_changelog_generator/task'
|
165
|
+
rescue LoadError # rubocop:disable Lint/HandleExceptions
|
166
|
+
else
|
167
|
+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
168
|
+
config.exclude_labels = %w[duplicate question invalid wontfix wont-fix skip-changelog]
|
169
|
+
config.user = 'voxpupuli'
|
170
|
+
config.project = 'beaker-vmware'
|
171
|
+
gem_version = Gem::Specification.load("#{config.project}.gemspec").version
|
172
|
+
config.future_release = gem_version
|
173
|
+
end
|
174
|
+
end
|
data/beaker-vmware.gemspec
CHANGED
@@ -5,9 +5,9 @@ require 'beaker-vmware/version'
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "beaker-vmware"
|
7
7
|
s.version = BeakerVmware::VERSION
|
8
|
-
s.authors = ["
|
9
|
-
s.email = ["
|
10
|
-
s.homepage = "https://github.com/
|
8
|
+
s.authors = ["Vox Pupuli"]
|
9
|
+
s.email = ["voxpupuli@groups.io"]
|
10
|
+
s.homepage = "https://github.com/voxpupuli/beaker-vmware"
|
11
11
|
s.summary = %q{Beaker DSL Extension Helpers!}
|
12
12
|
s.description = %q{For use for the Beaker acceptance testing tool}
|
13
13
|
s.license = 'Apache2'
|
@@ -20,15 +20,8 @@ Gem::Specification.new do |s|
|
|
20
20
|
# Testing dependencies
|
21
21
|
s.add_development_dependency 'rspec', '~> 3.0'
|
22
22
|
s.add_development_dependency 'rspec-its'
|
23
|
-
|
24
|
-
|
25
|
-
else
|
26
|
-
s.add_development_dependency 'fakefs', '~> 0.6'
|
27
|
-
end
|
28
|
-
s.add_development_dependency 'rake', '~> 10.1'
|
29
|
-
s.add_development_dependency 'simplecov'
|
30
|
-
s.add_development_dependency 'pry', '~> 0.10'
|
31
|
-
s.add_development_dependency 'beaker', '~> 3.0'
|
23
|
+
s.add_development_dependency 'fakefs', '~> 0.6'
|
24
|
+
s.add_development_dependency 'rake'
|
32
25
|
|
33
26
|
# Documentation dependencies
|
34
27
|
s.add_development_dependency 'yard'
|
@@ -39,6 +32,4 @@ Gem::Specification.new do |s|
|
|
39
32
|
s.add_runtime_dependency 'stringify-hash', '~> 0.0.0'
|
40
33
|
s.add_runtime_dependency 'fission', '~> 0.4'
|
41
34
|
s.add_runtime_dependency 'rbvmomi', '~> 1.9'
|
42
|
-
|
43
35
|
end
|
44
|
-
|
data/spec/spec_helper.rb
CHANGED
@@ -1,4 +1,27 @@
|
|
1
|
-
|
1
|
+
begin
|
2
|
+
require 'simplecov'
|
3
|
+
require 'simplecov-console'
|
4
|
+
require 'codecov'
|
5
|
+
rescue LoadError
|
6
|
+
else
|
7
|
+
SimpleCov.start do
|
8
|
+
track_files 'lib/**/*.rb'
|
9
|
+
|
10
|
+
add_filter '/spec'
|
11
|
+
|
12
|
+
enable_coverage :branch
|
13
|
+
|
14
|
+
# do not track vendored files
|
15
|
+
add_filter '/vendor'
|
16
|
+
add_filter '/.vendor'
|
17
|
+
end
|
18
|
+
|
19
|
+
SimpleCov.formatters = [
|
20
|
+
SimpleCov::Formatter::Console,
|
21
|
+
SimpleCov::Formatter::Codecov,
|
22
|
+
]
|
23
|
+
end
|
24
|
+
|
2
25
|
require 'rspec/its'
|
3
26
|
require 'beaker'
|
4
27
|
|
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: 0.
|
4
|
+
version: 1.0.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:
|
11
|
+
date: 2021-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -54,20 +54,6 @@ dependencies:
|
|
54
54
|
version: '0.6'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '10.1'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '10.1'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: simplecov
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
59
|
- - ">="
|
@@ -80,34 +66,6 @@ dependencies:
|
|
80
66
|
- - ">="
|
81
67
|
- !ruby/object:Gem::Version
|
82
68
|
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: pry
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0.10'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0.10'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: beaker
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '3.0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '3.0'
|
111
69
|
- !ruby/object:Gem::Dependency
|
112
70
|
name: yard
|
113
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -194,14 +152,18 @@ dependencies:
|
|
194
152
|
version: '1.9'
|
195
153
|
description: For use for the Beaker acceptance testing tool
|
196
154
|
email:
|
197
|
-
-
|
155
|
+
- voxpupuli@groups.io
|
198
156
|
executables:
|
199
157
|
- beaker-vmware
|
200
158
|
extensions: []
|
201
159
|
extra_rdoc_files: []
|
202
160
|
files:
|
161
|
+
- ".github/dependabot.yml"
|
162
|
+
- ".github/workflows/release.yml"
|
163
|
+
- ".github/workflows/test.yml"
|
203
164
|
- ".gitignore"
|
204
165
|
- ".simplecov"
|
166
|
+
- CHANGELOG.md
|
205
167
|
- Gemfile
|
206
168
|
- LICENSE
|
207
169
|
- README.md
|
@@ -221,7 +183,7 @@ files:
|
|
221
183
|
- spec/spec_helper.rb
|
222
184
|
- vmware_fusion.md
|
223
185
|
- vsphere.md
|
224
|
-
homepage: https://github.com/
|
186
|
+
homepage: https://github.com/voxpupuli/beaker-vmware
|
225
187
|
licenses:
|
226
188
|
- Apache2
|
227
189
|
metadata: {}
|
@@ -240,8 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
240
202
|
- !ruby/object:Gem::Version
|
241
203
|
version: '0'
|
242
204
|
requirements: []
|
243
|
-
|
244
|
-
rubygems_version: 2.5.1
|
205
|
+
rubygems_version: 3.2.22
|
245
206
|
signing_key:
|
246
207
|
specification_version: 4
|
247
208
|
summary: Beaker DSL Extension Helpers!
|