diff options
| author | Ken Pepple <ken.pepple@gmail.com> | 2011-02-07 15:04:26 -0800 |
|---|---|---|
| committer | Ken Pepple <ken.pepple@gmail.com> | 2011-02-07 15:04:26 -0800 |
| commit | bb2a379e2827ceccc5b46b0a9936e6dcedc6499e (patch) | |
| tree | 3e83d40af718d4581500c01a18e7e5f885fb47ec /nova/test.py | |
| parent | 346087804dd923bcaa0faf433dc1f83a2f193815 (diff) | |
added INSTANCE_TYPES to test for compatibility with current tests
Diffstat (limited to 'nova/test.py')
| -rw-r--r-- | nova/test.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nova/test.py b/nova/test.py index 881baccd5..cd049f007 100644 --- a/nova/test.py +++ b/nova/test.py @@ -44,6 +44,14 @@ flags.DEFINE_bool('fake_tests', True, 'should we use everything for testing') +INSTANCE_TYPES = { + 'm1.tiny': dict(memory_mb=512, vcpus=1, local_gb=0, flavorid=1), + 'm1.small': dict(memory_mb=2048, vcpus=1, local_gb=20, flavorid=2), + 'm1.medium': dict(memory_mb=4096, vcpus=2, local_gb=40, flavorid=3), + 'm1.large': dict(memory_mb=8192, vcpus=4, local_gb=80, flavorid=4), + 'm1.xlarge': dict(memory_mb=16384, vcpus=8, local_gb=160, flavorid=5)} + + def skip_if_fake(func): """Decorator that skips a test if running in fake mode""" def _skipper(*args, **kw): |
