39 lines
1.5 KiB
Diff
39 lines
1.5 KiB
Diff
From 19b3a0bfd08433d39a1115f2ad9ef3eaac006514 Mon Sep 17 00:00:00 2001
|
|
From: haozi007 <liuhao27@huawei.com>
|
|
Date: Thu, 18 Mar 2021 11:25:57 +0800
|
|
Subject: [PATCH 53/53] add test to check running container with image
|
|
integration check
|
|
|
|
Signed-off-by: haozi007 <liuhao27@huawei.com>
|
|
---
|
|
CI/test_cases/image_cases/integration_check.sh | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/CI/test_cases/image_cases/integration_check.sh b/CI/test_cases/image_cases/integration_check.sh
|
|
index 2e6f962e..fe342cc2 100755
|
|
--- a/CI/test_cases/image_cases/integration_check.sh
|
|
+++ b/CI/test_cases/image_cases/integration_check.sh
|
|
@@ -58,6 +58,9 @@ function test_image_info()
|
|
ucid=$(isula create ${uimage})
|
|
[[ $? -ne 0 ]] && msg_err "${FUNCNAME[0]}:${LINENO} - create container failed" && ((ret++))
|
|
|
|
+ isula run -tid --name checker alpine
|
|
+ [[ $? -ne 0 ]] && msg_err "${FUNCNAME[0]}:${LINENO} - run container failed" && ((ret++))
|
|
+
|
|
tmp_fname=$(echo -n "/var/run/isulad/storage" | sha256sum | awk '{print $1}')
|
|
rm -f "${ISULAD_RUN_ROOT_PATH}/storage/${tmp_fname}.json"
|
|
|
|
@@ -74,6 +77,9 @@ function test_image_info()
|
|
isula ps -a | grep ${ucid}
|
|
[[ $? -ne 0 ]] && msg_err "${FUNCNAME[0]}:${LINENO} - container: ${ucid} do not exist with valid image" && ((ret++))
|
|
|
|
+ isula exec -it checker date
|
|
+ [[ $? -ne 0 ]] && msg_err "${FUNCNAME[0]}:${LINENO} - container: checker exec failed with valid image" && ((ret++))
|
|
+
|
|
isula images | grep busybox
|
|
[[ $? -eq 0 ]] && msg_err "${FUNCNAME[0]}:${LINENO} - invalid image: ${image} exist" && ((ret++))
|
|
|
|
--
|
|
2.25.1
|
|
|