It's not set when containerd is used as an image store and buildkit
never sets it either, so let's skip this test if snapshotters are used
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
| ... | ... |
@@ -17,6 +17,7 @@ import ( |
| 17 | 17 |
"github.com/opencontainers/go-digest" |
| 18 | 18 |
"gotest.tools/v3/assert" |
| 19 | 19 |
is "gotest.tools/v3/assert/cmp" |
| 20 |
+ "gotest.tools/v3/skip" |
|
| 20 | 21 |
) |
| 21 | 22 |
|
| 22 | 23 |
var ( |
| ... | ... |
@@ -180,6 +181,7 @@ func (s *DockerRegistrySuite) TestRemoveImageByDigest(c *testing.T) {
|
| 180 | 180 |
} |
| 181 | 181 |
|
| 182 | 182 |
func (s *DockerRegistrySuite) TestBuildByDigest(c *testing.T) {
|
| 183 |
+ skip.If(c, testEnv.UsingSnapshotter(), "Config.Image is not created with containerd, buildkit doesn't set it either") |
|
| 183 | 184 |
digest, err := setupImage(c) |
| 184 | 185 |
assert.NilError(c, err, "error setting up image") |
| 185 | 186 |
|