magnumclient.tests.utils
Module¶magnumclient.tests.utils.
BaseTestCase
(*args, **kwargs)¶Bases: testtools.testcase.TestCase
setUp
()¶magnumclient.tests.utils.
FakeAPI
(responses)¶Bases: object
json_request
(*args, **kwargs)¶raw_request
(*args, **kwargs)¶magnumclient.tests.utils.
FakeConnection
(response=None, **kwargs)¶Bases: object
getresponse
()¶request
(method, conn_url, **kwargs)¶setresponse
(response)¶magnumclient.tests.utils.
FakeKeystone
(auth_token)¶Bases: object
service_catalog
= <magnumclient.tests.utils.FakeServiceCatalog object>¶timestamp
= datetime.datetime(2019, 4, 15, 1, 4, 8, 667374)¶magnumclient.tests.utils.
FakeResponse
(headers, body=None, version=None, status=None, reason=None)¶Bases: object
getheader
(key, default)¶getheaders
()¶read
(amt)¶magnumclient.tests.utils.
FakeServiceCatalog
¶Bases: object
url_for
(endpoint_type, service_type, attr=None, filter_value=None)¶magnumclient.tests.utils.
FakeSession
(headers, content=None, status_code=None)¶Bases: object
request
(url, method, **kwargs)¶magnumclient.tests.utils.
FakeSessionResponse
(headers, content=None, status_code=None)¶Bases: object
magnumclient.tests.utils.
TestCase
(*args, **kwargs)¶Bases: testtools.testcase.TestCase
TEST_REQUEST_BASE
= {'verify': True}¶make_env
(exclude=None, fake_env={'OS_PASSWORD': 'password', 'OS_AUTH_URL': 'http://no.where/v2.0', 'OS_USERNAME': 'username', 'OS_PROJECT_NAME': 'project_name'})¶setUp
()¶shell
(argstr, exitcodes=(0, ))¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.