Merge "[Fullstack] use common assert for ncat connection"
This commit is contained in:
commit
e444d543ed
@ -251,17 +251,15 @@ class TestSecurityGroupsSameNetwork(BaseSecurityGroupsSameNetworkTest):
|
|||||||
|
|
||||||
vms[4].block_until_boot()
|
vms[4].block_until_boot()
|
||||||
|
|
||||||
netcat = net_helpers.NetcatTester(vms[4].namespace,
|
self.assert_connection(
|
||||||
vms[0].namespace, vms[0].ip, 3355,
|
vms[4].namespace, vms[0].namespace, vms[0].ip, 3355,
|
||||||
net_helpers.NetcatTester.TCP)
|
net_helpers.NetcatTester.TCP)
|
||||||
|
|
||||||
self.addCleanup(netcat.stop_processes)
|
|
||||||
self.assertTrue(netcat.test_connectivity())
|
|
||||||
|
|
||||||
self.client.delete_security_group_rule(rule2['id'])
|
self.client.delete_security_group_rule(rule2['id'])
|
||||||
common_utils.wait_until_true(lambda: netcat.test_no_connectivity(),
|
|
||||||
sleep=8)
|
self.assert_no_connection(
|
||||||
netcat.stop_processes()
|
vms[4].namespace, vms[0].namespace, vms[0].ip, 3355,
|
||||||
|
net_helpers.NetcatTester.TCP)
|
||||||
|
|
||||||
# 8. check if multiple overlapping remote rules work
|
# 8. check if multiple overlapping remote rules work
|
||||||
self.safe_client.create_security_group_rule(
|
self.safe_client.create_security_group_rule(
|
||||||
|
Loading…
Reference in New Issue
Block a user