beaker-rspec 7.0.0 → 7.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: 68a58c97806394e14f2fc4f4fa0a27900f2ea9908f07da1fc8174d636417ae22
4
- data.tar.gz: 45d7fad9ce9a2e485d5789e2a64d159e38afef385a23c20adffe4e32171d734c
3
+ metadata.gz: 33c490e0e39f5a1263d21542547d9c9d0e80defea9b501c52592452944ba3482
4
+ data.tar.gz: 791e80f9306912dc43317015c1a3298bf604fe26df17c2cb815f6fe9264f5df0
5
5
  SHA512:
6
- metadata.gz: 71934f035cc3a5346488f645f242d9f9f986fcbe3a16a53b77fb6ff4b653b6410a5f83910138bc8f7864c692bd1ced213135ca8a44681d59cfba276a76151042
7
- data.tar.gz: e19961095e61def903797bb74df5e1a2fc31cbc3e489ab5298a0c58f4de413a60b7c51d5686a32f94a8d8164b115e810196d4d9b254885cb9bf31956153ef378
6
+ metadata.gz: b810b5bcf3313d1c4f554a98e4b09f6ac3c9312dba23766a064c4154159e469d761997e78b66a1bc1f2754a37a87d15a335d6c7067095d0b4f46d49a3f0f6722
7
+ data.tar.gz: ceec62d51cf7e9ca136a0836f2981e5e4ac43d116ffa04d10e31d56b849f75a3f5396b537c7e362a425a855a31176b91aee12cf0c3f513f9fd62a07ca0c65387
@@ -3,6 +3,9 @@ name: Test
3
3
  on:
4
4
  - pull_request
5
5
 
6
+ env:
7
+ BEAKER_HYPERVISOR: docker
8
+
6
9
  jobs:
7
10
  build:
8
11
  runs-on: ubuntu-latest
@@ -27,3 +30,5 @@ jobs:
27
30
  bundler-cache: true
28
31
  - name: Verify gem builds
29
32
  run: bundle exec gem build beaker-rspec.gemspec
