Skip to content

Commit

Permalink
fix: distribution_inspect e2e test error response message
Browse files Browse the repository at this point in the history
Signed-off-by: Swagat Bora <[email protected]>
  • Loading branch information
swagatbora90 committed Jan 24, 2025
1 parent ee5002a commit bb1ec31
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions e2e/tests/distribution_inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,10 @@ func DistributionInspect(opt *option.Option) {
var message response.Error
err = json.NewDecoder(res.Body).Decode(&message)
Expect(err).Should(BeNil())
Expect(message.Message).Should(Equal(fmt.Sprintf("unexpected status from HEAD request "+
"to http://%s/v2/test-login/manifests/tag: 401 Unauthorized", registry)))
Expect(message.Message).Should(And(
ContainSubstring("pull access denied, repository does not exist or may require authorization"),
ContainSubstring("no basic auth credentials"),
))
})
})
}

0 comments on commit bb1ec31

Please sign in to comment.