diff --git a/test/plugin/test_out_http.rb b/test/plugin/test_out_http.rb index 265568e876..5d3b89089c 100644 --- a/test/plugin/test_out_http.rb +++ b/test/plugin/test_out_http.rb @@ -442,8 +442,8 @@ def test_aws_sigv4_sts_role_arn assert_equal test_events, result.data assert_not_empty result.headers assert_not_nil result.headers['authorization'] - assert_match /AWS4-HMAC-SHA256 Credential=[a-zA-Z0-9]*\/\d+\/my-region-1\/someservice\/aws4_request/, result.headers['authorization'] - assert_match /SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-security-token/, result.headers['authorization'] + assert_match(/AWS4-HMAC-SHA256 Credential=[a-zA-Z0-9]*\/\d+\/my-region-1\/someservice\/aws4_request/, result.headers['authorization']) + assert_match(/SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-security-token/, result.headers['authorization']) assert_equal @@fake_aws_credentials.session_token, result.headers['x-amz-security-token'] assert_not_nil result.headers['x-amz-content-sha256'] assert_not_empty result.headers['x-amz-content-sha256'] @@ -479,8 +479,8 @@ def test_aws_sigv4_no_role assert_equal test_events, result.data assert_not_empty result.headers assert_not_nil result.headers['authorization'] - assert_match /AWS4-HMAC-SHA256 Credential=[a-zA-Z0-9]*\/\d+\/my-region-1\/someservice\/aws4_request/, result.headers['authorization'] - assert_match /SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-security-token/, result.headers['authorization'] + assert_match(/AWS4-HMAC-SHA256 Credential=[a-zA-Z0-9]*\/\d+\/my-region-1\/someservice\/aws4_request/, result.headers['authorization']) + assert_match(/SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-security-token/, result.headers['authorization']) assert_equal @@fake_aws_credentials.session_token, result.headers['x-amz-security-token'] assert_not_nil result.headers['x-amz-content-sha256'] assert_not_empty result.headers['x-amz-content-sha256']