diff --git a/cooks b/cooks index 0066bbdef..6d9b3ef7d 160000 --- a/cooks +++ b/cooks @@ -1 +1 @@ -Subproject commit 0066bbdef71eb195de96fc2ebdd1d51697fd9616 +Subproject commit 6d9b3ef7d7e0854a57f36a4f418fdf65c269f3c4 diff --git a/test/cookbooks/__init__.py b/test/cookbooks/__init__.py index c0ee9e42d..9545fe8be 100644 --- a/test/cookbooks/__init__.py +++ b/test/cookbooks/__init__.py @@ -224,4 +224,3 @@ cookbook_path "/opt/os-cookbooks" def setUp(self): self.node.restore_snapshot(self.__class__.__name__) self.remote.reconnect() - diff --git a/test/cookbooks/test_rabbitmq.py b/test/cookbooks/test_rabbitmq.py new file mode 100644 index 000000000..0f672f4aa --- /dev/null +++ b/test/cookbooks/test_rabbitmq.py @@ -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.'