Adjustments based on code review feedback

This commit is contained in:
Joseph Schorr 2018-11-15 13:51:48 +02:00
parent c46b11bac1
commit 1eaf5b18dd
9 changed files with 30 additions and 19 deletions

View file

@ -159,7 +159,8 @@ class V2Protocol(RegistryProtocol):
# Parse the returned manifest list and ensure it matches.
assert response.headers['Content-Type'] == DOCKER_SCHEMA2_MANIFESTLIST_CONTENT_TYPE
manifest = parse_manifest_from_bytes(response.text, response.headers['Content-Type'])
assert manifest.schema_version is None
assert manifest.schema_version == 2
assert manifest.is_manifest_list
assert manifest.digest == manifestlist.digest