Test suites for ‘common’ code used throughout the OpenStack HTTP API.
Bases: cinder.test.TestCase
Unit tests for the cinder.api.openstack.common.limited method which takes in a list of items and, depending on the ‘offset’ and ‘limit’ GET params, returns a subset or complete set of the given items.
Run before each test.
Test a max_limit other than 1000.
Test request with both limit and offset.
Test limit of 10.
Test limit of 3000.
Test limit of zero.
Test a negative limit.
Test a negative offset.
Test request with no offset or limit
Test offset key works with a BAD offset.
Test offset key works with a blank offset.
Test offset key works with a medium sized number.
Test offset key works with a number over 1000 (max_limit).
Test offset key works with 0.
Bases: cinder.test.TestCase
Bases: cinder.test.TestCase
Unit tests for the cinder.api.openstack.common.get_pagination_params method which takes in a request object and returns ‘marker’ and ‘limit’ GET params.
Test invalid limit param.
Test no params.
Test valid limit param.
Test valid limit and marker parameters.
Test valid marker param.