33
+ - name: Run acceptance tests
34
+ run: bundle exec rake beaker
data/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [7.1.0](https://github.com/voxpupuli/beaker-rspec/tree/7.1.0) (2022-01-14)
6
+
7
+ [Full Changelog](https://github.com/voxpupuli/beaker-rspec/compare/7.0.0...7.1.0)
8
+
9
+ **Implemented enhancements:**
10
+
11
+ - Reduce beaker-pe to a development dependendency [\#109](https://github.com/voxpupuli/beaker-rspec/pull/109) ([ekohl](https://github.com/ekohl))
12
+
13
+ **Merged pull requests:**
14
+
15
+ - Add acceptance tests to CI; drop beaker-pe development dependency [\#110](https://github.com/voxpupuli/beaker-rspec/pull/110) ([ekohl](https://github.com/ekohl))
16
+
5
17
  ## [7.0.0](https://github.com/voxpupuli/beaker-rspec/tree/7.0.0) (2021-11-03)
6
18
 
7
19
  [Full Changelog](https://github.com/voxpupuli/beaker-rspec/compare/6.3.0...7.0.0)
data/Gemfile CHANGED
@@ -10,20 +10,18 @@ def location_for(place, fake_version = nil)
10
10
  end
11
11
  end
12
12
 
13
- beaker_version = ENV['BEAKER_VERSION']
14
-
15
- if beaker_version
13
+ if (beaker_version = ENV['BEAKER_VERSION'])
16
14
  gem 'beaker', *location_for(beaker_version)
17
- else
18
- gem 'beaker'
19
15
  end
20
16
 
21
- # For running the spec/acceptance/example_spec.rb
22
- gem 'beaker-vagrant'
23
-
24
- # Dependencies for CI acceptance testing; TODO: fix CI so this can be removed
25
- gem 'beaker-hostgenerator'
26
- gem 'beaker-vmpooler', '~> 1.3'
17
+ case ENV['BEAKER_HYPERVISOR']
18
+ when 'docker'
19
+ gem 'beaker-docker'
20
+ when 'vagrant', 'vagrant_libvirt'
21
+ gem 'beaker-vagrant'
22
+ when 'vmpooler'
23
+ gem 'beaker-vmpooler', '~> 1.3'
24
+ end
27
25
 
28
26
  group :release do
29
27
  gem 'github_changelog_generator', '>= 1.16.4', require: false if RUBY_VERSION >= '2.5'
data/Rakefile CHANGED
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- task default: [:changelog]
3
+ require 'beaker-rspec/rake_task'
4
+
5
+ task default: :beaker
4
6
 
5
7
  begin
6
8
  require 'rubygems'
data/beaker-rspec.gemspec CHANGED
@@ -28,9 +28,6 @@ Gem::Specification.new do |s|
28
28
  s.add_development_dependency 'yard'
29
29
  s.add_development_dependency 'thin'
30
30
 
31
- # Dependency for example spec/acceptance tests
32
- s.add_runtime_dependency 'beaker-pe'
33
-
34
31
  # Run time dependencies
35
32
  s.add_runtime_dependency 'beaker', '> 3.0'
36
33
  s.add_runtime_dependency 'rspec', '~> 3.0'
@@ -1,5 +1,5 @@
1
1
  module BeakerRSpec
2
2
  module Version
3
- STRING = '7.0.0'
3
+ STRING = '7.1.0'
4
4
  end
5
5
  end
@@ -12,8 +12,8 @@ describe "ignore" do
12
12
  self.hosts = hosts
13
13
  end
14
14
 
15
- example "access options hash" do
16
- install_pe
15
+ example "use DSL method" do
16
+ echo_on hosts, 'Hello World!'
17
17
  end
18
18
 
19
19
  example "access the logger" do
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,3 @@
1
- # if you need DSL extension libraries, it appears that they have to be loaded before the RSpec shim
2
- require "beaker-pe"
3
-
4
- ENV['RS_SETFILE'] ||= 'sample.cfg'
1
+ ENV['RS_SETFILE'] ||= 'centos8-64'
5
2
 
6
3
  require "beaker-rspec"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 7.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: 2021-11-03 00:00:00.000000000 Z
11
+ date: 2022-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -86,20 +86,6 @@ dependencies:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
- - !ruby/object:Gem::Dependency
90
- name: beaker-pe
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - ">="
94
- - !ruby/object:Gem::Version
95
- version: '0'
96
- type: :runtime
97
- prerelease: false
98
- version_requirements: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- version: '0'
103
89
  - !ruby/object:Gem::Dependency
104
90
  name: beaker
105
91
  requirement: !ruby/object:Gem::Requirement
@@ -180,7 +166,6 @@ files:
180
166
  - lib/beaker-rspec/rake_task.rb
181
167
  - lib/beaker-rspec/spec_helper.rb
182
168
  - lib/beaker-rspec/version.rb
183
- - sample.cfg
184
169
  - spec/acceptance/example_spec.rb
185
170
  - spec/spec_helper.rb
186
171
  homepage: https://github.com/voxpupuli/beaker-rspec
@@ -205,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
190
  - !ruby/object:Gem::Version
206
191
  version: '0'
207
192
  requirements: []
208
- rubygems_version: 3.2.22
193
+ rubygems_version: 3.2.32
209
194
  signing_key:
210
195
  specification_version: 4
211
196
  summary: RSpec bindings for beaker
data/sample.cfg DELETED
@@ -1,28 +0,0 @@
1
- HOSTS:
2
- ubuntu-10-04-4-x64-master:
3
- roles:
4
- - master
5
- - agent
6
- - dashboard
7
- - database
8
- platform: ubuntu-10.04-amd64
9
- hypervisor: vagrant
10
- box: ubuntu-server-10044-x64-vbox4210
11
- box_url: http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-10044-x64-vbox4210.box
12
- ip: 192.168.20.20
13
- distmoduledir: .
14
- pe_dir: http://enterprise.delivery.puppetlabs.net/3.1/ci-ready/
15
- ubuntu-10-04-4-x64-agent:
16
- roles:
17
- - agent
18
- platform: ubuntu-10.04-amd64
19
- hypervisor: vagrant
20
- box: ubuntu-server-10044-x64-vbox4210
21
- box_url: http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-10044-x64-vbox4210.box
22
- ip: 192.168.21.21
23
- distmoduledir: .
24
- pe_dir: http://enterprise.delivery.puppetlabs.net/3.1/ci-ready/
25
- CONFIG:
26
- nfs_server: none
27
- consoleport: 443
28
- type: git