specify required services for all resources

The ovn rally tests were failing because we don't have cinder deployed. This
patch should fix this.

Change-Id: If9132a8fa423059b75a888da716340ecc0fada45
This commit is contained in:
Aaron Rosen 2015-12-15 18:51:25 -08:00
parent 0d191c26e7
commit 069ac2d711

View File

@ -72,6 +72,8 @@ class ResourceManager(object):
class Keystone(ResourceManager):
REQUIRED_SERVICE = consts.Service.KEYSTONE
def list_users(self):
return self.client.users.list()
@ -84,6 +86,8 @@ class Keystone(ResourceManager):
class Nova(ResourceManager):
REQUIRED_SERVICE = consts.Service.NOVA
def list_flavors(self):
return self.client.flavors.list()
@ -158,6 +162,8 @@ class Neutron(ResourceManager):
class Glance(ResourceManager):
REQUIRED_SERVICE = consts.Service.GLANCE
def list_images(self):
return self.client.images.list()
@ -175,6 +181,8 @@ class Heat(ResourceManager):
class Cinder(ResourceManager):
REQUIRED_SERVICE = consts.Service.CINDER
def list_availability_zones(self):
return self.client.availability_zones.list()