The nova.tests.test_quota Module

class BaseResourceTestCase(*args, **kwargs)

Bases: nova.test.TestCase

test_no_flag()
test_quota_no_project_no_class()
test_quota_no_project_with_class()
test_quota_override_project_with_class()
test_quota_with_project_no_class()
test_quota_with_project_override_class()
test_quota_with_project_with_class()
test_with_flag()
test_with_flag_no_quota()
class DbQuotaDriverTestCase(*args, **kwargs)

Bases: nova.test.TestCase

setUp()
test_get_class_quotas()
test_get_class_quotas_no_defaults()
test_get_defaults()
test_get_project_quotas()
test_get_project_quotas_alt_context_no_class()
test_get_project_quotas_alt_context_with_class()
test_get_project_quotas_no_defaults()
test_get_project_quotas_no_usages()
test_get_quotas_has_sync()
test_get_quotas_has_sync_no_sync_resource()
test_get_quotas_has_sync_unknown()
test_get_quotas_no_sync()
test_get_quotas_no_sync_has_sync_resource()
test_get_quotas_no_sync_unknown()
test_limit_check()
test_limit_check_over()
test_limit_check_under()
test_limit_check_unlimited()
test_reserve_bad_expire()
test_reserve_datetime_expire()
test_reserve_default_expire()
test_reserve_int_expire()
test_reserve_max_age()
test_reserve_timedelta_expire()
test_reserve_until_refresh()
test_usage_reset()
class FakeContext(project_id, quota_class)

Bases: object

elevated()
class FakeDriver(by_project=None, by_class=None, reservations=None)

Bases: object

commit(context, reservations, project_id=None)
destroy_all_by_project(context, project_id)
expire(context)
get_by_class(context, quota_class, resource)
get_by_project(context, project_id, resource)
get_class_quotas(context, resources, quota_class, defaults=True)
get_defaults(context, resources)
get_project_quotas(context, resources, project_id, quota_class=None, defaults=True, usages=True)
limit_check(context, resources, values, project_id=None)
reserve(context, resources, deltas, expire=None, project_id=None)
rollback(context, reservations, project_id=None)
usage_reset(context, resources)
class FakeSession

Bases: object

begin()
class FakeUsage(**kwargs)

Bases: nova.db.sqlalchemy.models.QuotaUsage

created_at
deleted
deleted_at
id
in_use
project_id
reserved
resource
save(*args, **kwargs)
until_refresh
updated_at
class NoopQuotaDriverTestCase(*args, **kwargs)

Bases: nova.test.TestCase

setUp()
test_get_class_quotas()
test_get_class_quotas_no_defaults()
test_get_defaults()
test_get_project_quotas()
test_get_project_quotas_no_defaults()
test_get_project_quotas_no_usages()
class QuotaEngineTestCase(*args, **kwargs)

Bases: nova.test.TestCase

test_commit()
test_count()
test_count_no_resource()
test_count_wrong_resource()
test_destroy_all_by_project()
test_expire()
test_get_by_class()
test_get_by_project()
test_get_class_quotas()
test_get_defaults()
test_get_project_quotas()
test_init()
test_init_override_obj()
test_init_override_string()
test_limit_check()
test_register_resource()
test_register_resources()
test_reserve()
test_resources()
test_rollback()
test_sync_multi()
test_sync_predeclared()
test_usage_reset()
class QuotaIntegrationTestCase(*args, **kwargs)

Bases: nova.test.TestCase

setUp()
tearDown()
test_auto_assigned()
test_max_injected_file_content_bytes()
test_max_injected_file_path_bytes()
test_max_injected_files()
test_no_injected_files()
test_reservation_expire()
test_too_many_addresses()
test_too_many_cores()
test_too_many_injected_file_content_bytes()
test_too_many_injected_file_path_bytes()
test_too_many_injected_files()
test_too_many_instances()
test_too_many_metadata_items()
class QuotaReserveSqlAlchemyTestCase(*args, **kwargs)

Bases: nova.test.TestCase

compare_reservation(reservations, expected)
compare_usage(usage_dict, expected)
init_usage(project_id, resource, in_use, reserved, until_refresh=None, created_at=None, updated_at=None)
setUp()
test_quota_reserve_create_usages()
test_quota_reserve_max_age()
test_quota_reserve_negative_in_use()
test_quota_reserve_no_refresh()
test_quota_reserve_overs()
test_quota_reserve_reduction()
test_quota_reserve_unders()
test_quota_reserve_until_refresh()

Previous topic

The nova.tests.test_powervm Module

Next topic

The nova.tests.test_safeutils Module

This Page