beaker 4.13.1 → 4.14.0
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 +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/beaker/hypervisor.rb +27 -20
- data/lib/beaker/version.rb +1 -1
- data/spec/beaker/hypervisor/hypervisor_spec.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b8de84f1f442c12b30e2d3b057ae8e1b6a99f0d
|
4
|
+
data.tar.gz: 4d620e4cf9af42ead8ac413b39e58e316fd45d0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0860738841d0979f43057456a93c46a521e1274dcd3554e9e22d5a4f3b6442d6c622ec77430dff72472c51b1ca337dd55380261961a4f11249f82015971deba1
|
7
|
+
data.tar.gz: 4c03026cd6fe87287e390ec3356fd6f0e19507d093940c1e54dbed3fc983ebe50b31620736ee59736a1af0c2c43420968f98b25800b4fefe1e31f94ae55ac3bb
|
data/CHANGELOG.md
CHANGED
@@ -11,7 +11,13 @@ Tracking in this Changelog began for this project in version 3.25.0.
|
|
11
11
|
If you're looking for changes from before this, refer to the project's
|
12
12
|
git logs & PR history.
|
13
13
|
|
14
|
-
# [Unreleased](https://github.com/puppetlabs/beaker/compare/4.
|
14
|
+
# [Unreleased](https://github.com/puppetlabs/beaker/compare/4.14.0...master)
|
15
|
+
|
16
|
+
# [4.14.0](https://github.com/puppetlabs/beaker/compare/4.13.1...4.14.0) - 2019-11-12
|
17
|
+
|
18
|
+
### Added
|
19
|
+
|
20
|
+
- Pre-built steps output stacktraces when aborted (QENG-7466)
|
15
21
|
|
16
22
|
# [4.13.1](https://github.com/puppetlabs/beaker/compare/4.13.0...4.13.1) - 2019-10-07
|
17
23
|
|
data/lib/beaker/hypervisor.rb
CHANGED
@@ -82,27 +82,34 @@ module Beaker
|
|
82
82
|
#Default configuration steps to be run for a given hypervisor. Any additional configuration to be done
|
83
83
|
#to the provided SUT for test execution to be successful.
|
84
84
|
def configure(opts = {})
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
timesync
|
85
|
+
begin
|
86
|
+
return unless @options[:configure]
|
87
|
+
run_in_parallel = run_in_parallel? opts, @options, 'configure'
|
88
|
+
block_on @hosts, { :run_in_parallel => run_in_parallel} do |host|
|
89
|
+
if host[:timesync]
|
90
|
+
timesync(host, @options)
|
91
|
+
end
|
90
92
|
end
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
93
|
+
if @options[:root_keys]
|
94
|
+
sync_root_keys(@hosts, @options)
|
95
|
+
end
|
96
|
+
if @options[:add_el_extras]
|
97
|
+
add_el_extras(@hosts, @options)
|
98
|
+
end
|
99
|
+
if @options[:disable_iptables]
|
100
|
+
disable_iptables @hosts, @options
|
101
|
+
end
|
102
|
+
if @options[:set_env]
|
103
|
+
set_env(@hosts, @options)
|
104
|
+
end
|
105
|
+
if @options[:disable_updates]
|
106
|
+
disable_updates(@hosts, @options)
|
107
|
+
end
|
108
|
+
rescue SignalException => ex
|
109
|
+
if ex.signo == 15 #SIGTERM
|
110
|
+
report_and_raise(@logger, ex, "configure")
|
111
|
+
end
|
112
|
+
raise
|
106
113
|
end
|
107
114
|
end
|
108
115
|
|
data/lib/beaker/version.rb
CHANGED
@@ -50,6 +50,16 @@ module Beaker
|
|
50
50
|
expect( hypervisor ).to receive( :timesync ).once
|
51
51
|
hypervisor.configure
|
52
52
|
end
|
53
|
+
|
54
|
+
it 'catches signal exceptions and returns stack trace' do
|
55
|
+
logger = double()
|
56
|
+
hosts[0].options[:timesync] = true
|
57
|
+
allow( logger ).to receive( :error )
|
58
|
+
allow( logger ).to receive( :pretty_backtrace ).and_return("multiline\nstring")
|
59
|
+
hypervisor.instance_variable_set(:@logger, logger)
|
60
|
+
allow(Beaker::Command).to receive(:new).and_raise(SignalException.new('SIGTERM'))
|
61
|
+
expect{ hypervisor.configure }.to raise_error(SignalException)
|
62
|
+
end
|
53
63
|
end
|
54
64
|
|
55
65
|
context 'if :timesync option set true but false on host' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|