-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[C++] SDKs to track feature Ids for Credentials (SSO/LegacySSO Provider) #3536
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
base: main
Are you sure you want to change the base?
Conversation
# Conflicts: # src/aws-cpp-sdk-core/include/aws/core/client/UserAgent.h # src/aws-cpp-sdk-core/source/auth/AWSCredentialsProvider.cpp # src/aws-cpp-sdk-core/source/client/UserAgent.cpp # tests/aws-cpp-sdk-core-tests/aws/auth/CredentialTrackingTest.cpp # Conflicts: # tests/aws-cpp-sdk-core-tests/aws/auth/CredentialTrackingTest.cpp
Aws::MakeShared<Aws::Client::AWSAuthV4Signer>(TEST_LOG_TAG, provider, "service", config.region), | ||
Aws::MakeShared<MockAWSErrorMarshaller>(TEST_LOG_TAG)) {} | ||
|
||
HttpResponseOutcome MakeRequest(const Aws::AmazonWebServiceRequest& request) { |
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.
this is sort of weird, we shouldnt be subclassing AwsClient
and then creating a function as a entry point, we should make a real aws client and be testing that object. make a mock aws client like we do in the RDS unit test. but not RDS specific and invoke the public functions on AWS client.
AwsCppSdkGTestSuite::SetUp(); | ||
|
||
// Build paths the same way the SDK does | ||
const Aws::String profileDir = ProfileConfigFileAWSCredentialsProvider::GetProfileDirectory(); |
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.
if this ran in on a users machine would this overrite their SSO configuraiton if it existed? If so we need to have this existing in a temp file/temp directory as we do in other tests. we cant mess with use credentials if its building on a users machine.
Issue #, if available:
Description of changes:
Implement User-Agent 2.1 business metrics for credential provider tracking in AWS SDK for C++.
Check all that applies:
Check which platforms you have built SDK on to verify the correctness of this PR.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.