Set required ReferencePolicy field so tests pass
@@ -460,6 +460,9 @@ func TestLimitVerifier(t *testing.T) {
Kind: "DockerImage",
Name: testutil.MakeDockerImageReference("test", "is", testutil.ChildImageWith2LayersDigest),
},
+ ReferencePolicy: api.TagReferencePolicy{
+ Type: api.SourceTagReferencePolicy,
+ },
},
},
},
@@ -483,6 +486,9 @@ func TestLimitVerifier(t *testing.T) {
Kind: "DockerImage",
Name: testutil.MakeDockerImageReference("test", "other", testutil.BaseImageWith1LayerDigest),
},
+ ReferencePolicy: api.TagReferencePolicy{
+ Type: api.SourceTagReferencePolicy,
+ },
},
},
},
