diff --git a/pkg/testutil/api.go b/pkg/testutil/api.go index 753d80fea..f2bd6d469 100644 --- a/pkg/testutil/api.go +++ b/pkg/testutil/api.go @@ -70,6 +70,7 @@ func CloneVersionError(_ *fastly.CloneVersionInput) (*fastly.Version, error) { // WhoamiVerifyClient is used by `whoami` and `sso` tests. type WhoamiVerifyClient whoami.VerifyResponse +// Do executes the HTTP request. func (c WhoamiVerifyClient) Do(*http.Request) (*http.Response, error) { rec := httptest.NewRecorder() _ = json.NewEncoder(rec).Encode(whoami.VerifyResponse(c)) diff --git a/pkg/testutil/args.go b/pkg/testutil/args.go index 59374c410..2209f1e79 100644 --- a/pkg/testutil/args.go +++ b/pkg/testutil/args.go @@ -73,7 +73,7 @@ func (s MockAuthServer) SetAccountEndpoint(_ string) { // no-op } -// SetEndpoint sets the API endpoint. +// SetAPIEndpoint sets the API endpoint. func (s MockAuthServer) SetAPIEndpoint(_ string) { // no-op }