Add get harbor version case (#5039)

Add get harbor version case
This commit is contained in:
sigsbee 2018-06-01 14:38:10 +08:00 committed by GitHub
parent d87c9c3c38
commit a07a0d09f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -172,3 +172,7 @@ Wait for Harbor Ready
\ Return From Keyword If ${status} ${HARBOR_IP} \ Return From Keyword If ${status} ${HARBOR_IP}
\ Sleep 30s \ Sleep 30s
Fail Harbor failed to come up properly! 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}

View File

@ -25,6 +25,10 @@ ${SSH_USER} root
${HARBOR_ADMIN} admin ${HARBOR_ADMIN} admin
*** Test Cases *** *** Test Cases ***
Test Case - Get Harbor Version
#Just get harbor version and log it
Get Harbor Version
Test Case - Vulnerability Data Not Ready Test Case - Vulnerability Data Not Ready
#This case must run before vulnerability db ready #This case must run before vulnerability db ready
Init Chrome Driver Init Chrome Driver