fuel-main/test/cookbooks/test_glance.py
2012-08-14 13:02:56 +04:00

27 lines
851 B
Python

from . import CookbookTestCase
from openstack_common import OpenstackCommon
from devops.helpers import tcp_ping, wait
class TestGlanceRegistry(CookbookTestCase, OpenstackCommon):
cookbooks = ['chef-resource-groups', 'database', 'keystone', 'glance']
@classmethod
def setUpState(klass):
klass.setUpKeystone()
klass.setUpGlanceRegistry(reuse_cached=False)
def test_glance_registry_port_open(self):
assert tcp_ping(self.ip, self.glance_registry_port)
class TestGlanceApi(CookbookTestCase, OpenstackCommon):
cookbooks = ['chef-resource-groups', 'database', 'keystone', 'glance']
@classmethod
def setUpState(klass):
klass.setUpGlanceRegistry()
klass.setUpGlanceApi(reuse_cached=False)
def test_glance_api_port_open(self):
assert tcp_ping(self.ip, self.glance_api_port)