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

V2: Updates APN user-agent configuration #82

Merged
merged 2 commits into from
Sep 27, 2021
Merged

V2: Updates APN user-agent configuration #82

merged 2 commits into from
Sep 27, 2021

Conversation

gdavison
Copy link
Contributor

Adds APNInfo and APNProduct for prepending APN data to user-agent

@gdavison gdavison requested a review from a team as a code owner September 25, 2021 00:33
@gdavison gdavison added this to the v2.0.0 milestone Sep 25, 2021
func customUserAgentMiddleware(c *Config) middleware.BuildMiddleware {
return middleware.BuildMiddlewareFunc("CustomUserAgent",
// Builds the user-agent string for APN
func (apn APNInfo) BuildUserAgentString() string {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm guessing no publicly available documentation for this format?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's under NDA

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 🚀.

% make test                     
go test -timeout=30s -parallel=4 ./...
ok  	github.com/hashicorp/aws-sdk-go-base/v2	6.147s
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/constants	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/endpoints	[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]
cd v2/awsv1shim && go test -timeout=30s -parallel=4 ./...
ok  	github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2	0.747s
?   	github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2/mockdata	[no test files]
ok  	github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2/tfawserr	(cached)

@gdavison gdavison merged commit 36bccfc into v2 Sep 27, 2021
@gdavison gdavison deleted the v2-apn-user-agent branch September 27, 2021 17:36
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