ci: Install policy document on host to run kata-agent as local process.

The test setup starts kata-agent as a local process without the
UVM. The agent policy initialization fails due to missing policy
document at `/etc/kata-opa/default-policy.rego`. The fix
- installs a relaxed `allow-all.rego` policy document
- cleans up the install during exit

Signed-off-by: Sumedh Alok Sharma <sumsharma@microsoft.com>
This commit is contained in:
Sumedh Alok Sharma
2024-09-11 11:25:05 +05:30
parent 822f898433
commit 8045a7a2ba
2 changed files with 27 additions and 0 deletions

View File

@@ -48,6 +48,8 @@ main()
trap cleanup EXIT
install_policy_doc
setup_agent
run_tests