mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-11 11:35:28 +01:00
7fb9dbd0fa
1. Fix E2E quotas issue, push the same image but with different name; 2. Add checkpoint for robot account test; 3. Upgraded docker and containerd in E2E image; 4. Package base image sample(busybox) into E2E image, so in E2E container, all local docker images can be cleaned up, once base image is needed for building image, it can be loaded locally; 5. Adapt OIDC service of supporting LDAP user, and add OIDC group user test; 6. Restart docker deamon before content trust test, both in API and UI test; 7. Add retry for keyword "Add A Tag Immutability Rule"; 8. Fix tag retention test issue, missing click angle icon, and enhance checkpoint of dry run and real run; 9. Fix schedule test issue for wrong cron string; 10. Disable quotas verification, it's not stable for script defect; Signed-off-by: danfengliu <danfengl@vmware.com>
16 lines
655 B
Python
16 lines
655 B
Python
# -*- coding: utf-8 -*-
|
|
import subprocess
|
|
from testutils import notary_url, BASE_IMAGE_ABS_PATH_NAME
|
|
from docker_api import docker_load_image, docker_image_clean_all
|
|
|
|
def sign_image(registry_ip, project_name, image, tag):
|
|
docker_load_image(BASE_IMAGE_ABS_PATH_NAME)
|
|
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 as e:
|
|
raise Exception("Failed to sign image error is {} {}.".format(e.returncode, e.output))
|
|
finally:
|
|
docker_image_clean_all()
|
|
|