diff --git a/haproxy_deployment/haproxy_deployment.py b/haproxy_deployment/haproxy_deployment.py index c7843889..838a056d 100644 --- a/haproxy_deployment/haproxy_deployment.py +++ b/haproxy_deployment/haproxy_deployment.py @@ -50,9 +50,18 @@ class TestHAProxyDeployment(unittest.TestCase): def test_haproxy(self): node5 = db.get_resource('node5') + haproxy_keystone_config = db.get_resource('haproxy_keystone_config') + haproxy_nova_config = db.get_resource('haproxy_nova_config') haproxy = db.get_resource('haproxy') self.assertEqual(node5.args['ip'], haproxy.args['ip']) + self.assertItemsEqual( + haproxy.args['configs'], + { + 'haproxy_keystone_config': haproxy_keystone_config.args['servers'], + 'haproxy_nova_config': haproxy_nova_config.args['servers'], + } + ) def main():