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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e16267d62c8c76dd35b4cdeaab753c21298fcc4
4
- data.tar.gz: 18bd39a4c2bac2a0462be399d963f5fa703e4f27
3
+ metadata.gz: 8b8de84f1f442c12b30e2d3b057ae8e1b6a99f0d
4
+ data.tar.gz: 4d620e4cf9af42ead8ac413b39e58e316fd45d0d
5
5
  SHA512:
6
- metadata.gz: 9ed91ca3ffa14a14c597598bed82ff6e7273b0d8d6f5a2f3d1064f1891f0f451f80a6d0b75db41e7dee05bbf421a5008ca543752e421347510cf58eca0c26188
7
- data.tar.gz: 717832ffa472ea63b6dc1740a40d8745a869cd35ceb129c393e2976117cd8e7024e42db7e5139f3da7db6fad2eb0368906ba2aa8e10a2fba5595154ba4e94793
6
+ metadata.gz: 0860738841d0979f43057456a93c46a521e1274dcd3554e9e22d5a4f3b6442d6c622ec77430dff72472c51b1ca337dd55380261961a4f11249f82015971deba1
7
+ data.tar.gz: 4c03026cd6fe87287e390ec3356fd6f0e19507d093940c1e54dbed3fc983ebe50b31620736ee59736a1af0c2c43420968f98b25800b4fefe1e31f94ae55ac3bb
@@ -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.13.1...master)
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
 
@@ -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
- return unless @options[:configure]
86
- run_in_parallel = run_in_parallel? opts, @options, 'configure'
87
- block_on @hosts, { :run_in_parallel => run_in_parallel} do |host|
88
- if host[:timesync]
89
- timesync(host, @options)
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
- end
92
- if @options[:root_keys]
93
- sync_root_keys(@hosts, @options)
94
- end
95
- if @options[:add_el_extras]
96
- add_el_extras(@hosts, @options)
97
- end
98
- if @options[:disable_iptables]
99
- disable_iptables @hosts, @options
100
- end
101
- if @options[:set_env]
102
- set_env(@hosts, @options)
103
- end
104
- if @options[:disable_updates]
105
- disable_updates(@hosts, @options)
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
 
@@ -1,5 +1,5 @@
1
1
  module Beaker
2
2
  module Version
3
- STRING = '4.13.1'
3
+ STRING = '4.14.0'
4
4
  end
5
5
  end
@@ -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.13.1
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-10-07 00:00:00.000000000 Z
11
+ date: 2019-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec