Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

ci: test: k8s: agent_image rootfs check #5791

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions integration/kubernetes/confidential/agent_image.bats
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,18 @@ setup() {
}

@test "$test_tag Test can pull an unencrypted image inside the guest" {
# See an issue at https://github.com/kata-containers/tests/issues/5781
if [ "${TEE_TYPE}" = "se" ]; then
skip "test until the containerd is updated to v1.7 for IBM Z Secure Execution"
fi
create_test_pod

echo "Check the image was not pulled in the host"
local pod_id=$(kubectl get pods -o jsonpath='{.items..metadata.name}')
retrieve_sandbox_id
rootfs=($(find /run/kata-containers/shared/sandboxes/${sandbox_id}/shared \
-name rootfs))
[ ${#rootfs[@]} -eq 1 ]

# On most systems we find the pause image's rootfs, but in some systems (SE and TDX)
# it appears to be in a different location with nydus-snapshotter, so check for 1, or 0
# See an issue at https://github.com/kata-containers/tests/issues/5781
[ ${#rootfs[@]} -le 1 ]
}

@test "$test_tag Test can pull a unencrypted signed image from a protected registry" {
Expand Down
Loading