Skip to content

Commit 1dcbc8c

Browse files
committed
Add a test for s3 control dualstack paths
1 parent c09e0ad commit 1dcbc8c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

gems/aws-sdk-s3control/spec/client/dualstack_spec.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,19 @@ module S3Control
8888
"https://12345.s3-control.dualstack.cn-north-1.amazonaws.com.cn"
8989
)
9090
end
91+
92+
it 'works with operations that use a path' do
93+
# from a prior bug
94+
client = Client.new(
95+
stub_responses: true,
96+
region: 'us-east-1',
97+
use_dualstack_endpoint: true
98+
)
99+
resp = client.get_access_point(name: 'accesspoint', account_id: '12345')
100+
expect(resp.context.http_request.endpoint.to_s).to match(
101+
'https://12345.s3-control.dualstack.us-east-1.amazonaws.com/v20180820/accesspoint/accesspoint'
102+
)
103+
end
91104
end
92105
end
93106
end

0 commit comments

Comments
 (0)