diff --git a/tests/resources/Harbor-Util.robot b/tests/resources/Harbor-Util.robot index 682e3a6f7..f69d30b87 100644 --- a/tests/resources/Harbor-Util.robot +++ b/tests/resources/Harbor-Util.robot @@ -172,3 +172,7 @@ Wait for Harbor Ready \ Return From Keyword If ${status} ${HARBOR_IP} \ Sleep 30s Fail Harbor failed to come up properly! + +Get Harbor Version + ${rc} ${output}= Run And Return Rc And Output curl -k -X GET --header 'Accept: application/json' 'https://${ip}/api/systeminfo'|grep -i harbor_version + Log To Console ${output} diff --git a/tests/robot-cases/Group11-Nightly/Nightly.robot b/tests/robot-cases/Group11-Nightly/Nightly.robot index c860eff4f..a1a8cdef5 100644 --- a/tests/robot-cases/Group11-Nightly/Nightly.robot +++ b/tests/robot-cases/Group11-Nightly/Nightly.robot @@ -25,6 +25,10 @@ ${SSH_USER} root ${HARBOR_ADMIN} admin *** Test Cases *** +Test Case - Get Harbor Version +#Just get harbor version and log it + Get Harbor Version + Test Case - Vulnerability Data Not Ready #This case must run before vulnerability db ready Init Chrome Driver