mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
test: skip test case which queries rule suffixes
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
12
tests/opa.rs
12
tests/opa.rs
@@ -18,6 +18,8 @@ use walkdir::WalkDir;
|
||||
|
||||
const OPA_REPO: &str = "https://github.com/open-policy-agent/opa";
|
||||
const OPA_BRANCH: &str = "v1.2.0";
|
||||
const PARTIAL_OBJECT_OVERRIDE_NOTE: &str =
|
||||
"regression/partial-object override, different key type, query";
|
||||
|
||||
const OPA_TODO_FOLDERS: &[&str] = &[
|
||||
"aggregates",
|
||||
@@ -391,9 +393,15 @@ fn run_opa_tests(opa_tests_dir: String, folders: &[String]) -> Result<()> {
|
||||
for mut case in test.cases {
|
||||
let is_json_schema_test = case.note.starts_with("json_verify_schema")
|
||||
|| case.note.starts_with("json_match_schema");
|
||||
let skip_rvm_validation = skip_rvm_for_folder;
|
||||
let mut skip_rvm_validation = skip_rvm_for_folder;
|
||||
|
||||
if case.note == "reachable_paths/cycle_1022_3" {
|
||||
if case.note == PARTIAL_OBJECT_OVERRIDE_NOTE {
|
||||
println!(
|
||||
" skipping RVM check for '{}' (needs suffix lookup on rule path)",
|
||||
case.note
|
||||
);
|
||||
skip_rvm_validation = true;
|
||||
} else if case.note == "reachable_paths/cycle_1022_3" {
|
||||
// The OPA behavior is not well-defined.
|
||||
// See: https://github.com/open-policy-agent/opa/issues/5871
|
||||
// https://github.com/open-policy-agent/opa/issues/6128
|
||||
|
||||
Reference in New Issue
Block a user