From 8136a75e5d1b936b65513bb6f0e327ed71107124 Mon Sep 17 00:00:00 2001 From: Tobin Feldman-Fitzthum Date: Thu, 11 Jan 2024 14:29:03 -0600 Subject: [PATCH] tests: update e2e tests for new policy Now that the default policy does not allow the sample evidence, update the e2e tests to set a permissive policy first. Signed-off-by: Tobin Feldman-Fitzthum --- kbs/test/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kbs/test/Makefile b/kbs/test/Makefile index 53bab7eed0..532afbee52 100644 --- a/kbs/test/Makefile +++ b/kbs/test/Makefile @@ -98,6 +98,9 @@ stop-resource-kbs: resource-kbs.PID kill $$(cat $<) && rm $< test-bgcheck: client start-kbs + RUST_LOG=kbs_protocol=warn ./client \ + config --auth-private-key kbs.key \ + set-resource-policy --policy-file $(MAKEFILE_DIR)/data/policy_2.rego && \ RUST_LOG=kbs_protocol=error ./client get-resource \ --path one/two/three \ | base64 -d > roundtrip_secret && \ @@ -111,6 +114,9 @@ attestation_token: client tee.key start-kbs > attestation_token test-passport: client attestation_token start-resource-kbs + RUST_LOG=kbs_protocol=warn ./client --url http://127.0.0.1:50002 \ + config --auth-private-key kbs.key \ + set-resource-policy --policy-file $(MAKEFILE_DIR)/data/policy_2.rego && \ RUST_LOG=kbs_protocol=warn ./client --url http://127.0.0.1:50002 get-resource \ --attestation-token attestation_token \ --tee-key-file tee.key \