Optimize upgrade pipeline script of push image

Signed-off-by: danfengliu <danfengl@vmware.com>
This commit is contained in:
danfengliu 2020-10-26 14:58:47 +08:00
parent 8535ecbbe5
commit cff4f529cd
2 changed files with 3 additions and 2 deletions

View File

@ -694,6 +694,7 @@ Test Case - Read Only Mode
Close Browser Close Browser
Test Case - Proxy Cache Test Case - Proxy Cache
[Tags] proxy_cache
${d}= Get Current Date result_format=%m%s ${d}= Get Current Date result_format=%m%s
${registry}= Set Variable https://hub.docker.com/ ${registry}= Set Variable https://hub.docker.com/
${user_namespace}= Set Variable danfengliu ${user_namespace}= Set Variable danfengliu

View File

@ -646,8 +646,8 @@ def do_data_creation():
harborAPI.populate_projects(version=args.version) harborAPI.populate_projects(version=args.version)
harborAPI.push_artifact_index(data["projects"][0]["name"], data["projects"][0]["artifact_index"]["name"], data["projects"][0]["artifact_index"]["tag"], version=args.version) harborAPI.push_artifact_index(data["projects"][0]["name"], data["projects"][0]["artifact_index"]["name"], data["projects"][0]["artifact_index"]["tag"], version=args.version)
pull_image("busybox", "redis", "haproxy", "alpine", "httpd:2") #pull_image("busybox", "redis", "haproxy", "alpine", "httpd:2")
push_image("busybox", data["projects"][0]["name"]) push_image_to_project(data["projects"][0]["name"], args.endpoint, 'admin', 'Harbor12345', "busybox", "latest")
push_signed_image("alpine", data["projects"][0]["name"], "latest") push_signed_image("alpine", data["projects"][0]["name"], "latest")
for replicationrule in data["replicationrule"]: for replicationrule in data["replicationrule"]: