This adds a new script under devtools that facilitates testing policy code against a remote instance. The script runs some heavily mocked hub code that calls out to a remote instance for actual data access.
There are several subcommands that simulate various policy checkpoints in the current code. There is also a manual subcommand for specifying arbitrary policies and data on the command line.
The reason for this tool's existence is that policy code is very hard to test without actual data, which is usually locked up inside a Koji instance. This script allows you to see what a given policy would do, without actually deploying it.
This adds a new script under devtools that facilitates testing policy code against a remote instance. The script runs some heavily mocked hub code that calls out to a remote instance for actual data access.
There are several subcommands that simulate various policy checkpoints in the current code. There is also a
manualsubcommand for specifying arbitrary policies and data on the command line.The reason for this tool's existence is that policy code is very hard to test without actual data, which is usually locked up inside a Koji instance. This script allows you to see what a given policy would do, without actually deploying it.