Skip to content

Commit

Permalink
test: Fix order of parameters and remove unnecessary key parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
  • Loading branch information
stefanberger committed Jun 15, 2023
1 parent ec72311 commit aa517cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/tests/test_encryption.sh
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ testLocalKeys() {
echo "Testing creation of container from encrypted image with local keys (JWE)"
MSG=$($CTR container rm testcontainer1 2>&1)
MSG=$($CTR snapshot rm testcontainer1 2>&1)
MSG=$(sudo $CTR container create ${ALPINE_ENC} --skip-decrypt-auth --key ${PRIVKEY2PEM} testcontainer1 2>&1)
MSG=$(sudo $CTR container create --skip-decrypt-auth ${ALPINE_ENC} testcontainer1 2>&1)

failExit $? "Should have been able to create a container from encrypted image when local keys exists (JWE)\n${MSG}"
MSG=$($CTR container rm testcontainer1 2>&1)
Expand All @@ -749,7 +749,7 @@ testLocalKeys() {
echo "Testing creation of container from encrypted image with local keys (PKCS11)"
MSG=$($CTR container rm testcontainer1 2>&1)
MSG=$($CTR snapshot rm testcontainer1 2>&1)
MSG=$(sudo $CTR container create ${ALPINE_ENC} --skip-decrypt-auth --key ${PRIVKEY2PEM} testcontainer1 2>&1)
MSG=$(sudo $CTR container create --skip-decrypt-auth ${ALPINE_ENC} testcontainer1 2>&1)

failExit $? "Should have been able to create a container from encrypted image when local keys exists (PKCS11)\n${MSG}"
MSG=$($CTR container rm testcontainer1 2>&1)
Expand Down

0 comments on commit aa517cc

Please sign in to comment.