diff --git a/tests/test_policy b/tests/test_policy index b52e418..9c15a99 100755 --- a/tests/test_policy +++ b/tests/test_policy @@ -1,6 +1,6 @@ #!/bin/bash cargo build || (echo "Failed to build"; exit 1) -echo "Working: Policy" | ./target/debug/clevis-pin-tpm2 encrypt '{"policy_pubkey_path":"./tests/policy_pubkey.json", "policy_ref": "", "policy_path": "./tests/policy_working.json"}' | ./target/debug/clevis-pin-tpm2 decrypt +echo "Working: with Policy" | ./target/debug/clevis-pin-tpm2 encrypt '{"policy_pubkey_path":"./tests/policy_pubkey.json", "policy_ref": "", "policy_path": "./tests/policy_working.json"}' | ./target/debug/clevis-pin-tpm2 decrypt # Negative test (non-valid policy) token=$(echo Failed | ./target/debug/clevis-pin-tpm2 encrypt '{"policy_pubkey_path":"./tests/policy_pubkey.json", "policy_ref": "", "policy_path": "./tests/policy_broken.json"}') res=$(echo "$token" | ./target/debug/clevis-pin-tpm2 decrypt 2>/dev/null) @@ -14,5 +14,5 @@ then echo "Something went wrong" exit 1 else - echo "Working: with policy" + echo "Working: with policy with invalid digest" fi