From d7f53e51a98a106eb2674828d7b7c80e39f0b769 Mon Sep 17 00:00:00 2001 From: Yang Jiao Date: Mon, 1 Nov 2021 11:27:52 +0800 Subject: [PATCH] Add test case to verify imgpkg in nightly Signed-off-by: Yang Jiao --- tests/resources/TestCaseBody.robot | 4 +++ .../Group0-Util/prepare_imgpkg_test_files.sh | 27 +++++++++++++++++++ tests/robot-cases/Group1-Nightly/Common.robot | 19 ++++++++++++- tests/test-engine-image/Dockerfile.common | 3 +++ tests/test-engine-image/Dockerfile.ui_test | 1 + 5 files changed, 53 insertions(+), 1 deletion(-) create mode 100755 tests/robot-cases/Group0-Util/prepare_imgpkg_test_files.sh diff --git a/tests/resources/TestCaseBody.robot b/tests/resources/TestCaseBody.robot index 7aae626b6..66b185227 100644 --- a/tests/resources/TestCaseBody.robot +++ b/tests/resources/TestCaseBody.robot @@ -459,3 +459,7 @@ Check Harbor Api Page ${Title}= Get Title Should Be Equal ${Title} Harbor Swagger Retry Wait Element xpath=//h2[contains(.,"Harbor API")] + +Prepare Image Package Test Files + [Arguments] ${files_path} + ${rc} ${output}= Run And Return Rc And Output bash tests/robot-cases/Group0-Util/prepare_imgpkg_test_files.sh ${files_path} diff --git a/tests/robot-cases/Group0-Util/prepare_imgpkg_test_files.sh b/tests/robot-cases/Group0-Util/prepare_imgpkg_test_files.sh new file mode 100755 index 000000000..cfb428fc2 --- /dev/null +++ b/tests/robot-cases/Group0-Util/prepare_imgpkg_test_files.sh @@ -0,0 +1,27 @@ +#!/bin/bash +set -x +set -e + +FILE_DIRECTORY=$1 +FILE_PATH=$FILE_DIRECTORY/.imgpkg +mkdir "$FILE_DIRECTORY" +mkdir "$FILE_PATH" + +cat > "$FILE_PATH"/bundle.yml < "$FILE_PATH"/images.yml <