diff --git a/integration_tests/sentry_test.rb b/integration_tests/sentry_test.rb index 8afbf4f9..329879f0 100644 --- a/integration_tests/sentry_test.rb +++ b/integration_tests/sentry_test.rb @@ -71,7 +71,7 @@ if RUBY_VERSION >= "2.4.0" crumb = Sentry.get_current_scope.breadcrumbs.peek assert crumb.category == "httpx" - assert crumb.data == { status: 200, method: "POST", url: uri, body: "foo&bar" } + assert crumb.data == { status: 200, method: "POST", url: uri, body: "foo=bar" } ensure Sentry.configuration.send_default_pii = before_pii end @@ -100,7 +100,7 @@ if RUBY_VERSION >= "2.4.0" verify_spans(transaction, response, verb: "GET") crumb = Sentry.get_current_scope.breadcrumbs.peek assert crumb.category == "httpx" - assert crumb.data == { error: "Can't resolve unexisting", method: "GET", url: uri } + assert crumb.data == { error: "Can't resolve unexisting", method: "GET", url: uri.to_s } end private diff --git a/test/support/requests/plugins/aws_authentication.rb b/test/support/requests/plugins/aws_authentication.rb index edc41054..e7fc323f 100644 --- a/test/support/requests/plugins/aws_authentication.rb +++ b/test/support/requests/plugins/aws_authentication.rb @@ -7,12 +7,6 @@ module Requests module AWSAuthentication AWS_URI = ENV.fetch("AMZ_HOST", "aws:4566") - def test_plugin_aws_authentication_mock_config - config = HTTPX::Plugins::AwsSdkAuthentication::Configuration.new("default") - assert config.respond_to?(:balls) - assert config.balls.nil? - end - def test_plugin_aws_authentication_put_object amz_uri = origin(AWS_URI) @@ -47,6 +41,11 @@ module Requests }) .put("#{amz_uri}/test/testimage", body: "bucketz") verify_status(response, 200) + + # testing here to make sure the plugin is loaded + config = HTTPX::Plugins::AwsSdkAuthentication::Configuration.new("default") + assert config.respond_to?(:balls) + assert config.balls.nil? end private