From f814651d9109cca186b3d878226896346f9e16ee Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Mar 21 2018 14:34:58 +0000 Subject: If sigkeys is specified, require at least one Merges: https://pagure.io/pungi/pull-request/880 Signed-off-by: Patrick Uiterwijk --- diff --git a/pungi/checks.py b/pungi/checks.py index 36764f2..6233d5d 100644 --- a/pungi/checks.py +++ b/pungi/checks.py @@ -669,6 +669,8 @@ def make_schema(): "sigkeys": { "type": "array", "items": {"$ref": "#/definitions/optional_string"}, + "minItems": 1, + "default": [None], }, "variants_file": {"$ref": "#/definitions/str_or_scm_dict"}, "comps_file": {"$ref": "#/definitions/str_or_scm_dict"}, @@ -1083,7 +1085,7 @@ def make_schema(): "required": ["release_name", "release_short", "release_version", "release_is_layered", - "variants_file", "sigkeys", + "variants_file", "runroot", "pkgset_source", "gather_method"], "additionalProperties": False, diff --git a/tests/helpers.py b/tests/helpers.py index c2ab6ba..a24a845 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -226,7 +226,6 @@ BASE_CONFIG = dict( runroot=False, createrepo_checksum='sha256', gather_method='deps', - sigkeys=[], )