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

@ -206,14 +206,8 @@ def test_get_or_create_manifest_list(initialized_db):
v2_manifest = v2_builder.build()
# Write the manifests as blobs.
location = ImageStorageLocation.get(name='local_us')
blob = store_blob_record_and_temp_link('devtable', 'newrepo', v1_manifest.digest, location,
len(v1_manifest.bytes), 120)
storage.put_content(['local_us'], get_layer_path(blob), v1_manifest.bytes)
blob = store_blob_record_and_temp_link('devtable', 'newrepo', v2_manifest.digest, location,
len(v2_manifest.bytes), 120)
storage.put_content(['local_us'], get_layer_path(blob), v2_manifest.bytes)
_populate_blob(v1_manifest.bytes)
_populate_blob(v2_manifest.bytes)
# Build the manifest list.
list_builder = DockerSchema2ManifestListBuilder()