Skip to content

Commit

Permalink
tests: fix Test_CacheImage
Browse files Browse the repository at this point in the history
  • Loading branch information
plaffitt committed Nov 17, 2023
1 parent c438399 commit 998b325
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/registry/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,10 @@ func Test_CacheImage(t *testing.T) {
pathMatcher := Or(Equal("/v2/"+originRegistryName+"/"+tt.image+"/blobs/"+layerSha), Equal("/v2/"+originRegistryName+"/"+tt.image+"/blobs/"+digestSha))
cacheRegistry.AppendHandlers(
mockV2Endpoint(gh),
ghttp.CombineHandlers(
gh.VerifyRequest(http.MethodHead, "/v2/"+originRegistryName+"/"+tt.image+"/manifests/latest"),
gh.RespondWith(tt.httpStatus, tt.httpResponse, mockedHeadImageHeader),
),
ghttp.CombineHandlers(
gh.VerifyRequest(http.MethodHead, pathMatcher),
gh.RespondWith(http.StatusOK, "...", mockedHeadImageHeader),
Expand Down

0 comments on commit 998b325

Please sign in to comment.