openstackclient.tests.api package
Submodules
openstackclient.tests.api.fakes module
API Test Fakes
- 
class openstackclient.tests.api.fakes.TestSession(*args, **kwargs)
- Bases: openstackclient.tests.utils.TestCase - 
- 
BASE_URL = 'https://api.example.com:1234/vX'
 - 
- 
setUp()
 
 
openstackclient.tests.api.test_api module
Base API Library Tests
- 
class openstackclient.tests.api.test_api.TestBaseAPI(*args, **kwargs)
- Bases: openstackclient.tests.api.fakes.TestSession - 
- 
setUp()
 - 
- 
test_create_post()
 - 
- 
test_create_put()
 - 
- 
test_delete()
 - 
- 
test_find_attr_by_id()
 - 
- 
test_find_attr_by_name()
 - 
- 
test_find_attr_path_resource()
 - 
- 
test_find_bulk_dict()
 - 
- 
test_find_bulk_none()
 - 
- 
test_find_bulk_one()
 - 
- 
test_find_bulk_two()
 - 
- 
test_list_body()
 - 
- 
test_list_detailed()
 - 
- 
test_list_filtered()
 - 
- 
test_list_no_body()
 - 
- 
test_list_params()
 - 
- 
test_list_wrapped()
 
- 
class openstackclient.tests.api.test_api.TestKeystoneSession(*args, **kwargs)
- Bases: openstackclient.tests.api.fakes.TestSession - 
- 
setUp()
 - 
- 
test_session_request()
 
 
openstackclient.tests.api.test_image_v1 module
Image v1 API Library Tests
- 
class openstackclient.tests.api.test_image_v1.TestImage(*args, **kwargs)
- Bases: openstackclient.tests.api.test_image_v1.TestImageAPIv1 - 
- 
LIST_IMAGE_RESP = [{'id': '1', 'protected': True, 'name': 'pub1', 'is_public': True}, {'id': '2', 'protected': False, 'name': 'pub2-noprot', 'is_public': True}, {'id': '3', 'protected': True, 'name': 'priv3', 'is_public': False}, {'id': '4', 'protected': False, 'name': 'priv4-noprot', 'is_public': False}]
 - 
- 
NOPUB_NOPROT = {'id': '4', 'protected': False, 'name': 'priv4-noprot', 'is_public': False}
 - 
- 
NOPUB_PROT = {'id': '3', 'protected': True, 'name': 'priv3', 'is_public': False}
 - 
- 
PUB_NOPROT = {'id': '2', 'protected': False, 'name': 'pub2-noprot', 'is_public': True}
 - 
- 
PUB_PROT = {'id': '1', 'protected': True, 'name': 'pub1', 'is_public': True}
 - 
- 
test_image_list_no_options()
 - 
- 
test_image_list_private()
 - 
- 
test_image_list_public()
 
- 
class openstackclient.tests.api.test_image_v1.TestImageAPIv1(*args, **kwargs)
- Bases: openstackclient.tests.utils.TestCase - 
- 
setUp()
 
 
openstackclient.tests.api.test_image_v2 module
Image v2 API Library Tests
- 
class openstackclient.tests.api.test_image_v2.TestImage(*args, **kwargs)
- Bases: openstackclient.tests.api.test_image_v2.TestImageAPIv2 - 
- 
LIST_IMAGE_RESP = [{'visibility': 'public', 'id': '1', 'protected': True, 'name': 'pub1'}, {'visibility': 'public', 'id': '2', 'protected': False, 'name': 'pub2-noprot'}, {'visibility': 'private', 'id': '3', 'protected': True, 'name': 'priv3'}, {'visibility': 'private', 'id': '4', 'protected': False, 'name': 'priv4-noprot'}]
 - 
- 
NOPUB_NOPROT = {'visibility': 'private', 'id': '4', 'protected': False, 'name': 'priv4-noprot'}
 - 
- 
NOPUB_PROT = {'visibility': 'private', 'id': '3', 'protected': True, 'name': 'priv3'}
 - 
- 
PUB_NOPROT = {'visibility': 'public', 'id': '2', 'protected': False, 'name': 'pub2-noprot'}
 - 
- 
PUB_PROT = {'visibility': 'public', 'id': '1', 'protected': True, 'name': 'pub1'}
 - 
- 
test_image_list_no_options()
 - 
- 
test_image_list_private()
 - 
- 
test_image_list_public()
 
- 
class openstackclient.tests.api.test_image_v2.TestImageAPIv2(*args, **kwargs)
- Bases: openstackclient.tests.utils.TestCase - 
- 
setUp()
 
 
openstackclient.tests.api.test_object_store_v1 module
Object Store v1 API Library Tests
- 
class openstackclient.tests.api.test_object_store_v1.TestContainer(*args, **kwargs)
- Bases: openstackclient.tests.api.test_object_store_v1.TestObjectAPIv1 - 
- 
setUp()
 - 
- 
test_container_create()
 - 
- 
test_container_delete()
 - 
- 
test_container_list_marker_limit_end()
 - 
- 
test_container_list_no_options()
 - 
- 
test_container_list_prefix()
 - 
- 
test_container_show()
 
- 
class openstackclient.tests.api.test_object_store_v1.TestObject(*args, **kwargs)
- Bases: openstackclient.tests.api.test_object_store_v1.TestObjectAPIv1 - 
- 
base_object_create(*args, **keywargs)
 - 
- 
setUp()
 - 
- 
test_object_create()
 - 
- 
test_object_delete()
 - 
- 
test_object_list_delimiter()
 - 
- 
test_object_list_marker_limit_end()
 - 
- 
test_object_list_no_options()
 - 
- 
test_object_list_prefix()
 - 
- 
test_object_show()
 
- 
class openstackclient.tests.api.test_object_store_v1.TestObjectAPIv1(*args, **kwargs)
- Bases: openstackclient.tests.utils.TestCase - 
- 
setUp()
 
 
openstackclient.tests.api.test_utils module
API Utilities Library Tests
- 
class openstackclient.tests.api.test_utils.TestBaseAPIFilter(*args, **kwargs)
- Bases: openstackclient.tests.api.fakes.TestSession - The filters can be tested independently - 
- 
setUp()
 - 
- 
test_simple_filter_attr_only()
 - 
- 
test_simple_filter_attr_value()
 - 
- 
test_simple_filter_no_attr()
 - 
- 
test_simple_filter_none()
 - 
- 
test_simple_filter_prop_attr_only()
 - 
- 
test_simple_filter_prop_attr_value()
 
 
Module contents