Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
| ... | ... |
@@ -115,7 +115,13 @@ func testPullByDigestNoFallback(c *testing.T) {
|
| 115 | 115 |
imageReference := fmt.Sprintf("%s@sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", repoName)
|
| 116 | 116 |
out, _, err := dockerCmdWithError("pull", imageReference)
|
| 117 | 117 |
assert.Assert(c, err != nil, "expected non-zero exit status and correct error message when pulling non-existing image") |
| 118 |
- assert.Assert(c, strings.Contains(out, fmt.Sprintf("manifest for %s not found", imageReference)), "expected non-zero exit status and correct error message when pulling non-existing image")
|
|
| 118 |
+ |
|
| 119 |
+ expectedMsg := fmt.Sprintf("manifest for %s not found", imageReference)
|
|
| 120 |
+ if testEnv.UsingSnapshotter() {
|
|
| 121 |
+ expectedMsg = fmt.Sprintf("%s: not found", imageReference)
|
|
| 122 |
+ } |
|
| 123 |
+ |
|
| 124 |
+ assert.Check(c, is.Contains(out, expectedMsg), "expected non-zero exit status and correct error message when pulling non-existing image") |
|
| 119 | 125 |
} |
| 120 | 126 |
|
| 121 | 127 |
func (s *DockerRegistrySuite) TestPullByDigestNoFallback(c *testing.T) {
|