Previous topic

The cinder.tests.runtime_flags Module

Next topic

The cinder.tests.scheduler.test_rpcapi Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Cinder 2011.2 docs or all OpenStack docs too.

The cinder.tests.scheduler.fakes Module

Fakes For Scheduler tests.

class FakeHostManager

Bases: cinder.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

get_host_list_from_db(context)
class FakeHostState(host, topic, attribute_dict)

Bases: cinder.scheduler.host_manager.HostState