1
0
mirror of https://github.com/goharbor/harbor.git synced 2026-10-24 21:59:32 +03:00
Files
harbor/tests/apitests/python/library/notation.py
2023-11-07 08:39:37 +00:00

11 lines
311 B
Python

# -*- coding: utf-8 -*-
import base
def generate_cert():
command = ["notation", "cert", "generate-test", "--default", "wabbit-networks.io"]
base.run_command(command)
def sign_artifact(artifact):
command = ["notation", "sign", "-d", "--allow-referrers-api", artifact]
base.run_command(command)