@@ -13,7 +13,7 @@ load helpers
13
13
# force a failed pull and look at the error message which *must* include the
14
14
# the resolved image name (localhost/image:latest).
15
15
run_buildah 125 pull --policy=always image
16
- [[ " $output " == * " Error initializing source docker://localhost/image:latest" * ]]
16
+ [[ " $output " == * " initializing source docker://localhost/image:latest" * ]]
17
17
run_buildah rmi localhost/image ${iid}
18
18
}
19
19
@@ -186,11 +186,11 @@ load helpers
186
186
187
187
# Try to pull encrypted image without key should fail
188
188
run_buildah 125 pull --signature-policy ${TESTSDIR} /policy.json oci:${TESTDIR} /tmp/busybox_enc
189
- expect_output --substring " Error decrypting layer .* missing private key needed for decryption"
189
+ expect_output --substring " decrypting layer .* missing private key needed for decryption"
190
190
191
191
# Try to pull encrypted image with wrong key should fail
192
192
run_buildah 125 pull --signature-policy ${TESTSDIR} /policy.json --decryption-key ${TESTDIR} /tmp/mykey2.pem oci:${TESTDIR} /tmp/busybox_enc
193
- expect_output --substring " Error decrypting layer .* no suitable key unwrapper found or none of the private keys could be used for decryption"
193
+ expect_output --substring " decrypting layer .* no suitable key unwrapper found or none of the private keys could be used for decryption"
194
194
195
195
# Providing the right key should succeed
196
196
run_buildah pull --signature-policy ${TESTSDIR} /policy.json --decryption-key ${TESTDIR} /tmp/mykey.pem oci:${TESTDIR} /tmp/busybox_enc
@@ -208,11 +208,11 @@ load helpers
208
208
209
209
# Try to pull encrypted image without key should fail
210
210
run_buildah 125 pull --signature-policy ${TESTSDIR} /policy.json --tls-verify=false --creds testuser:testpassword docker://localhost:5000/buildah/busybox_encrypted:latest
211
- expect_output --substring " Error decrypting layer .* missing private key needed for decryption"
211
+ expect_output --substring " decrypting layer .* missing private key needed for decryption"
212
212
213
213
# Try to pull encrypted image with wrong key should fail, with diff. msg
214
214
run_buildah 125 pull --signature-policy ${TESTSDIR} /policy.json --tls-verify=false --creds testuser:testpassword --decryption-key ${TESTDIR} /tmp/mykey2.pem docker://localhost:5000/buildah/busybox_encrypted:latest
215
- expect_output --substring " Error decrypting layer .* no suitable key unwrapper found or none of the private keys could be used for decryption"
215
+ expect_output --substring " decrypting layer .* no suitable key unwrapper found or none of the private keys could be used for decryption"
216
216
217
217
# Providing the right key should succeed
218
218
run_buildah pull --signature-policy ${TESTSDIR} /policy.json --tls-verify=false --creds testuser:testpassword --decryption-key ${TESTDIR} /tmp/mykey.pem docker://localhost:5000/buildah/busybox_encrypted:latest
@@ -234,11 +234,11 @@ load helpers
234
234
235
235
# Try to pull encrypted image without key should fail
236
236
run_buildah 125 pull --signature-policy ${TESTSDIR} /policy.json --tls-verify=false --creds testuser:testpassword docker://localhost:5000/buildah/busybox_encrypted:latest
237
- expect_output --substring " Error decrypting layer .* missing private key needed for decryption"
237
+ expect_output --substring " decrypting layer .* missing private key needed for decryption"
238
238
239
239
# Try to pull encrypted image with wrong key should fail
240
240
run_buildah 125 pull --signature-policy ${TESTSDIR} /policy.json --tls-verify=false --creds testuser:testpassword --decryption-key ${TESTDIR} /tmp/mykey2.pem docker://localhost:5000/buildah/busybox_encrypted:latest
241
- expect_output --substring " Error decrypting layer .* no suitable key unwrapper found or none of the private keys could be used for decryption"
241
+ expect_output --substring " decrypting layer .* no suitable key unwrapper found or none of the private keys could be used for decryption"
242
242
243
243
# Providing the right key should succeed
244
244
run_buildah pull --signature-policy ${TESTSDIR} /policy.json --tls-verify=false --creds testuser:testpassword --decryption-key ${TESTDIR} /tmp/mykey.pem docker://localhost:5000/buildah/busybox_encrypted:latest
0 commit comments