Skip to content

Commit 716db9e

Browse files
committed
chore: update urllib3 tests to check for build level 3
Signed-off-by: Ben Selwyn-Smith <[email protected]>
1 parent bda47b6 commit 716db9e

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

tests/integration/cases/urllib3_expectation_dir/policy.dl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ Policy("test_policy", component_id, "") :-
1313
check_passed(component_id, "mcn_provenance_derived_commit_1"),
1414
check_passed(component_id, "mcn_provenance_derived_repo_1"),
1515
check_passed(component_id, "mcn_provenance_expectation_1"),
16+
check_passed(component_id, "mcn_provenance_verified_1"),
17+
provenance_verified_check(_, build_level, _),
18+
build_level = 3,
1619
check_failed(component_id, "mcn_infer_artifact_pipeline_1"),
1720
check_failed(component_id, "mcn_provenance_witness_level_one_1"),
1821
check_failed(component_id, "mcn_trusted_builder_level_three_1"),

tests/integration/cases/urllib3_expectation_file/policy.dl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ Policy("test_policy", component_id, "") :-
1313
check_passed(component_id, "mcn_provenance_derived_repo_1"),
1414
check_passed(component_id, "mcn_provenance_expectation_1"),
1515
check_passed(component_id, "mcn_provenance_level_three_1"),
16+
check_passed(component_id, "mcn_provenance_verified_1"),
17+
provenance_verified_check(_, build_level, _),
18+
build_level = 3,
1619
check_failed(component_id, "mcn_infer_artifact_pipeline_1"),
1720
check_failed(component_id, "mcn_provenance_witness_level_one_1"),
1821
check_failed(component_id, "mcn_trusted_builder_level_three_1"),

tests/integration/cases/urllib3_invalid_expectation/policy.dl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ Policy("test_policy", component_id, "") :-
1212
check_passed(component_id, "mcn_provenance_derived_commit_1"),
1313
check_passed(component_id, "mcn_provenance_derived_repo_1"),
1414
check_passed(component_id, "mcn_provenance_level_three_1"),
15+
check_passed(component_id, "mcn_provenance_verified_1"),
16+
provenance_verified_check(_, build_level, _),
17+
build_level = 3,
1518
check_failed(component_id, "mcn_infer_artifact_pipeline_1"),
1619
check_failed(component_id, "mcn_provenance_witness_level_one_1"),
1720
check_failed(component_id, "mcn_trusted_builder_level_three_1"),

0 commit comments

Comments
 (0)