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 +5 -5
- data/Gemfile +1 -1
- data/README.md +9 -0
- data/beaker-vagrant.gemspec +0 -1
- data/lib/beaker-vagrant/version.rb +1 -1
- data/lib/beaker/hypervisor/vagrant.rb +18 -11
- data/lib/beaker/hypervisor/vagrant_libvirt.rb +1 -0
- metadata +3 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1a1524342ffb1c304a8a133be595b5c67917259594d1388faa3a72bf83a036d6
|
4
|
+
data.tar.gz: 28c291e666ba4f4e9ffdf82f2528f715a1a500831435751c81e77975b687de83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'] || '~>
|
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.
|
data/beaker-vagrant.gemspec
CHANGED
@@ -291,18 +291,25 @@ module Beaker
|
|
291
291
|
|
292
292
|
def vagrant_cmd(args)
|
293
293
|
Dir.chdir(@vagrant_path) do
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
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
|
-
|
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.
|
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-
|
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
|
-
|
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!
|