mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Fix the mapping schema and a few comments
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
This commit is contained in:
parent
f5174f2b9b
commit
ba0644abc9
3 changed files with 3 additions and 3 deletions
|
|
@ -1845,7 +1845,7 @@ def test_get_one_valid_targetinfo(self):
|
|||
multi_repo_updater.get_one_valid_targetinfo, 'non-existent.txt')
|
||||
multi_repo_updater.map_file['mapping'][1]['terminating'] = True
|
||||
|
||||
# Test for a mapping that sets terminating = True, and that occurs before
|
||||
# Test for a mapping that sets terminating = True, and that appears before
|
||||
# the final mapping.
|
||||
multi_repo_updater.map_file['mapping'][0]['terminating'] = True
|
||||
self.assertRaises(tuf.exceptions.UnknownTargetError,
|
||||
|
|
|
|||
|
|
@ -342,7 +342,7 @@ def get_one_valid_targetinfo(self, target_filename):
|
|||
|
||||
else:
|
||||
logger.debug('The mapping was irrelevant to the targets, and'
|
||||
' "terminating" was set to False.'
|
||||
' "terminating" was set to False.')
|
||||
|
||||
# If we are here, it means either there were no mappings, or none of the
|
||||
# mappings provided the target.
|
||||
|
|
|
|||
|
|
@ -268,7 +268,7 @@
|
|||
# A Dict containing the map file's "mapping" attribute.
|
||||
MAPPING_SCHEMA = SCHEMA.ListOf(SCHEMA.Object(
|
||||
paths = RELPATHS_SCHEMA,
|
||||
repositories = REPO_NAMES_TO_MIRRORS_SCHEMA,
|
||||
repositories = SCHEMA.ListOf(securesystemslib.formats.URL_SCHEMA),
|
||||
terminating = BOOLEAN_SCHEMA,
|
||||
threshold = THRESHOLD_SCHEMA))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue