bugsnag-maze-runner 9.23.0 → 9.23.2
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/lib/maze/aws/sam.rb +5 -8
- data/lib/maze/option/processor.rb +4 -2
- data/lib/maze/option/validator.rb +5 -0
- data/lib/maze.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ccca36cf5172a88647efadf46ed47811a42b68e4e0c9829626969c35efd4929
|
4
|
+
data.tar.gz: eccfcd4709f8d8026a2449d87603d67606efa03a376703dae1db8191425b614f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57ac674190da25c1d9404a5a0308a455514b96e55272f3fe1a9fee929e5f96d8579740abaedd1426e440151554ff77376bae2bf9b85542c8e634519efbdd6e82
|
7
|
+
data.tar.gz: 992045eb1042ddd27ff7c37ff4eb4950288155b92589dd8197cc83572931307088bd003e681a5a526eed1e84105cb6e4a0cafda00966f816423a380b40ff9994
|
data/lib/maze/aws/sam.rb
CHANGED
@@ -62,6 +62,7 @@ module Maze
|
|
62
62
|
#
|
63
63
|
# @return [Hash]
|
64
64
|
def parse(output)
|
65
|
+
|
65
66
|
unless valid?(output)
|
66
67
|
message = <<-WARNING
|
67
68
|
The lambda function did not successfully complete.
|
@@ -76,14 +77,10 @@ module Maze
|
|
76
77
|
end
|
77
78
|
|
78
79
|
# Attempt to parse response line of the output.
|
79
|
-
#
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
parsed_output = JSON.parse(response_line)
|
84
|
-
rescue JSON::ParserError
|
85
|
-
return {}
|
86
|
-
end
|
80
|
+
# We can assume that the output is the last line present that is JSON parsable
|
81
|
+
response_lines = output.find_all { |line| /^{.*}$/.match(line.strip) }
|
82
|
+
response_line = response_lines.last
|
83
|
+
parsed_output = response_line.nil? ? {} : JSON.parse(response_line)
|
87
84
|
|
88
85
|
# Error output has no "body" of additional JSON so we can stop here
|
89
86
|
return parsed_output unless parsed_output.key?('body')
|
@@ -22,8 +22,10 @@ module Maze
|
|
22
22
|
config.aws_public_ip = options[Maze::Option::AWS_PUBLIC_IP]
|
23
23
|
config.enable_retries = options[Maze::Option::RETRIES]
|
24
24
|
config.enable_bugsnag = options[Maze::Option::BUGSNAG]
|
25
|
-
|
26
|
-
config.
|
25
|
+
aspecto_repeater_api_key = options[Maze::Option::ASPECTO_REPEATER_API_KEY]
|
26
|
+
config.aspecto_repeater_api_key = aspecto_repeater_api_key unless aspecto_repeater_api_key&.empty?
|
27
|
+
bugsnag_repeater_api_key = options[Maze::Option::BUGSNAG_REPEATER_API_KEY]
|
28
|
+
config.bugsnag_repeater_api_key = bugsnag_repeater_api_key unless bugsnag_repeater_api_key&.empty?
|
27
29
|
|
28
30
|
# Document server options
|
29
31
|
config.document_server_root = options[Maze::Option::DS_ROOT]
|
@@ -31,7 +31,12 @@ module Maze
|
|
31
31
|
|
32
32
|
# --repeater-api-key
|
33
33
|
key = options[Option::BUGSNAG_REPEATER_API_KEY]
|
34
|
+
if key&.empty?
|
35
|
+
$logger.warn "A repeater-api-key option was provided with an empty string. This won't be used during this test run"
|
36
|
+
key = nil
|
37
|
+
end
|
34
38
|
key_regex = /^[0-9a-fA-F]{32}$/
|
39
|
+
|
35
40
|
if key && !key_regex.match?(key)
|
36
41
|
errors << "--#{Option::BUGSNAG_REPEATER_API_KEY} must be set to a 32-character hex value"
|
37
42
|
end
|
data/lib/maze.rb
CHANGED
@@ -8,7 +8,7 @@ require_relative 'maze/timers'
|
|
8
8
|
# providing an alternative to the proliferation of global variables or singletons.
|
9
9
|
module Maze
|
10
10
|
|
11
|
-
VERSION = '9.23.
|
11
|
+
VERSION = '9.23.2'
|
12
12
|
|
13
13
|
class << self
|
14
14
|
attr_accessor :check, :driver, :internal_hooks, :mode, :start_time, :dynamic_retry, :public_address,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bugsnag-maze-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.23.
|
4
|
+
version: 9.23.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Kirkland
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-02-
|
11
|
+
date: 2025-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|