mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-31 16:36:38 +00:00
tests/k8s: Add skip is setup_common fails
At @danmihai1's suggestion add a die message in case the call to setup_common fails, so we can see if in the test output. Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
@@ -16,7 +16,7 @@ setup() {
|
||||
|
||||
[ "${SNAPSHOTTER:-}" = "nydus" ] || skip "None snapshotter was found but this test requires one"
|
||||
|
||||
setup_common
|
||||
setup_common || die "setup_common failed"
|
||||
AUTHENTICATED_IMAGE="${AUTHENTICATED_IMAGE:-quay.io/kata-containers/confidential-containers-auth:test}"
|
||||
AUTHENTICATED_IMAGE_USER=${AUTHENTICATED_IMAGE_USER:-}
|
||||
AUTHENTICATED_IMAGE_PASSWORD=${AUTHENTICATED_IMAGE_PASSWORD:-}
|
||||
|
@@ -20,7 +20,7 @@ setup() {
|
||||
|
||||
[ "${SNAPSHOTTER:-}" = "nydus" ] || skip "None snapshotter was found but this test requires one"
|
||||
|
||||
setup_common
|
||||
setup_common || die "setup_common failed"
|
||||
ENCRYPTED_IMAGE="${ENCRYPTED_IMAGE:-ghcr.io/confidential-containers/test-container:multi-arch-encrypted}"
|
||||
DECRYPTION_KEY="${DECRYPTION_KEY:-HUlOu8NWz8si11OZUzUJMnjiq/iZyHBJZMSD3BaqgMc=}"
|
||||
DECRYPTION_KEY_ID="${DECRYPTION_KEY_ID:-ssh-demo}"
|
||||
|
@@ -22,7 +22,7 @@ setup() {
|
||||
tag_suffix="-$(uname -m)"
|
||||
fi
|
||||
|
||||
setup_common
|
||||
setup_common || die "setup_common failed"
|
||||
UNSIGNED_UNPROTECTED_REGISTRY_IMAGE="quay.io/prometheus/busybox:latest"
|
||||
UNSIGNED_PROTECTED_REGISTRY_IMAGE="ghcr.io/confidential-containers/test-container-image-rs:unsigned${tag_suffix}"
|
||||
COSIGN_SIGNED_PROTECTED_REGISTRY_IMAGE="ghcr.io/confidential-containers/test-container-image-rs:cosign-signed${tag_suffix}"
|
||||
|
@@ -15,7 +15,7 @@ setup() {
|
||||
|
||||
[ "${SNAPSHOTTER:-}" = "nydus" ] || skip "None snapshotter was found but this test requires one"
|
||||
|
||||
setup_common
|
||||
setup_common || die "setup_common failed"
|
||||
get_pod_config_dir
|
||||
unencrypted_image="quay.io/prometheus/busybox:latest"
|
||||
image_pulled_time_less_than_default_time="ghcr.io/confidential-containers/test-container:rust-1.79.0" # unpacked size: 1.41GB
|
||||
|
@@ -14,7 +14,7 @@ setup() {
|
||||
agnhost_name="${container_images_agnhost_name}"
|
||||
agnhost_version="${container_images_agnhost_version}"
|
||||
|
||||
setup_common
|
||||
setup_common || die "setup_common failed"
|
||||
get_pod_config_dir
|
||||
}
|
||||
|
||||
|
@@ -22,7 +22,7 @@ check_and_skip() {
|
||||
|
||||
setup() {
|
||||
check_and_skip
|
||||
setup_common
|
||||
setup_common || die "setup_common failed"
|
||||
}
|
||||
|
||||
@test "Test cannnot launch pod with measured boot enabled and incorrect hash" {
|
||||
|
@@ -21,7 +21,7 @@ setup() {
|
||||
skip "Test skipped as KBS not setup"
|
||||
fi
|
||||
|
||||
setup_common
|
||||
setup_common || die "setup_common failed"
|
||||
get_pod_config_dir
|
||||
|
||||
export K8S_TEST_ENV_YAML="${pod_config_dir}/pod-sealed-secret.yaml"
|
||||
|
Reference in New Issue
Block a user