From 8055374520f7820a19365d175062d447765c5d87 Mon Sep 17 00:00:00 2001 From: Yang Jiao Date: Mon, 15 Nov 2021 10:59:19 +0800 Subject: [PATCH] Specify test redis image tag Specify the test redis mirror tag. If not specified, the default tag is latest. If the latest tag changes, it will cause false positives in the test case. Signed-off-by: Yang Jiao --- tests/robot-cases/Group1-Nightly/Schedule.robot | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/robot-cases/Group1-Nightly/Schedule.robot b/tests/robot-cases/Group1-Nightly/Schedule.robot index 811afd735..5f969f092 100644 --- a/tests/robot-cases/Group1-Nightly/Schedule.robot +++ b/tests/robot-cases/Group1-Nightly/Schedule.robot @@ -73,10 +73,10 @@ Test Case - GC Schedule Job Log To Console GC Schedule Job ${d} ${project_name}= Set Variable gc_schedule_proj${d} ${image}= Set Variable redis - ${tag}= Set Variable latest + ${sha256}= Set Variable e4b315ad03a1d1d9ff0c111e648a1a91066c09ead8352d3d6a48fa971a82922c Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} Create An New Project And Go Into Project ${project_name} - Push image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} ${project_name} ${image}:${tag} + Push image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} ${project_name} ${image} sha256=${sha256} Sleep 50 Go Into Repo ${project_name}/${image} Switch To Garbage Collection @@ -113,10 +113,10 @@ Test Case - Scan Schedule Job Log To Console ${d} ${project_name}= Set Variable scan_schedule_proj${d} ${image}= Set Variable redis - ${tag}= Set Variable latest + ${sha256}= Set Variable e4b315ad03a1d1d9ff0c111e648a1a91066c09ead8352d3d6a48fa971a82922c Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} Create An New Project And Go Into Project ${project_name} - Push image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} ${project_name} ${image}:${tag} + Push image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} ${project_name} ${image} sha256=${sha256} Sleep 50 Go Into Repo ${project_name}/${image} Retry Wait Until Page Contains Element ${not_scanned_icon} @@ -142,7 +142,7 @@ Test Case - Scan Schedule Job Sleep 500 Go Into Project ${project_name} Go Into Repo ${project_name}/${image} - Scan Result Should Display In List Row ${tag} + Scan Result Should Display In List Row ${sha256} View Repo Scan Details High Medium Test Case - Replication Schedule Job