Open
Description
We currently have a mix of old yaml tests that are executed by a go script and rego tests that are executed by opa. We want to remove all the yaml tests and add rego tests for all policies. The test should be called policy_test.rego
under tests
dir and should contain all test scenarios unless the test scenarios are too many, in this case, it's ok to split them over several files and have multiple files.
Some policies have both types of tests, we want to delete the yaml one if there's an equivalent rego one.
Here you can find a list of policies that need to be refactored.