sed -E -i 's#\bassert\.Assert\(c, (.*), checker\.False\b#assert.Assert(c, !\1#g' \
-- "integration-cli/docker_cli_by_digest_test.go"
Signed-off-by: Tibor Vass <tibor@docker.com>
(cherry picked from commit b17bb1e74a6643901cbc5a63570ed47ef8dfddcd)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -361,7 +361,7 @@ func (s *DockerRegistrySuite) TestListDanglingImagesWithDigests(c *testing.T) {
|
| 361 | 361 |
|
| 362 | 362 |
// make sure image 1 has repo, tag, <none> AND repo, <none>, digest |
| 363 | 363 |
reWithDigest1 := regexp.MustCompile(`\s*` + repoName + `\s*dangle1\s*` + digest1.String() + `\s`) |
| 364 |
- assert.Assert(c, reWithDigest1.MatchString(out), checker.False, check.Commentf("unexpected %q: %s", reWithDigest1.String(), out))
|
|
| 364 |
+ assert.Assert(c, !reWithDigest1.MatchString(out), check.Commentf("unexpected %q: %s", reWithDigest1.String(), out))
|
|
| 365 | 365 |
// make sure image 2 has repo, <none>, digest |
| 366 | 366 |
assert.Assert(c, re2.MatchString(out), checker.True, check.Commentf("expected %q: %s", re2.String(), out))
|
| 367 | 367 |
|
| ... | ... |
@@ -382,9 +382,9 @@ func (s *DockerRegistrySuite) TestListDanglingImagesWithDigests(c *testing.T) {
|
| 382 | 382 |
out, _ = dockerCmd(c, "images", "--digests", "--filter=dangling=true") |
| 383 | 383 |
|
| 384 | 384 |
// make sure image 1 has repo, tag, digest |
| 385 |
- assert.Assert(c, reWithDigest1.MatchString(out), checker.False, check.Commentf("unexpected %q: %s", reWithDigest1.String(), out))
|
|
| 385 |
+ assert.Assert(c, !reWithDigest1.MatchString(out), check.Commentf("unexpected %q: %s", reWithDigest1.String(), out))
|
|
| 386 | 386 |
// make sure image 2 has repo, tag, digest |
| 387 |
- assert.Assert(c, reWithDigest2.MatchString(out), checker.False, check.Commentf("unexpected %q: %s", reWithDigest2.String(), out))
|
|
| 387 |
+ assert.Assert(c, !reWithDigest2.MatchString(out), check.Commentf("unexpected %q: %s", reWithDigest2.String(), out))
|
|
| 388 | 388 |
} |
| 389 | 389 |
|
| 390 | 390 |
func (s *DockerRegistrySuite) TestInspectImageWithDigests(c *testing.T) {
|