Skip to content

Commit

Permalink
Add imgcrypt test with invalid keyprovider path
Browse files Browse the repository at this point in the history
Signed-off-by: Brandon Lum <lumjjb@gmail.com>
  • Loading branch information
lumjjb committed Mar 8, 2021
1 parent 07b5812 commit 97185d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions script/tests/test_encryption.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1143,6 +1143,11 @@ setupKeyprovider() {
_EOF_
}

testKeyproviderInvalidPath() {
export OCICRYPT_KEYPROVIDER_CONFIG=/path/to/nowhere
testJWE
}

testKeyprovider() {
if [ -z "${KEYPROVIDER}" ]; then
echo "Skipping keyprovider test; require KEYPROVIDER to point to executable"
Expand Down Expand Up @@ -1240,6 +1245,7 @@ testPKCS7
testPKCS11
testPGPandJWEandPKCS7andPKCS11andKeyprovider
testKeyprovider
testKeyproviderInvalidPath
cleanup

# Test containerd with flow where keys are in local directory
Expand Down

0 comments on commit 97185d4

Please sign in to comment.