Bases: object
Bases: object
Bases: glance.tests.utils.BaseTestCase
Make sure the serializer can return 403 forbidden error instead of 500 internal server error.
Test image download returns HTTPNoContent
Make sure that serializer returns 204 no content error in case of image data is not available at specified location.
Test image download returns HTTPServiceUnavailable.
Test image download returns HTTPBadRequest.
Make sure that serializer returns 400 bad request error in case of getting images from this store is not supported at specified location.
Bases: glance.tests.unit.base.StoreClearingUnitTest
Test that uploading an image file raises StoreDisabled exception
Bases: glance.tests.unit.base.IsolatedUnitTest
Property marked with special char ! creatable by no one
Property marked with special char @ creatable by an unknown role
Property marked with special char ! deletable by no one
Property marked with special char @ deletable by an unknown role
Ensure status of queued image is updated (LP bug #1048851)
Ensure status of queued image is updated (LP bug #1048851).
Must be set to ‘deleted’ when delayed_delete isenabled.
Property marked with special char ! readable by no one
Property marked with special char @ readable by an unknown role
Ensure that image locations can be removed.
Image locations should be able to be added and removed simultaneously as long as the image has fewer than the limited number of image locations after the transaction.
Ensure that image properties can be removed.
Image properties should be able to be added and removed simultaneously as long as the image has fewer than the limited number of image properties after the transaction.
Property marked with special char ! updatable by no one
Property marked with special char @ updatable by an unknown role
Ensure that image locations can be removed.
Image locations should be able to be removed as long as the image has fewer than the limited number of image locations after the transaction.
Ensure that image properties can be removed.
Image properties should be able to be removed as long as the image has fewer than the limited number of image properties after the transaction.
Bases: glance.tests.unit.base.IsolatedUnitTest
Bases: glance.tests.unit.base.IsolatedUnitTest
Bases: glance.tests.unit.base.IsolatedUnitTest
Tests that the registry API returns list of public images.
Use a specific name. This is really a sanity check, filtering is tested more in-depth using /images/detail
Tests that the registry API returns list of public images.
Use a specific user-defined properties.
Tests that the registry API returns list of public images.
Must conforms to a limit query param.
Tests that the registry API returns list of public images.
Must conforms to limit and marker query params.
Tests that the registry API returns list of public images.
Must conforms to a marker query param.
Test marker and null container format ascending
Tests that the registry API returns 200 when a marker and a null container_format are combined ascending order
Test marker and null container format descending
Tests that the registry API returns 200 when a marker and a null container_format are combined descending order
Test marker and null disk format ascending
Tests that the registry API returns 200 when a marker and a null disk_format are combined ascending order
Test marker and null disk format descending
Tests that the registry API returns 200 when a marker and a null disk_format are combined descending order
Test marker and null name ascending
Tests that the registry API returns 200 when a marker and a null name are combined ascending order
Test marker and null name descending
Tests that the registry API returns 200 when a marker and a null name are combined descending order
Tests that the registry API returns list of public images.
Must be sorted alphabetically by container_format in descending order.
Tests that the registry API returns list of public images.
Must be sorted by created_at in ascending order.
Tests that the registry API returns list of public images.
Must conforms to a default sort key/dir.
Tests that the registry API returns list of public images.
Must be sorted alphabetically by disk_format in ascending order.
Tests that the registry API returns list of public images sorted by name-size and size-name with ascending and descending directions.
Tests that the registry API returns list of public images sorted by name-size and size-name with ascending sort direction.
Tests that the registry API returns list of public images.
Must be sorted alphabetically by name in ascending order.
Tests that the registry API returns list of public images.
Must be sorted by size in ascending order.
Tests that the registry API returns list of public images.
Must be sorted alphabetically by status in descending order.
Tests that the registry API returns list of public images.
Must be sorted by updated_at in descending order.
Tests for Glance Registry’s client.
This tests are temporary and will be removed once the registry’s driver tests will be added.
Bases: glance.tests.unit.base.IsolatedUnitTest, glance.tests.utils.RegistryAPIMixIn
Test proper actions made against a registry service.
Test for both valid and invalid requests.
Tests that a detailed call returns list of public images sorted by name-size and size-name in ascending and descending orders.
Tests that a detailed call returns list of public images sorted by name-size and size-name in ascending order.
Tests that the registry API returns list of public images.
Must be sorted alphabetically by container_format in descending order.
Tests that the registry API returns list of public images.
Must be sorted by created_at in ascending order.
Tests that the registry API returns list of public images.
Must besorted alphabetically by disk_format in ascending order.
Tests that the registry API returns list of public images.
Must be sorted alphabetically by name in ascending order.
Tests that the registry API returns list of public images.
Must be sorted by size in ascending order.
Tests that the registry API returns list of public images.
Must be sorted alphabetically by status in descending order.
Tests that the registry API returns list of public images.
Must be sorted by updated_at in descending order.
Tests proper exception is raised if image with ID already exists
Tests proper exception is raised if a bad status is set
Test correct set of public, name-filtered image returned.
This is just a sanity check, we test the details call more in-depth.
Test correct set of images returned with limit param == None.
Test correct set of images returned with marker/limit params.
Tests that NotFound is raised when getting a non-existing image
Bases: glance.tests.unit.base.IsolatedUnitTest
Test proper actions made against a registry service.
Test for both valid and invalid requests.
Bases: glance.tests.unit.base.IsolatedUnitTest