Enable running tests against RAX and IBM
Rackspace requires performance flavors be used for boot from volume. IBM does not have Ubuntu or Cirros images in the cloud. Change-Id: I95c15d92072311eb4aa0a4b7f551a95c4dc6e082
This commit is contained in:
parent
2c753699ac
commit
372edf44ef
@ -23,6 +23,13 @@ import operator
|
||||
|
||||
def pick_flavor(flavors):
|
||||
"""Given a flavor list pick the smallest one."""
|
||||
# Enable running functional tests against rax - which requires
|
||||
# performance flavors be used for boot from volume
|
||||
for flavor in sorted(
|
||||
flavors,
|
||||
key=operator.attrgetter('ram')):
|
||||
if 'performance' in flavor.name:
|
||||
return flavor
|
||||
for flavor in sorted(
|
||||
flavors,
|
||||
key=operator.attrgetter('ram')):
|
||||
@ -36,3 +43,6 @@ def pick_image(images):
|
||||
for image in images:
|
||||
if image.name.lower().startswith('ubuntu'):
|
||||
return image
|
||||
for image in images:
|
||||
if image.name.lower().startswith('centos'):
|
||||
return image
|
||||
|
Loading…
x
Reference in New Issue
Block a user