@@ -23,6 +23,7 @@ var policyEvalTests = []func(t *testing.T, sb integration.Sandbox){
2323}
2424
2525func testPolicyEvalAllow (t * testing.T , sb integration.Sandbox ) {
26+ skipNoCompatBuildKit (t , sb , ">= 0.26.0-0" , "policy input requires BuildKit v0.26.0+" )
2627 policyFile := []byte (`
2728package docker
2829
@@ -51,6 +52,7 @@ decision := {"allow": allow}
5152}
5253
5354func testPolicyEvalDeny (t * testing.T , sb integration.Sandbox ) {
55+ skipNoCompatBuildKit (t , sb , ">= 0.26.0-0" , "policy input requires BuildKit v0.26.0+" )
5456 policyFile := []byte (`
5557package docker
5658
@@ -80,6 +82,7 @@ decision := {"allow": allow}
8082}
8183
8284func testPolicyEvalPrint (t * testing.T , sb integration.Sandbox ) {
85+ skipNoCompatBuildKit (t , sb , ">= 0.26.0-0" , "policy input requires BuildKit v0.26.0+" )
8386 cmd := buildxCmd (sb , withArgs (
8487 "policy" ,
8588 "eval" ,
@@ -99,6 +102,7 @@ func testPolicyEvalPrint(t *testing.T, sb integration.Sandbox) {
99102}
100103
101104func testPolicyEvalFields (t * testing.T , sb integration.Sandbox ) {
105+ skipNoCompatBuildKit (t , sb , ">= 0.26.0-0" , "policy input requires BuildKit v0.26.0+" )
102106 registry , err := sb .NewRegistry ()
103107 if errors .Is (err , integration .ErrRequirements ) {
104108 t .Skip (err .Error ())
@@ -171,6 +175,7 @@ func testPolicyEvalFields(t *testing.T, sb integration.Sandbox) {
171175}
172176
173177func testPolicyEvalLabel (t * testing.T , sb integration.Sandbox ) {
178+ skipNoCompatBuildKit (t , sb , ">= 0.26.0-0" , "policy input requires BuildKit v0.26.0+" )
174179 registry , err := sb .NewRegistry ()
175180 if errors .Is (err , integration .ErrRequirements ) {
176181 t .Skip (err .Error ())
0 commit comments