~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to nova/tests/scheduler/fakes.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-08-16 14:04:11 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: package-import@ubuntu.com-20120816140411-0mr4n241wmk30t9l
Tags: upstream-2012.2~f3
ImportĀ upstreamĀ versionĀ 2012.2~f3

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
            },
87
87
        }
88
88
 
89
 
    def get_host_list_from_db(self, context):
90
 
        return [
91
 
            ('host1', dict(free_disk_gb=1024, free_ram_mb=1024)),
92
 
            ('host2', dict(free_disk_gb=2048, free_ram_mb=2048)),
93
 
            ('host3', dict(free_disk_gb=4096, free_ram_mb=4096)),
94
 
            ('host4', dict(free_disk_gb=8192, free_ram_mb=8192)),
95
 
        ]
96
 
 
97
89
 
98
90
class FakeHostState(host_manager.HostState):
99
91
    def __init__(self, host, topic, attribute_dict):