generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 29
chore: convert expectation files to policies and use in integration tests #760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
004c660
chore: convert expectation files to policies and use in integration t…
benmss 223e0bd
chore: prefer is_repo rule in converted policies
benmss fbed57f
chore: update integration test function name; remove added dependency…
benmss ec85d07
chore: use simplified rule for repositories
benmss d4bcd73
chore: minor fix
benmss 8f3b327
chore: fix policy conflicts with vsa tests
benmss 5d0e10b
chore: ensure repository table uses URL not PURL; apply changes to do…
benmss 6e9f113
chore: remove leftover JSON files
benmss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* Copyright (c) 2024 - 2024, Oracle and/or its affiliates. All rights reserved. */ | ||
/* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/. */ | ||
|
||
#include "prelude.dl" | ||
|
||
Policy("test_policy", component_id, "") :- | ||
check_passed(component_id, "mcn_build_as_code_1"), | ||
check_passed(component_id, "mcn_build_script_1"), | ||
check_passed(component_id, "mcn_build_service_1"), | ||
check_passed(component_id, "mcn_version_control_system_1"), | ||
check_failed(component_id, "mcn_infer_artifact_pipeline_1"), | ||
check_failed(component_id, "mcn_provenance_available_1"), | ||
check_failed(component_id, "mcn_provenance_derived_commit_1"), | ||
check_failed(component_id, "mcn_provenance_derived_repo_1"), | ||
check_failed(component_id, "mcn_provenance_expectation_1"), | ||
check_failed(component_id, "mcn_provenance_level_three_1"), | ||
check_failed(component_id, "mcn_provenance_witness_level_one_1"), | ||
check_failed(component_id, "mcn_trusted_builder_level_three_1"), | ||
is_repo_url(component_id, "https://github.com/timyarkov/docker_test"). | ||
|
||
apply_policy_to("test_policy", component_id) :- | ||
is_component(component_id, "pkg:github.com/timyarkov/docker_test@404a51a2f38c4470af6b32e4e00b5318c2d7c0cc"). |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.