fuel-main/test/cookbooks/test_rabbitmq.py
2012-08-08 21:44:02 +04:00

19 lines
487 B
Python

from . import CookbookTestCase
from devops.helpers import tcp_ping
class TestRabbitMQ(CookbookTestCase):
cookbooks = ['rabbitmq']
rabbitmq_port = 5672
@classmethod
def setUpState(klass):
klass.chef_solo({
'recipes': ['rabbitmq'],
'rabbitmq': {
'port': klass.rabbitmq_port
}
})
def test_rabbitmq_deploy(self):
assert tcp_ping(self.ip, self.rabbitmq_port), 'No conection to RabbitMQ port.'