test/test_out_s3.rb in fluent-plugin-s3-1.5.0 vs test/test_out_s3.rb in fluent-plugin-s3-1.5.1

- old
+ new

@@ -537,11 +537,11 @@ end def test_assume_role_credentials_with_region expected_credentials = Aws::Credentials.new("test_key", "test_secret") sts_client = Aws::STS::Client.new(region: 'ap-northeast-1') - mock(Aws::STS::Client).new(region: 'ap-northeast-1', credentials: nil){ sts_client } + mock(Aws::STS::Client).new(region: 'ap-northeast-1'){ sts_client } mock(Aws::AssumeRoleCredentials).new(role_arn: "test_arn", role_session_name: "test_session", client: sts_client){ expected_credentials } @@ -589,11 +589,11 @@ def test_assume_role_credentials_with_region_and_sts_http_proxy expected_credentials = Aws::Credentials.new("test_key", "test_secret") expected_region = "ap-northeast-1" expected_sts_http_proxy = 'http://example.com' sts_client = Aws::STS::Client.new(region: expected_region, http_proxy: expected_sts_http_proxy) - mock(Aws::STS::Client).new(region:expected_region, http_proxy: expected_sts_http_proxy, credentials: nil){ sts_client } + mock(Aws::STS::Client).new(region:expected_region, http_proxy: expected_sts_http_proxy){ sts_client } mock(Aws::AssumeRoleCredentials).new(role_arn: "test_arn", role_session_name: "test_session", client: sts_client, sts_http_proxy: expected_sts_http_proxy){ expected_credentials @@ -616,11 +616,11 @@ def test_assume_role_credentials_with_sts_http_proxy expected_credentials = Aws::Credentials.new("test_key", "test_secret") expected_sts_http_proxy = 'http://example.com' sts_client = Aws::STS::Client.new(region: "us-east-1", http_proxy: expected_sts_http_proxy) - mock(Aws::STS::Client).new(region: "us-east-1", http_proxy: expected_sts_http_proxy, credentials: nil){ sts_client } + mock(Aws::STS::Client).new(region: "us-east-1", http_proxy: expected_sts_http_proxy){ sts_client } mock(Aws::AssumeRoleCredentials).new(role_arn: "test_arn", role_session_name: "test_session", client: sts_client, sts_http_proxy: expected_sts_http_proxy){ expected_credentials @@ -642,11 +642,11 @@ def test_assume_role_credentials_with_sts_endpoint_url expected_credentials = Aws::Credentials.new("test_key", "test_secret") expected_sts_endpoint_url = 'http://example.com' sts_client = Aws::STS::Client.new(region: "us-east-1", endpoint: expected_sts_endpoint_url) - mock(Aws::STS::Client).new(region: "us-east-1", endpoint: expected_sts_endpoint_url, credentials: nil){ sts_client } + mock(Aws::STS::Client).new(region: "us-east-1", endpoint: expected_sts_endpoint_url){ sts_client } mock(Aws::AssumeRoleCredentials).new(role_arn: "test_arn", role_session_name: "test_session", client: sts_client, sts_endpoint_url: expected_sts_endpoint_url){ expected_credentials @@ -668,10 +668,10 @@ def test_assume_role_credentials_with_sts_region expected_credentials = Aws::Credentials.new("test_key", "test_secret") expected_sts_region = 'ap-south-1' sts_client = Aws::STS::Client.new(region: expected_sts_region) - mock(Aws::STS::Client).new(region: expected_sts_region, credentials: nil){ sts_client } + mock(Aws::STS::Client).new(region: expected_sts_region){ sts_client } mock(Aws::AssumeRoleCredentials).new(role_arn: "test_arn", role_session_name: "test_session", client: sts_client){ expected_credentials }