beaker-vagrant 0.6.2 → 0.6.3

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
- SHA1:
3
- metadata.gz: be5bca0523dc11ccbf64ec70bb412249c0f066ac
4
- data.tar.gz: 42598743132e53abaaf332f544314af3e2679246
2
+ SHA256:
3
+ metadata.gz: 1a1524342ffb1c304a8a133be595b5c67917259594d1388faa3a72bf83a036d6
4
+ data.tar.gz: 28c291e666ba4f4e9ffdf82f2528f715a1a500831435751c81e77975b687de83
5
5
  SHA512:
6
- metadata.gz: f4b5d2b30e983d9c6e76c550ca0fc83c34416589f2aa35cd0096897d39d54560d0a4edb7fce58b878e56e1ab5c8cf043198a4819b40b77a13aed3920bdf80188
7
- data.tar.gz: 731c1ba2c3ded6af01c86397e0e850f0832857b53071dd194f963f29c18870ae02805438752677f3fbe805a58ff0d7eb99b13bf1d45705495f2c37eccfd42893
6
+ metadata.gz: a0c98e170395954cd257c1eafe4a42a01ad4fd9ca42ab3431afea0f371685e2908d7f33d46c7c4a527d2b7ae22593b15238c6ad4c81d12e49bee36cc3116249d
7
+ data.tar.gz: 9c6711c31ceb636ab9dfc03d9a827bcca69d052e0c2e2ea6e978efa86a1256c129c9e585bf07da7a66e29bb54cc204e0e78baa1fbca259e06e93e3c2bc23ae58
data/Gemfile CHANGED
@@ -18,7 +18,7 @@ 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'] || '~> 3.0')
21
+ gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 4.0')
22
22
  end
23
23
 
24
24
 
data/README.md CHANGED
@@ -40,3 +40,12 @@ bundle exec rake test:acceptance
40
40
  # Contributing
41
41
 
42
42
  Please refer to puppetlabs/beaker's [contributing](https://github.com/puppetlabs/beaker/blob/master/CONTRIBUTING.md) guide.
43
+
44
+ # Release
45
+
46
+ To release new versions, we use a
47
+ [Jenkins job](https://jenkins-sre.delivery.puppetlabs.net/view/all/job/qe_beaker-vagrant_init-multijob_master/)
48
+ (access to internal infrastructure will be required to view job).
49
+
50
+ To release a new version (from the master branch), you'll need to just provide
51
+ a new beaker-pe version number to the job, and you're off to the races.
@@ -32,7 +32,6 @@ Gem::Specification.new do |s|
32
32
 
33
33
  # Documentation dependencies
34
34
  s.add_development_dependency 'yard'
35
- s.add_development_dependency 'markdown'
36
35
  s.add_development_dependency 'thin'
37
36
 
38
37
  # Run time dependencies
@@ -1,3 +1,3 @@
1
1
  module BeakerVagrant
2
- VERSION = '0.6.2'
2
+ VERSION = '0.6.3'
3
3
  end
@@ -291,18 +291,25 @@ module Beaker
291
291
 
292
292
  def vagrant_cmd(args)
293
293
  Dir.chdir(@vagrant_path) do
294
- exit_status = 1
295
- Open3.popen3(@vagrant_env, "vagrant #{args}") {|stdin, stdout, stderr, wait_thr|
296
- while line = stdout.gets
297
- @logger.info(line)
298
- end
299
- if not wait_thr.value.success?
300
- raise "Failed to exec 'vagrant #{args}'. Error was #{stderr.read}"
294
+ begin
295
+ retries ||=0
296
+ Open3.popen3(@vagrant_env, "vagrant #{args}") {|stdin, stdout, stderr, wait_thr|
297
+ while line = stdout.gets
298
+ @logger.info(line)
299
+ end
300
+
301
+ unless wait_thr.value.success?
302
+ raise "Failed to exec 'vagrant #{args}'. Error was #{stderr.read}"
303
+ end
304
+ }
305
+ rescue => e
306
+ if e =~ /WinRM/m
307
+ sleep(10)
308
+
309
+ retry if (retries += 1) < 6
301
310
  end
302
- exit_status = wait_thr.value
303
- }
304
- if exit_status != 0
305
- raise "Failed to execute vagrant_cmd ( #{args} ). Error was #{stderr.read}"
311
+
312
+ raise e
306
313
  end
307
314
  end
308
315
  end
@@ -23,6 +23,7 @@ class Beaker::VagrantLibvirt < Beaker::Vagrant
23
23
  " v.vm.provider :libvirt do |node|\n" +
24
24
  " node.cpus = #{cpus(host, options)}\n" +
25
25
  " node.memory = #{memsize(host, options)}\n" +
26
+ " node.qemu_use_session = false\n" +
26
27
  build_options_str(options) +
27
28
  " end\n"
28
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-vagrant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
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: 2019-02-11 00:00:00.000000000 Z
11
+ date: 2019-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -108,20 +108,6 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: markdown
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: thin
127
113
  requirement: !ruby/object:Gem::Requirement
@@ -209,8 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
195
  - !ruby/object:Gem::Version
210
196
  version: '0'
211
197
  requirements: []
212
- rubyforge_project:
213
- rubygems_version: 2.5.1
198
+ rubygems_version: 3.0.6
214
199
  signing_key:
215
200
  specification_version: 4
216
201
  summary: Beaker DSL Extension Helpers!