Fix the mapping schema and a few comments

Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
This commit is contained in:
Vladimir Diaz 2017-10-19 12:23:08 -04:00
parent f5174f2b9b
commit ba0644abc9
No known key found for this signature in database
GPG key ID: 5DEE9B97B0E2289A
3 changed files with 3 additions and 3 deletions

View file

@ -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,

View file

@ -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.

View file

@ -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))