mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-12 05:12:37 +00:00
tests: k8s: Update image pull timeout error
Currently the error we are checking for is `CreateContainerRequest timed out`, but this message doesn't always seem to be printed to our pod log. Try using a more general message that should be present more reliably. Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
parent
eb04caaf8f
commit
85554257f8
@ -171,10 +171,10 @@ setup() {
|
|||||||
echo "Pod $pod_config file:"
|
echo "Pod $pod_config file:"
|
||||||
cat $pod_config
|
cat $pod_config
|
||||||
|
|
||||||
# The pod should be failed because the default timeout of CreateContainerRequest is 60s
|
# The pod should be failed because the image is too large to be pulled in the timeout
|
||||||
assert_pod_fail "$pod_config"
|
assert_pod_fail "$pod_config"
|
||||||
assert_logs_contain "$node" kata "$node_start_time" \
|
assert_logs_contain "$node" kata "$node_start_time" 'createContainer failed'
|
||||||
'CreateContainerRequest timed out'
|
assert_logs_contain "$node" kata "$node_start_time" 'timeout'
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "Test we can pull a large image inside the guest with large createcontainer timeout" {
|
@test "Test we can pull a large image inside the guest with large createcontainer timeout" {
|
||||||
|
Loading…
Reference in New Issue
Block a user