mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-20 07:37:38 +01:00
3b8a2890f9
1. Upgrade robot-framework to 3.1 and Selenium library to 4.4.0. 2. Fix a registry issue for clear filter text input. Signed-off-by: danfengliu <danfengl@vmware.com>
12 lines
474 B
Python
12 lines
474 B
Python
# -*- coding: utf-8 -*-
|
|
import subprocess
|
|
from testutils import notary_url
|
|
|
|
def sign_image(registry_ip, project_name, image, tag):
|
|
try:
|
|
ret = subprocess.check_output(["./tests/apitests/python/sign_image.sh", registry_ip, project_name, image, tag, notary_url], shell=False)
|
|
print("sign_image return: ", ret)
|
|
except subprocess.CalledProcessError, exc:
|
|
raise Exception("Failed to sign image error is {} {}.".format(exc.returncode, exc.output))
|
|
|