[test] Added test for RabbitMQ.

This commit is contained in:
Andrey Danin 2012-08-08 21:44:02 +04:00
parent 1ad1650505
commit ef743f470d
3 changed files with 19 additions and 2 deletions

2
cooks

@ -1 +1 @@
Subproject commit 0066bbdef71eb195de96fc2ebdd1d51697fd9616
Subproject commit 6d9b3ef7d7e0854a57f36a4f418fdf65c269f3c4

View File

@ -224,4 +224,3 @@ cookbook_path "/opt/os-cookbooks"
def setUp(self):
self.node.restore_snapshot(self.__class__.__name__)
self.remote.reconnect()

View File

@ -0,0 +1,18 @@
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.'