Extend haproxy test case

This commit is contained in:
Przemyslaw Kaminski 2015-04-20 19:41:28 +02:00
parent d24614a788
commit 3cbbf457a1

View File

@ -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():