mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-13 03:42:35 -06:00
afdb285a06
* wasm-e2e: fix test runner, adapt and include jsonpatch tests The `sort_bindings` key now is interpreted a little differently now: it's no longer sorting and comparing, but building two sets and compares them. From the test author's perspective, nothing has changed, except that it now actually compares them. Fixes #2949. * exported tests: don't sort test expectations This leads to very weird situations, and seems to only be a convenience for the test authors. So, instead, we'll have the test authors pin down whatever the sorted bindings are, and assert that the sorted bindings of the returned result set match. * wasm: fix regex.find_all_string_submatch_n with n != -1 Fixes #3352. * wasm: unify objects that contain vars Unification only happens by the reused existing code path, but we still have to assert equality of the rest. Fixes #3351. Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>