The nova.tests.api.openstack.fakes Module

class Context

Bases: object

class FakeAuthDatabase

Bases: object

static auth_token_create(context, token)
static auth_token_destroy(context, token_id)
static auth_token_get(context, token_hash)
data = {}
class FakeRateLimiter(application)

Bases: object

class FakeRequestContext(*args, **kwargs)

Bases: nova.context.RequestContext

class FakeRouter(ext_mgr=None)

Bases: nova.wsgi.Router

class FakeToken(**kwargs)

Bases: object

id_count = 0
class HTTPRequest(*args, **kwargs)

Bases: nova.api.openstack.wsgi.Request

classmethod blank(*args, **kwargs)
class TestRouter(controller)

Bases: nova.wsgi.Router

create_info_cache(nw_cache)
fake_instance_get(**kwargs)
fake_instance_get_all_by_filters(num_servers=5, **kwargs)
get_fake_uuid(token=0)
stub_instance(id, user_id=None, project_id=None, host=None, node=None, vm_state=None, task_state=None, reservation_id='', uuid='aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa', image_ref='10', flavor_id='1', name=None, key_name='', access_ipv4=None, access_ipv6=None, progress=0, auto_disk_config=False, display_name=None, include_fake_metadata=True, config_drive=None, power_state=None, nw_cache=None, metadata=None, security_groups=None, root_device_name=None, limit=None, marker=None)
class stub_out_compute_api_backup(stubs)

Bases: object

backup(context, instance, name, backup_type, rotation, extra_properties=None)
stub_out_compute_api_snapshot(stubs)
stub_out_glance(stubs)
stub_out_glanceclient_create(stubs, sent_to_glance)

We return the metadata sent to glance by modifying the sent_to_glance dict in place.

stub_out_instance_quota(stubs, allowed, quota, resource='instances')
stub_out_key_pair_funcs(stubs, have_key_pair=True)
stub_out_networking(stubs)
stub_out_nw_api(stubs, cls=None, private=None, publics=None)
stub_out_nw_api_get_floating_ips_by_fixed_address(stubs, func=None)
stub_out_nw_api_get_instance_nw_info(stubs, num_networks=1, func=None)
stub_out_rate_limiting(stubs)
stub_snapshot(id, **kwargs)
stub_snapshot_create(self, context, volume_id, name, description)
stub_snapshot_delete(self, context, snapshot)
stub_snapshot_get(self, context, snapshot_id)
stub_snapshot_get_all(self, context)
stub_volume(id, **kwargs)
stub_volume_create(self, context, size, name, description, snapshot, **param)
stub_volume_create_from_image(self, context, size, name, description, snapshot, volume_type, metadata, availability_zone)
stub_volume_delete(self, context, *args, **param)
stub_volume_get(self, context, volume_id)
stub_volume_get_all(context, search_opts=None)
stub_volume_get_all_by_project(self, context, search_opts=None)
stub_volume_get_notfound(self, context, volume_id)
stub_volume_update(self, context, *args, **param)
wsgi_app(inner_app_v2=None, fake_auth_context=None, use_no_auth=False, ext_mgr=None, init_only=None)

Previous topic

The nova.tests.api.openstack.compute.test_versions Module

Next topic

The nova.tests.api.openstack.test_common Module

This Page