From 069ac2d71134ee420e7c989cc2a3834172dab87b Mon Sep 17 00:00:00 2001 From: Aaron Rosen Date: Tue, 15 Dec 2015 18:51:25 -0800 Subject: [PATCH] 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 --- tests/ci/osresources.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/ci/osresources.py b/tests/ci/osresources.py index d19a8d89a3..2c1903d632 100755 --- a/tests/ci/osresources.py +++ b/tests/ci/osresources.py @@ -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()