From aa517cc77654cf517cc7bba5529b07da92f033dc Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Thu, 15 Jun 2023 19:07:11 -0400 Subject: [PATCH] test: Fix order of parameters and remove unnecessary key parameter Signed-off-by: Stefan Berger --- script/tests/test_encryption.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/tests/test_encryption.sh b/script/tests/test_encryption.sh index 1844bf5b..6c2f6205 100755 --- a/script/tests/test_encryption.sh +++ b/script/tests/test_encryption.sh @@ -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) @@ -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)