The nova.tests.api.openstack.compute.contrib.test_flavor_access Module

class FakeRequest

Bases: object

environ = {'nova.context': <nova.context.RequestContext object at 0xe23b510>}
class FlavorAccessSerializerTest(*args, **kwargs)

Bases: nova.test.TestCase

test_serializer()
test_serializer_empty()
class FlavorAccessTest(*args, **kwargs)

Bases: nova.test.TestCase

setUp()
test_add_tenant_access()
test_add_tenant_access_with_already_added_access()
test_list_flavor_access_private()
test_list_flavor_access_public()
test_list_flavor_with_admin_default_proj1()
test_list_flavor_with_admin_default_proj2()
test_list_flavor_with_admin_ispublic_false()
test_list_flavor_with_admin_ispublic_false_proj2()
test_list_flavor_with_admin_ispublic_none()
test_list_flavor_with_admin_ispublic_true()
test_list_flavor_with_no_admin_default()
test_list_flavor_with_no_admin_ispublic_false()
test_list_flavor_with_no_admin_ispublic_none()
test_list_flavor_with_no_admin_ispublic_true()
test_remove_tenant_access_with_bad_access()
fake_get_all_types(context, inactive=0, filters=None)
fake_get_instance_type_access_by_flavor_id(flavorid)
fake_get_instance_type_by_flavor_id(flavorid, ctxt=None)
generate_instance_type(flavorid, ispublic)

Previous topic

The nova.tests.api.openstack.compute.contrib.test_fixed_ips Module

Next topic

The nova.tests.api.openstack.compute.contrib.test_flavor_disabled Module

This Page