Skip to content

Commit

Permalink
Fix more failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Jun 18, 2024
1 parent c997fde commit 5263338
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ class AccountId < Seahorse::Client::Plugin

class Handler < Seahorse::Client::Handler
def call(context)
context.params[:account_id] = nil if context.params[:account_id].empty?
context.params[:account_id] ||= context.config.account_id
if context.params[:account_id].empty?
context.params[:account_id] = '-'
end
@handler.call(context)
end
end
Expand Down
2 changes: 1 addition & 1 deletion gems/aws-sdk-s3/spec/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ module S3
it 'uses path style addressing for DNS incompatible bucket names' do
client = Client.new(stub_responses: true)
resp = client.head_bucket(bucket: 'Bucket123')
expect(resp.context.http_request.endpoint.path).to eq('/Bucket123/')
expect(resp.context.http_request.endpoint.path).to eq('/Bucket123')
end
end

Expand Down

0 comments on commit 5263338

Please sign in to comment.