-
Notifications
You must be signed in to change notification settings - Fork 932
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add User-agent for repo-plugins api calls (#2722)
* Add user agent info for plugin api calls * Remove comment * Edit error message * Use same user agent as api/plugin/client.go - would be nice to use command.config but we couldn't see an easy way to thread it Co-authored-by: david alvarado <alvaradoda@vmware.com> * Add test - The reason it is checking NotTo(Equal(...)) is because the default user agent "Go-http-client/1.1" is being blocked by the webserver Co-authored-by: david alvarado <alvaradoda@vmware.com> * Clean up deprecation and some warnings and regenerate fake_plugin_repo as we made changes --------- Co-authored-by: M. Oleske <moleske@pivotal.io> Co-authored-by: david alvarado <alvaradoda@vmware.com> Co-authored-by: Al Berez <a-b@users.noreply.github.com>
- Loading branch information
1 parent
7b94203
commit 2fbee77
Showing
3 changed files
with
42 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.