Skip to content

Commit

Permalink
tests: update e2e tests for new policy
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
fitzthum committed Jan 12, 2024
1 parent 40c4ada commit 1357e41
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kbs/test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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 \
Expand Down

0 comments on commit 1357e41

Please sign in to comment.