[test] Added test for RabbitMQ.
This commit is contained in:
parent
1ad1650505
commit
ef743f470d
2
cooks
2
cooks
@ -1 +1 @@
|
||||
Subproject commit 0066bbdef71eb195de96fc2ebdd1d51697fd9616
|
||||
Subproject commit 6d9b3ef7d7e0854a57f36a4f418fdf65c269f3c4
|
@ -224,4 +224,3 @@ cookbook_path "/opt/os-cookbooks"
|
||||
def setUp(self):
|
||||
self.node.restore_snapshot(self.__class__.__name__)
|
||||
self.remote.reconnect()
|
||||
|
||||
|
18
test/cookbooks/test_rabbitmq.py
Normal file
18
test/cookbooks/test_rabbitmq.py
Normal 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.'
|
Loading…
Reference in New Issue
Block a user