Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Nelson <minelson@vmware.com>
  • Loading branch information
absoludity committed Aug 24, 2023
1 parent c6ff0b9 commit 18ea710
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions cmd/asset-syncer/server/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -782,24 +782,6 @@ func (h *goodOCIAPIHTTPClient) Do(req *http.Request) (*http.Response, error) {
return w.Result(), nil
}

type authenticatedOCIAPIHTTPClient struct {
response string
}

func (h *authenticatedOCIAPIHTTPClient) Do(req *http.Request) (*http.Response, error) {
w := httptest.NewRecorder()

// Ensure we're sending the right Authorization header
if req.Header.Get("Authorization") != "Bearer ThisSecretAccessTokenAuthenticatesTheClient" {
w.WriteHeader(500)
}
_, err := w.Write([]byte(h.response))
if err != nil {
log.Fatalf("%+v", err)
}
return w.Result(), nil
}

func Test_ociAPICli(t *testing.T) {
url, _ := parseRepoURL("http://oci-test")

Expand Down

0 comments on commit 18ea710

Please sign in to comment.