From d7f53e51a98a106eb2674828d7b7c80e39f0b769 Mon Sep 17 00:00:00 2001 From: Yang Jiao Date: Mon, 1 Nov 2021 11:27:52 +0800 Subject: [PATCH 1/2] 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 < Date: Thu, 11 Nov 2021 12:23:26 +0800 Subject: [PATCH 2/2] Not allow space in replication rule filters (#15984) Signed-off-by: AllForNothing --- .../create-edit-rule.component.html | 2 +- .../create-edit-rule/create-edit-rule.component.ts | 13 ++++++++++++- .../label/label-piece/label-piece.component.html | 4 ++-- .../label/label-piece/label-piece.component.ts | 1 + 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/portal/src/app/base/left-side-nav/replication/replication/create-edit-rule/create-edit-rule.component.html b/src/portal/src/app/base/left-side-nav/replication/replication/create-edit-rule/create-edit-rule.component.html index 24b851ac3..67246a19c 100644 --- a/src/portal/src/app/base/left-side-nav/replication/replication/create-edit-rule/create-edit-rule.component.html +++ b/src/portal/src/app/base/left-side-nav/replication/replication/create-edit-rule/create-edit-rule.component.html @@ -108,7 +108,7 @@