The magnumclient.tests.utils Module

The magnumclient.tests.utils Module

class magnumclient.tests.utils.BaseTestCase(*args, **kwargs)

Bases: testtools.testcase.TestCase

setUp()
class magnumclient.tests.utils.FakeAPI(responses)

Bases: object

json_request(*args, **kwargs)
raw_request(*args, **kwargs)
class magnumclient.tests.utils.FakeConnection(response=None, **kwargs)

Bases: object

getresponse()
request(method, conn_url, **kwargs)
setresponse(response)
class 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)
class magnumclient.tests.utils.FakeResponse(headers, body=None, version=None, status=None, reason=None)

Bases: object

getheader(key, default)
getheaders()
read(amt)
class magnumclient.tests.utils.FakeServiceCatalog

Bases: object

url_for(endpoint_type, service_type, attr=None, filter_value=None)
class magnumclient.tests.utils.FakeSession(headers, content=None, status_code=None)

Bases: object

request(url, method, **kwargs)
class magnumclient.tests.utils.FakeSessionResponse(headers, content=None, status_code=None)

Bases: object

class 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, ))
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.