File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ Gem::Specification.new do |gem|
1717 gem . require_paths = [ 'lib' ]
1818
1919 gem . add_dependency "fluentd" , [ ">= 0.14.22" , "< 2" ]
20- gem . add_dependency "aws-sdk-s3" , "~> 1.0 "
21- gem . add_dependency "aws-sdk-sqs" , "~> 1.0 "
20+ gem . add_dependency "aws-sdk-s3" , "~> 1.60 "
21+ gem . add_dependency "aws-sdk-sqs" , "~> 1.23 "
2222 gem . add_development_dependency "rake" , ">= 0.9.2"
2323 gem . add_development_dependency "test-unit" , ">= 3.0.8"
2424 gem . add_development_dependency "test-unit-rr" , ">= 1.0.3"
Original file line number Diff line number Diff line change 1111require 'test/unit/rr'
1212require 'zlib'
1313require 'fileutils'
14+ require 'ostruct'
1415
1516include Fluent ::Test ::Helpers
1617
@@ -152,6 +153,7 @@ def test_sqs_endpoint_with_invalid_endpoint(endpoint)
152153
153154 def setup_mocks
154155 @s3_client = stub ( Aws ::S3 ::Client . new ( stub_responses : true ) )
156+ stub ( @s3_client ) . config { OpenStruct . new ( { region : "us-east-1" } ) }
155157 mock ( Aws ::S3 ::Client ) . new ( anything ) . at_least ( 0 ) { @s3_client }
156158 @s3_resource = mock ( Aws ::S3 ::Resource . new ( client : @s3_client ) )
157159 mock ( Aws ::S3 ::Resource ) . new ( client : @s3_client ) { @s3_resource }
Original file line number Diff line number Diff line change 1010require 'fileutils'
1111require 'timecop'
1212require 'uuidtools'
13+ require 'ostruct'
1314
1415include Fluent ::Test ::Helpers
1516
@@ -427,6 +428,7 @@ def initialize(data)
427428
428429 def setup_mocks ( exists_return = false )
429430 @s3_client = stub ( Aws ::S3 ::Client . new ( stub_responses : true ) )
431+ stub ( @s3_client ) . config { OpenStruct . new ( { region : "us-east-1" } ) }
430432 # aws-sdk-s3 calls Client#put_object inside Object#put
431433 mock ( @s3_client ) . put_object ( anything ) . at_least ( 0 ) { MockResponse . new ( { } ) }
432434 mock ( Aws ::S3 ::Client ) . new ( anything ) . at_least ( 0 ) { @s3_client }
@@ -464,6 +466,7 @@ def setup_s3_object_mocks(params = {})
464466
465467 def setup_mocks_hardened_policy ( )
466468 @s3_client = stub ( Aws ::S3 ::Client . new ( :stub_responses => true ) )
469+ stub ( @s3_client ) . config { OpenStruct . new ( { region : "us-east-1" } ) }
467470 mock ( @s3_client ) . put_object ( anything ) . at_least ( 0 ) { MockResponse . new ( { } ) }
468471 mock ( Aws ::S3 ::Client ) . new ( anything ) . at_least ( 0 ) { @s3_client }
469472 @s3_resource = mock ( Aws ::S3 ::Resource . new ( :client => @s3_client ) )
You can’t perform that action at this time.
0 commit comments