Bases: object
Fake one or more images.
TODO(xiexs): Currently, only image API v2 is supported by this class.
Create multiple fake images.
Parameters: |
|
---|---|
Returns: | A list of FakeResource objects |
Create a fake image.
Parameters: | attrs (Dictionary) – A dictionary with all attrbutes of image |
---|---|
Retrun: | A FakeResource object with id, name, owner, protected, visibility and tags attrs |
Get the image columns from a faked image object.
Parameters: | image – A FakeResource objects faking image |
---|
Get the image data from a faked image object.
Parameters: | image – A FakeResource objects faking image |
---|
Get the image info from a faked image object.
Parameters: | image – A FakeResource objects faking image |
---|
A dictionary which includes the faked image info as follows: {
‘id’: image_id, ‘name’: image_name, ‘owner’: image_owner, ‘protected’: image_protected, ‘visibility’: image_visibility, ‘tags’: image_tags
}
Get an iterable MagicMock object with a list of faked images.
If images list is provided, then initialize the Mock object with the list. Otherwise create one.
Parameters: |
|
---|
Bases: object
Bases: openstackclient.tests.utils.TestCommand
Bases: openstackclient.tests.image.v2.test_image.TestImage
Bases: openstackclient.tests.image.v2.fakes.TestImagev2
Bases: openstackclient.tests.image.v2.test_image.TestImage
Bases: openstackclient.tests.image.v2.test_image.TestImage
Bases: openstackclient.tests.image.v2.test_image.TestImage
Bases: openstackclient.tests.image.v2.test_image.TestImage
Bases: openstackclient.tests.image.v2.test_image.TestImage
Bases: openstackclient.tests.image.v2.test_image.TestImage