Skip to content

Commit

Permalink
agent_image: Update the expected error message
Browse files Browse the repository at this point in the history
The error message will be different depending on the containerd version
being used. :-/

Signed-off-by: Fabiano Fidêncio <[email protected]>
  • Loading branch information
fidencio committed Oct 20, 2023
1 parent 9320845 commit e61144f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion integration/kubernetes/confidential/agent_image.bats
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,10 @@ setup() {

assert_pod_fail "${pod_config}"

assert_logs_contain "containerd" 'failed to resolve reference \\"quay.io/kata-containers/confidential-containers-auth:test\\": pulling from host quay.io failed with status code \[manifests test\]: 401 UNAUTHORIZED'
# The error will be different depending on the containerd version being used.
# The former assert is the one coming from containerd 1.6.x, while the latter is the cone coming from 1.7.x
assert_logs_contain "containerd" 'failed to resolve reference \\"quay.io/kata-containers/confidential-containers-auth:test\\": pulling from host quay.io failed with status code \[manifests test\]: 401 UNAUTHORIZED' || \
assert_logs_contain "containerd" 'failed to resolve reference \\"quay.io/kata-containers/confidential-containers-auth:test\\": unexpected status from HEAD request to https://quay.io/v2/kata-containers/confidential-containers-auth/manifests/test: 401 UNAUTHORIZED'
}

teardown() {
Expand Down

0 comments on commit e61144f

Please sign in to comment.