Skip to content

Commit

Permalink
Debug layer info
Browse files Browse the repository at this point in the history
Signed-off-by: Derek McGowan <[email protected]>
  • Loading branch information
dmcgowan committed May 27, 2024
1 parent 724a4cd commit 5779461
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script/tests/test_encryption.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,7 @@ testKeyprovider() {

echo "Testing keyprovider using '${KEYPROVIDER}'"

echo "Testing large recpient list"
echo "Testing single recipient list"

$CTR images encrypt \
--recipient provider:testkeyprovider:foobar \
Expand All @@ -1392,9 +1392,9 @@ testKeyprovider() {
<(echo -n "ENCRYPTIONprovider.testkeyprovider")
failExit $? "Image layerinfo on keyprovider encrypted image shows unexpected encryption"

MSG=$(sudo $CTR container create ${ALPINE_ENC} --skip-decrypt-auth --key provider:testkeyprovider:xyz testcontainer1 2>&1)
MSG=$(sudo $CTR --debug container create ${ALPINE_ENC} --skip-decrypt-auth --key provider:testkeyprovider:xyz testcontainer1 2>&1)

failExit $? "Should have been able to create a container from encrypted (keyprovider)\n${MSG}"
failExit $? "Should have been able to create a container from encrypted (keyprovider)\n${MSG}\n${LAYER_INFO_ALPINE_ENC}"

$CTR images decrypt \
--key provider:testkeyprovider:123 \
Expand Down

0 comments on commit 5779461

Please sign in to comment.