Implement the new OCI-based registry data model
Note that this change does *not* enable the new data model by default, but does allow it to be used when a special environment variable is specified.
This commit is contained in:
parent
924b386437
commit
fdcb8bad23
23 changed files with 1847 additions and 209 deletions
|
@ -23,6 +23,20 @@ def basic_images():
|
|||
]
|
||||
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def different_images():
|
||||
""" Returns different basic images for push and pull testing. """
|
||||
# Note: order is from base layer down to leaf.
|
||||
parent_bytes = layer_bytes_for_contents('different parent contents')
|
||||
image_bytes = layer_bytes_for_contents('some different contents')
|
||||
return [
|
||||
Image(id='anotherparentid', bytes=parent_bytes, parent_id=None),
|
||||
Image(id='anothersomeid', bytes=image_bytes, parent_id='anotherparentid'),
|
||||
]
|
||||
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def sized_images():
|
||||
""" Returns basic images (with sizes) for push and pull testing. """
|
||||
|
|
Reference in a new issue