Extend haproxy test case
This commit is contained in:
parent
d24614a788
commit
3cbbf457a1
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user