Fakes For Scheduler tests.
-
class FakeComputeAPI
Bases: object
-
create_db_entry_for_new_instance(*args, **kwargs)
-
class FakeFilterScheduler(*args, **kwargs)
Bases: nova.scheduler.filter_scheduler.FilterScheduler
-
class FakeHostManager
Bases: nova.scheduler.host_manager.HostManager
host1: free_ram_mb=1024-512-512=0, free_disk_gb=1024-512-512=0
host2: free_ram_mb=2048-512=1536 free_disk_gb=2048-512=1536
host3: free_ram_mb=4096-1024=3072 free_disk_gb=4096-1024=3072
host4: free_ram_mb=8192 free_disk_gb=8192
-
class FakeHostState(host, node, attribute_dict)
Bases: nova.scheduler.host_manager.HostState
-
class FakeInstance(context=None, params=None, type_name='m1.tiny')
Bases: object
-
mox_host_manager_db_calls(mock, context)