bugsnag-maze-runner 9.32.3 → 9.32.4
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_public_ip.rb +2 -1
- data/lib/maze/hooks/appium_hooks.rb +0 -7
- data/lib/maze/plugins/datadog_metrics_plugin.rb +2 -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: 1e914d52a832ce9c1596600d911196bc7c1c384ce46d27cdb2619549db7330dc
|
4
|
+
data.tar.gz: b2bd2bbb29542442035fce4bc11dc21325ac2cbcfecc3a18e5d59a3df13df6a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f2643e9018637de0670df405b64da137caad4c7e7a22acdf855da385ab9157d3c2b77336ece49e22fa2b04fc86af85f294e821b8b9f66e6cda39c84bc199e2a
|
7
|
+
data.tar.gz: b61855618b15bcc14ee9c0ea154747a11a10f42da1550171eb99b623e610b1e05e862404acf4da4cb802d06570c17c6a8e96db6fc9c9aaeb0e3c7b9b97196654
|
data/lib/maze/aws_public_ip.rb
CHANGED
@@ -34,7 +34,8 @@ module Maze
|
|
34
34
|
def determine_public_ip
|
35
35
|
# 169.254.169.254 is the address of the AWS instance metadata service
|
36
36
|
# See https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
|
37
|
-
`curl --silent -
|
37
|
+
token = `curl --silent -H "X-aws-ec2-metadata-token-ttl-seconds: 120" -XPUT http://169.254.169.254/latest/api/token`
|
38
|
+
`curl -H "X-aws-ec2-metadata-token: #{token}" --silent -XGET http://169.254.169.254/latest/meta-data/public-ipv4`
|
38
39
|
end
|
39
40
|
|
40
41
|
# Determines the external port of the running Docker container that's associated with the port given
|
@@ -7,7 +7,6 @@ module Maze
|
|
7
7
|
@client
|
8
8
|
|
9
9
|
def before_all
|
10
|
-
Maze::Plugins::DatadogMetricsPlugin.send_increment('appium.test_started')
|
11
10
|
@client = Maze::Client::Appium.start
|
12
11
|
rescue => error
|
13
12
|
# Notify and re-raise for Cucumber to handle
|
@@ -55,12 +54,6 @@ module Maze
|
|
55
54
|
end
|
56
55
|
|
57
56
|
def after_all
|
58
|
-
if $success
|
59
|
-
Maze::Plugins::DatadogMetricsPlugin.send_increment('appium.test_succeeded')
|
60
|
-
else
|
61
|
-
Maze::Plugins::DatadogMetricsPlugin.send_increment('appium.test_failed')
|
62
|
-
end
|
63
|
-
|
64
57
|
if @client
|
65
58
|
@client.log_run_outro
|
66
59
|
$logger.info 'Stopping the Appium session'
|
@@ -63,7 +63,8 @@ module Maze
|
|
63
63
|
#
|
64
64
|
# @returns [String] The local ipv4 address the Datadog agent is running on
|
65
65
|
def aws_instance_ip
|
66
|
-
`curl --silent -
|
66
|
+
token = `curl --silent -H "X-aws-ec2-metadata-token-ttl-seconds: 120" -XPUT http://169.254.169.254/latest/api/token`
|
67
|
+
`curl -H "X-aws-ec2-metadata-token: #{token}" --silent -XGET http://169.254.169.254/latest/meta-data/local-ipv4`
|
67
68
|
end
|
68
69
|
end
|
69
70
|
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.32.
|
11
|
+
VERSION = '9.32.4'
|
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.32.
|
4
|
+
version: 9.32.4
|
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-
|
11
|
+
date: 2025-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|