beaker-vmpooler 1.3.0 → 1.3.1

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
  SHA1:
3
- metadata.gz: ce23690ed0df119bf2679dac97287f34dfd93285
4
- data.tar.gz: 8d391c93b110eaf4033754af2271f6b8d3fc9bce
3
+ metadata.gz: 398587f9144cbcd031847218638f17cfc25c0d4c
4
+ data.tar.gz: ca7fefcf46535cc59a4432f6e5b5a9d6e8bfbf62
5
5
  SHA512:
6
- metadata.gz: 6e4f347303be420a526e83b6dc150d14e810829b554c849702c66656ea2065bbdc0ea19ab9d52e291869cd1bd85c70a3a99d80ef84b7161d3d4c546bba307833
7
- data.tar.gz: 5d183ebff78bf8af5d9f4066525930f64b1acef609e23ec900e3cf7baeaef819e7de8c6678a631c5ca0e37fa43856059794678580858afa94a06966ca12b48cc
6
+ metadata.gz: e29529909c66b2fa310af7b1326ab675668ec3fe4839f9b2e75c89406629c52aa192450ee7b17aaf8955c555394fe5d124347e26a05ed94927be773842dec281
7
+ data.tar.gz: 26383a7182193e9645284ff464813e930742421813d823ee32857d5ff06564964d0e95cd302500d8fbd9e362e51e20fe3ac5115284b5356f37a04684718963a5
data/README.md CHANGED
@@ -3,8 +3,27 @@
3
3
  Beaker library to use vmpooler hypervisor
4
4
 
5
5
  # How to use this wizardry
6
-
7
- This is a gem that allows you to use hosts with [vmpooler](vmpooler.md) hypervisor with [beaker](https://github.com/puppetlabs/beaker). This gem is already included as [beaker dependency](https://github.com/puppetlabs/beaker/blob/master/beaker.gemspec#L59) for you, so you don't need to do anything special to use this gem's functionality with beaker.
6
+
7
+ This is a gem that allows you to use hosts with [vmpooler](vmpooler.md) hypervisor with [beaker](https://github.com/puppetlabs/beaker).
8
+
9
+ 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.
10
+
11
+ ## With Beaker 3.x
12
+
13
+ This library is included as a dependency of Beaker 3.x versions, so there's nothing to do.
14
+
15
+ ## With Beaker 4.x
16
+
17
+ 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.
18
+
19
+ ~~~ruby
20
+ # Gemfile
21
+ gem 'beaker', '~>4.0'
22
+ gem 'beaker-vmpooler'
23
+ # project.gemspec
24
+ s.add_runtime_dependency 'beaker', '~>4.0'
25
+ s.add_runtime_dependency 'beaker-vmpooler'
26
+ ~~~
8
27
 
9
28
  # Spec tests
10
29
 
@@ -1,3 +1,3 @@
1
1
  module BeakerVmpooler
2
- VERSION = '1.3.0'
2
+ VERSION = '1.3.1'
3
3
  end
@@ -169,7 +169,7 @@ module Beaker
169
169
  @logger.debug("Retrying provision for vmpooler host after waiting #{wait} second(s)")
170
170
  sleep wait
171
171
  waited += wait
172
- last_wait, wait = wait, last_wait + wait
172
+ last_wait, wait = wait, [last_wait + wait, 15].min + rand(5)
173
173
  retry
174
174
  end
175
175
  report_and_raise(@logger, e, 'Vmpooler.provision')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-vmpooler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rishi Javia, Kevin Imber, Tony Vu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-16 00:00:00.000000000 Z
11
+ date: 2018-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec