Merge pull request #46758 from rumpl/c8d-image-list-digest
Skip the busybox digest check when containerd is enabled
This commit is contained in:
commit
8068038a60
1 changed files with 6 additions and 3 deletions
|
@ -317,9 +317,12 @@ func (s *DockerRegistrySuite) TestListImagesWithDigests(c *testing.T) {
|
||||||
assert.Assert(c, reWithDigest1.MatchString(out), "expected %q: %s", reWithDigest1.String(), out)
|
assert.Assert(c, reWithDigest1.MatchString(out), "expected %q: %s", reWithDigest1.String(), out)
|
||||||
// make sure image 2 has repo, tag, digest
|
// make sure image 2 has repo, tag, digest
|
||||||
assert.Assert(c, reWithDigest2.MatchString(out), "expected %q: %s", reWithDigest2.String(), out)
|
assert.Assert(c, reWithDigest2.MatchString(out), "expected %q: %s", reWithDigest2.String(), out)
|
||||||
// make sure busybox has tag, but not digest
|
// We always have a digest when using containerd to store images
|
||||||
busyboxRe := regexp.MustCompile(`\s*busybox\s*latest\s*<none>\s`)
|
if !testEnv.UsingSnapshotter() {
|
||||||
assert.Assert(c, busyboxRe.MatchString(out), "expected %q: %s", busyboxRe.String(), out)
|
// make sure busybox has tag, but not digest
|
||||||
|
busyboxRe := regexp.MustCompile(`\s*busybox\s*latest\s*<none>\s`)
|
||||||
|
assert.Assert(c, busyboxRe.MatchString(out), "expected %q: %s", busyboxRe.String(), out)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerRegistrySuite) TestListDanglingImagesWithDigests(c *testing.T) {
|
func (s *DockerRegistrySuite) TestListDanglingImagesWithDigests(c *testing.T) {
|
||||||
|
|
Loading…
Reference in a new issue