Add image pull with signature integration test
Signed-off-by: Aaron Weitekamp <aweiteka@redhat.com> Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
0f8cce1a4f
commit
adb0d19416
5 changed files with 51 additions and 1 deletions
|
@ -3,6 +3,8 @@
|
|||
load helpers
|
||||
|
||||
IMAGE=kubernetes/pause
|
||||
SIGNED_IMAGE=registry.access.redhat.com/rhel7-atomic:latest
|
||||
UNSIGNED_IMAGE=docker.io/library/hello-world:latest
|
||||
|
||||
function teardown() {
|
||||
cleanup_test
|
||||
|
@ -84,6 +86,24 @@ function teardown() {
|
|||
stop_crio
|
||||
}
|
||||
|
||||
@test "image pull with signature" {
|
||||
start_crio "" "" --no-pause-image
|
||||
run crioctl image pull "$SIGNED_IMAGE"
|
||||
echo "$output"
|
||||
[ "$status" -eq 0 ]
|
||||
cleanup_images
|
||||
stop_crio
|
||||
}
|
||||
|
||||
@test "image pull without signature" {
|
||||
start_crio "" "" --no-pause-image
|
||||
run crioctl image pull "$UNSIGNED_IMAGE"
|
||||
echo "$output"
|
||||
[ "$status" -ne 0 ]
|
||||
cleanup_images
|
||||
stop_crio
|
||||
}
|
||||
|
||||
@test "image pull and list by digest" {
|
||||
start_crio "" "" --no-pause-image
|
||||
run crioctl image pull nginx@sha256:33eb1ed1e802d4f71e52421f56af028cdf12bb3bfff5affeaf5bf0e328ffa1bc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue