-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUST-1420 Cache AWS credentials received from endpoints #905
RUST-1420 Cache AWS credentials received from endpoints #905
Conversation
@@ -496,3 +557,45 @@ impl ServerFirst { | |||
} | |||
} | |||
} | |||
|
|||
#[cfg(test)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this module to avoid making the mutex and various fields pub(crate)
just for the sake of testing.
@@ -1066,8 +1066,8 @@ tasks: | |||
- func: "run aws auth test with assume role credentials" | |||
- func: "run aws auth test with aws credentials as environment variables" | |||
- func: "run aws auth test with aws credentials and session token as environment variables" | |||
- func: "run aws auth test with aws EC2 credentials" | |||
- func: "run aws ECS auth test" | |||
# - func: "run aws auth test with aws EC2 credentials" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(see #904)
I'm fixing up the MSRV failure but this is ready for review otherwise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
#[cfg_attr(feature = "async-std-runtime", async_std::test)] | ||
async fn credential_caching() { | ||
// This test should only be run when authenticating using AWS endpoints. | ||
if var("SKIP_CREDENTIAL_CACHING_TESTS").is_ok() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might make the evergreen config a little less noisy if this were an enable rather than a skip. That's just a vague inclination, though, so feel free to disregard if you feel otherwise :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about doing that originally (agreed this is more noisy), but I'd prefer for these tests to be opt-out rather than opt-in so that we don't forget to enable them if we add a new mechanism using an endpoint in the future.
No description provided.