Skip to content

Commit aa517cc

Browse files
committed
test: Fix order of parameters and remove unnecessary key parameter
Signed-off-by: Stefan Berger <[email protected]>
1 parent ec72311 commit aa517cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

script/tests/test_encryption.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ testLocalKeys() {
733733
echo "Testing creation of container from encrypted image with local keys (JWE)"
734734
MSG=$($CTR container rm testcontainer1 2>&1)
735735
MSG=$($CTR snapshot rm testcontainer1 2>&1)
736-
MSG=$(sudo $CTR container create ${ALPINE_ENC} --skip-decrypt-auth --key ${PRIVKEY2PEM} testcontainer1 2>&1)
736+
MSG=$(sudo $CTR container create --skip-decrypt-auth ${ALPINE_ENC} testcontainer1 2>&1)
737737

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

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

0 commit comments

Comments
 (0)