Skip to content
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

Fix rego formatting #24

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 7 additions & 7 deletions policies/test_test.rego
Expand Up @@ -18,27 +18,27 @@ test_needs_tests_with_results_mixed {

test_success_data {
count(deny) == 0 with data.test.test1 as {"result": "SUCCESS"}
with data.config.policy as {"non_blocking_checks": []}
with data.config.policy as {"non_blocking_checks": []}
}

test_failure_data {
deny == {{"msg": "All tests did not end with SUCCESS"}} with data.test.test1 as {"result": "FAILURE"}
with data.config.policy as {"non_blocking_checks": []}
with data.config.policy as {"non_blocking_checks": []}
}

test_error_data {
deny == {{"msg": "All tests did not end with SUCCESS"}} with data.test.test1 as {"result": "ERROR"}
with data.config.policy as {"non_blocking_checks": []}
with data.config.policy as {"non_blocking_checks": []}
}

test_mix_data {
deny == {{"msg": "All tests did not end with SUCCESS"}} with data.test.successfull as {"result": "SUCCESS"}
with data.test.failed as {"result": "FAILURE"}
with data.test.errored as {"result": "ERROR"}
with data.config.policy as {"non_blocking_checks": []}
with data.test.failed as {"result": "FAILURE"}
with data.test.errored as {"result": "ERROR"}
with data.config.policy as {"non_blocking_checks": []}
}

test_can_skip_by_name {
count(deny) == 0 with data.test.test1 as {"result": "FAILURE"}
with data.config.policy as {"non_blocking_checks": ["test:test1"]}
with data.config.policy as {"non_blocking_checks": ["test:test1"]}
}