You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -298,42 +310,52 @@ test_is_trusted_task_with_rules if {
298
310
299
311
# regal ignore:line-length
300
312
not tekton.is_trusted_task(deny_constrained_task_denied_version, deny_constrained_denied_manifests) withdata.rule_data.trusted_task_rules as trusted_task_rules
313
+
with ec.oci.image_manifests as _mock_image_manifests
301
314
302
315
# Task not satisfying any deny rule version constraints should not be denied
tekton.is_trusted_task(deny_constrained_task_valid_version, deny_constrained_valid_manifests) withdata.rule_data.trusted_task_rules as trusted_task_rules # regal ignore:line-length
325
+
326
+
# regal ignore:line-length
327
+
tekton.is_trusted_task(deny_constrained_task_valid_version, deny_constrained_valid_manifests) withdata.rule_data.trusted_task_rules as trusted_task_rules
328
+
with ec.oci.image_manifests as _mock_image_manifests
313
329
314
330
# Tasks satisfying all the allow-rule version constraints should be allowed
tekton.is_trusted_task(allow_constrained_task_valid_version, allow_constrained_valid_manifests) withdata.rule_data.trusted_task_rules as trusted_task_rules # regal ignore:line-length
340
+
341
+
# regal ignore:line-length
342
+
tekton.is_trusted_task(allow_constrained_task_valid_version, allow_constrained_valid_manifests) withdata.rule_data.trusted_task_rules as trusted_task_rules
343
+
with ec.oci.image_manifests as _mock_image_manifests
325
344
326
345
# Tasks *NOT* satisfying all the allow-rule version constraints should be denied
not tekton.is_trusted_task(allow_constrained_task_denied_version, allow_constrained_denied_manifests) withdata.rule_data.trusted_task_rules as trusted_task_rules # regal ignore:line-length
355
+
356
+
# regal ignore:line-length
357
+
not tekton.is_trusted_task(allow_constrained_task_denied_version, allow_constrained_denied_manifests) withdata.rule_data.trusted_task_rules as trusted_task_rules
358
+
with ec.oci.image_manifests as _mock_image_manifests
337
359
338
360
# Task with mismatching versions between ref and manifest annotations.
339
361
# Only the manifest annotation is taken into consideration
@@ -347,21 +369,27 @@ test_is_trusted_task_with_rules if {
347
369
# Manifest has 1.2.3 even though ref has 1.5 - manifest version is used
not tekton.is_trusted_task(allow_constrained_task_denied_version_mismatching_1, mismatch_manifests_1) withdata.rule_data.trusted_task_rules as trusted_task_rules # regal ignore:line-length
372
+
373
+
# regal ignore:line-length
374
+
not tekton.is_trusted_task(allow_constrained_task_denied_version_mismatching_1, mismatch_manifests_1) withdata.rule_data.trusted_task_rules as trusted_task_rules
375
+
with ec.oci.image_manifests as _mock_image_manifests
351
376
352
377
# Task with mismatching versions between ref and manifest annotations.
353
378
# Only the manifest annotation is taken into consideration
tekton.is_trusted_task(allow_constrained_task_denied_version_mismatching_2, mismatch_manifests_2) withdata.rule_data.trusted_task_rules as trusted_task_rules # regal ignore:line-length
389
+
390
+
# regal ignore:line-length
391
+
tekton.is_trusted_task(allow_constrained_task_denied_version_mismatching_2, mismatch_manifests_2) withdata.rule_data.trusted_task_rules as trusted_task_rules
392
+
with ec.oci.image_manifests as _mock_image_manifests
365
393
}
366
394
367
395
test_trusted_task_records if {
@@ -570,6 +598,7 @@ test_denying_pattern if {
570
598
# Should return a list with the pattern that denied it
571
599
# regal ignore:line-length
572
600
patterns := tekton.denying_pattern(denied_task, _empty_bundle_manifests) withdata.rule_data.trusted_task_rules as trusted_task_rules
601
+
with ec.oci.image_manifests as _mock_image_manifests
0 commit comments