Skip to content

Commit 2b24f9d

Browse files
Merge branch 'RFC30/test2' of https://github.com/thomas-k-cameron/smithy-rs into RFC30/test2
2 parents 5a36064 + 1e4ec95 commit 2b24f9d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

aws/sdk/integration-tests/s3/tests/endpoints.rs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,29 @@ async fn dual_stack() {
6262
);
6363
}
6464

65+
#[cfg(aws_sdk_orchestrator_mode)]
66+
#[tokio::test]
67+
async fn multi_region_access_points() {
68+
let (_captured_request, client) = test_client(|b| b);
69+
let response = client
70+
.get_object()
71+
.bucket("arn:aws:s3::123456789012:accesspoint/mfzwi23gnjvgw.mrap")
72+
.key("blah")
73+
.send()
74+
.await;
75+
let error = response.expect_err("should fail—sigv4a is not supported");
76+
assert!(
77+
dbg!(format!(
78+
"{}",
79+
aws_smithy_types::error::display::DisplayErrorContext(&error)
80+
))
81+
.contains("selected auth scheme / endpoint config mismatch"),
82+
"message should contain the correct error, found: {:?}",
83+
error
84+
);
85+
}
86+
87+
#[cfg(not(aws_sdk_orchestrator_mode))]
6588
#[tokio::test]
6689
async fn multi_region_access_points() {
6790
let (_captured_request, client) = test_client(|b| b);

0 commit comments

Comments
 (0)