Check for 'base' key in dependency releases

parent b0a20fee
......@@ -418,13 +418,14 @@ class TestContainer(object):
if main_repo:
if dependency:
condition = (
'tags' in data or 'branch' in data
'base' in data
and ('tags' in data or 'branch' in data)
or ('sha256' in data
and ('url' not in data
or data['url'].startswith('http://')))
)
self.assertTrue(condition,
'A release must have a "tags" key or "branch" key '
'A release must have a "base" and a "tags" or "branch" key '
'if it is in the main repository. For custom '
'releases, a custom repository.json file must be '
'hosted elsewhere. The only exception to this rule '
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment