Skip to content
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

Adds tests for setting STS endpoint #836

Closed
wants to merge 1 commit into from
Closed

Conversation

gdavison
Copy link
Contributor

@gdavison gdavison commented Dec 7, 2023

Adds tests for setting STS endpoint via:

  • direct configuration
  • service-specific environment variable
  • global endpoint override environment variable
  • global endpoint override in shared config file

Service-specific endpoint override in shared config file does not currently work: aws/aws-sdk-go-v2#2413

@gdavison gdavison requested a review from a team as a code owner December 7, 2023 01:40
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀.

% go test ./...                  
?   	github.com/hashicorp/aws-sdk-go-base/v2/configtesting	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/awsconfig	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/constants	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/errs	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/slices	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/test	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/mockdata	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/servicemocks	[no test files]
ok  	github.com/hashicorp/aws-sdk-go-base/v2	6.217s
ok  	github.com/hashicorp/aws-sdk-go-base/v2/diag	(cached)
ok  	github.com/hashicorp/aws-sdk-go-base/v2/internal/config	(cached)
ok  	github.com/hashicorp/aws-sdk-go-base/v2/internal/endpoints	(cached)
ok  	github.com/hashicorp/aws-sdk-go-base/v2/internal/expand	(cached)
ok  	github.com/hashicorp/aws-sdk-go-base/v2/logging	(cached)
ok  	github.com/hashicorp/aws-sdk-go-base/v2/tfawserr	(cached)
ok  	github.com/hashicorp/aws-sdk-go-base/v2/useragent	(cached)
ok  	github.com/hashicorp/aws-sdk-go-base/v2/validation	(cached)

@gdavison
Copy link
Contributor Author

gdavison commented Dec 9, 2023

Superseded by #840

@gdavison gdavison closed this Dec 9, 2023
@gdavison gdavison deleted the f-config-endpoints branch December 11, 2023 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants