bugsnag-maze-runner 9.10.0 → 9.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/features/steps/trace_steps.rb +51 -2
- data/lib/maze/client/appium/bs_devices.rb +1 -1
- 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: 87cd5acfe3a599df35029ab146ae8b8360deac8a6f4dbf73b7bd2af7fe6f5e07
|
4
|
+
data.tar.gz: 6fe41064f80a894296c22c73e78dda7f2bf13189bc34e85ab7a159a133a5122f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f92d1919d537a134f53ff58235bc13a8c1f1875ebb54611b78437641d7f92ea709d76c105a28037b0d966a96c518db78cf2f250470f0ba51de59a68a86498d2b
|
7
|
+
data.tar.gz: 6850bf749dc212ef20156235a2a6a2e26a468067c979bf6c58338ad6bc24b8c146b444abc3073bb084255ff14cf68e002e54e2e42bd8ed37558b63d330f8bc5a
|
@@ -96,6 +96,10 @@ Then('the trace payload field {string} boolean attribute {string} is false') do
|
|
96
96
|
assert_attribute field, key, { 'boolValue' => false }
|
97
97
|
end
|
98
98
|
|
99
|
+
Then('the trace payload field {string} double attribute {string} equals {float}') do |field, attribute, expected|
|
100
|
+
check_attribute_equal field, attribute, 'doubleValue', expected
|
101
|
+
end
|
102
|
+
|
99
103
|
# @!group Span steps
|
100
104
|
Then('a span {word} equals {string}') do |attribute, expected|
|
101
105
|
spans = spans_from_request_list(Maze::Server.list_for('traces'))
|
@@ -259,8 +263,10 @@ def attribute_value_matches?(attribute_value, expected_type, expected_value)
|
|
259
263
|
expected_value.to_f.eql?(attribute_value[expected_type])
|
260
264
|
when 'boolValue'
|
261
265
|
expected_value.eql?('true').eql?(attribute_value[expected_type])
|
262
|
-
when 'arrayValue'
|
263
|
-
|
266
|
+
when 'arrayValue'
|
267
|
+
expected_value == attribute_value[expected_type]['values']
|
268
|
+
when 'kvlistValue'
|
269
|
+
$logger.error('Span attribute validation does not currently support the "kvlistValue" type')
|
264
270
|
false
|
265
271
|
else
|
266
272
|
$logger.error("An invalid attribute type was expected: '#{expected_type}'")
|
@@ -323,3 +329,46 @@ def assert_attribute(field, key, expected)
|
|
323
329
|
attributes = Maze::Helper.read_key_path(list.current[:body], "#{field}.attributes")
|
324
330
|
Maze.check.equal({ 'key' => key, 'value' => expected }, attributes.find { |a| a['key'] == key })
|
325
331
|
end
|
332
|
+
|
333
|
+
def check_array_attribute_equal(field, attribute, expected_values)
|
334
|
+
actual_values = get_attribute_value(field, attribute, 'arrayValue')['values']
|
335
|
+
|
336
|
+
# Convert string representations of integers to integers for comparison
|
337
|
+
actual_values.map! do |value|
|
338
|
+
if value.key?('intValue')
|
339
|
+
value['intValue'].to_i
|
340
|
+
else
|
341
|
+
value
|
342
|
+
end
|
343
|
+
end
|
344
|
+
|
345
|
+
expected_values.map! do |value|
|
346
|
+
if value.key?('intValue')
|
347
|
+
value['intValue'].to_i
|
348
|
+
else
|
349
|
+
value
|
350
|
+
end
|
351
|
+
end
|
352
|
+
|
353
|
+
Maze.check.equal(expected_values, actual_values)
|
354
|
+
end
|
355
|
+
|
356
|
+
Then('the trace payload field {string} string array attribute {string} equals the array:') do |field, attribute, expected_values|
|
357
|
+
expected_values_list = expected_values.raw.flatten.map { |v| { 'stringValue' => v } }
|
358
|
+
check_array_attribute_equal field, attribute, expected_values_list
|
359
|
+
end
|
360
|
+
|
361
|
+
Then('the trace payload field {string} integer array attribute {string} equals the array:') do |field, attribute, expected_values|
|
362
|
+
expected_values_list = expected_values.raw.flatten.map { |v| { 'intValue' => v.to_i } }
|
363
|
+
check_array_attribute_equal(field, attribute, expected_values_list)
|
364
|
+
end
|
365
|
+
|
366
|
+
Then('the trace payload field {string} double array attribute {string} equals the array:') do |field, attribute, expected_values|
|
367
|
+
expected_values_list = expected_values.raw.flatten.map { |v| { 'doubleValue' => v.to_f } }
|
368
|
+
check_array_attribute_equal field, attribute, expected_values_list
|
369
|
+
end
|
370
|
+
|
371
|
+
Then('the trace payload field {string} boolean array attribute {string} equals the array:') do |field, attribute, expected_values|
|
372
|
+
expected_values_list = expected_values.raw.flatten.map { |v| { 'boolValue' => v == 'true' } }
|
373
|
+
check_array_attribute_equal field, attribute, expected_values_list
|
374
|
+
end
|
@@ -83,7 +83,7 @@ module Maze
|
|
83
83
|
# iOS devices
|
84
84
|
'IOS_17' => make_ios_hash('iPhone 15', '17'),
|
85
85
|
'IOS_16' => make_ios_hash('iPhone 14', '16'),
|
86
|
-
'IOS_15' => make_ios_hash('iPhone
|
86
|
+
'IOS_15' => make_ios_hash('iPhone 13', '15'),
|
87
87
|
'IOS_14' => make_ios_hash('iPhone 11', '14'),
|
88
88
|
'IOS_13' => make_ios_hash('iPhone 11', '13'),
|
89
89
|
'IOS_12' => make_ios_hash('iPhone 8', '12'),
|
data/lib/maze.rb
CHANGED
@@ -7,7 +7,7 @@ require_relative 'maze/timers'
|
|
7
7
|
# Glues the various parts of MazeRunner together that need to be accessed globally,
|
8
8
|
# providing an alternative to the proliferation of global variables or singletons.
|
9
9
|
module Maze
|
10
|
-
VERSION = '9.
|
10
|
+
VERSION = '9.11.1'
|
11
11
|
|
12
12
|
class << self
|
13
13
|
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.
|
4
|
+
version: 9.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Kirkland
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|