Skip to content

Commit

Permalink
Fix SDK/client unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoh committed Oct 12, 2023
1 parent 6265246 commit edecd5c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class EndpointsCredentialsTest {
let client = $moduleName::Client::from_conf(conf);
let _ = client.default_auth().send().await;
let req = rcvr.expect_request();
let auth_header = req.headers().get("AUTHORIZATION").unwrap().to_str().unwrap();
let auth_header = req.headers().get("AUTHORIZATION").unwrap();
assert!(auth_header.contains("/us-west-2/foobaz/aws4_request"), "{}", auth_header);
""",
"capture_request" to RuntimeType.captureRequest(context.runtimeConfig),
Expand All @@ -116,7 +116,7 @@ class EndpointsCredentialsTest {
let client = $moduleName::Client::from_conf(conf);
let _ = dbg!(client.custom_auth().send().await);
let req = rcvr.expect_request();
let auth_header = req.headers().get("AUTHORIZATION").unwrap().to_str().unwrap();
let auth_header = req.headers().get("AUTHORIZATION").unwrap();
assert!(auth_header.contains("/region-custom-auth/name-custom-auth/aws4_request"), "{}", auth_header);
""",
"capture_request" to RuntimeType.captureRequest(context.runtimeConfig),
Expand Down

0 comments on commit edecd5c

Please sign in to comment.