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
= [{'is_public': True, 'protected': True, 'id': '1', 'name': 'pub1'}, {'is_public': True, 'protected': False, 'id': '2', 'name': 'pub2-noprot'}, {'is_public': False, 'protected': True, 'id': '3', 'name': 'priv3'}, {'is_public': False, 'protected': False, 'id': '4', 'name': 'priv4-noprot'}]¶
-
NOPUB_NOPROT
= {'is_public': False, 'protected': False, 'id': '4', 'name': 'priv4-noprot'}¶
-
NOPUB_PROT
= {'is_public': False, 'protected': True, 'id': '3', 'name': 'priv3'}¶
-
PUB_NOPROT
= {'is_public': True, 'protected': False, 'id': '2', 'name': 'pub2-noprot'}¶
-
PUB_PROT
= {'is_public': True, 'protected': True, 'id': '1', 'name': 'pub1'}¶
-
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
= [{'protected': True, 'id': '1', 'visibility': 'public', 'name': 'pub1'}, {'protected': False, 'id': '2', 'visibility': 'public', 'name': 'pub2-noprot'}, {'protected': True, 'id': '3', 'visibility': 'private', 'name': 'priv3'}, {'protected': False, 'id': '4', 'visibility': 'private', 'name': 'priv4-noprot'}]¶
-
NOPUB_NOPROT
= {'protected': False, 'id': '4', 'visibility': 'private', 'name': 'priv4-noprot'}¶
-
NOPUB_PROT
= {'protected': True, 'id': '3', 'visibility': 'private', 'name': 'priv3'}¶
-
PUB_NOPROT
= {'protected': False, 'id': '2', 'visibility': 'public', 'name': 'pub2-noprot'}¶
-
PUB_PROT
= {'protected': True, 'id': '1', 'visibility': 'public', '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
()¶
-