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

Commit

Permalink
Merge pull request #5791 from stevenhorsman/rootfs-less-than-equals-one
Browse files Browse the repository at this point in the history
ci: test: k8s: agent_image rootfs check
  • Loading branch information
stevenhorsman authored Nov 6, 2023
2 parents 78680d6 + 1eaa882 commit 70a388a
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 70a388a

Please sign in to comment.