Skip to content

Commit c22e99c

Browse files
authored
test: check more connectivity in test_privategw_acl.py (#3861)
1 parent 70daee9 commit c22e99c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

test/integration/smoke/test_privategw_acl.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,12 +373,14 @@ def performVPCTests(self, vpc_off, restart_with_cleanup = False):
373373
nat_rule_2 = self.create_natrule(vpc_2, vm2, public_ip_2, network_2)
374374

375375
self.check_pvt_gw_connectivity(vm1, public_ip_1, [vm2.nic[0].ipaddress, vm1.nic[0].ipaddress])
376+
self.check_pvt_gw_connectivity(vm2, public_ip_2, [vm2.nic[0].ipaddress, vm1.nic[0].ipaddress])
376377

377378
if restart_with_cleanup:
378379
self.reboot_vpc_with_cleanup(vpc_1, cleanup = restart_with_cleanup)
379380
self.reboot_vpc_with_cleanup(vpc_2, cleanup = restart_with_cleanup)
380381

381382
self.check_pvt_gw_connectivity(vm1, public_ip_1, [vm2.nic[0].ipaddress, vm1.nic[0].ipaddress])
383+
self.check_pvt_gw_connectivity(vm2, public_ip_2, [vm2.nic[0].ipaddress, vm1.nic[0].ipaddress])
382384

383385
def performPrivateGWInterfaceTests(self, vpc_off):
384386
self.logger.debug("Creating VPCs with offering ID %s" % vpc_off.id)
@@ -438,25 +440,32 @@ def performPrivateGWInterfaceTests(self, vpc_off):
438440
public_ip_1 = self.acquire_publicip(vpc_1, network_1)
439441
nat_rule_1 = self.create_natrule(vpc_1, vm1, public_ip_1, network_1)
440442

443+
public_ip_2 = self.acquire_publicip(vpc_2, network_2)
444+
nat_rule_2 = self.create_natrule(vpc_2, vm2, public_ip_2, network_2)
445+
441446
self.check_private_gateway_interfaces()
442447

443448
self.check_pvt_gw_connectivity(vm1, public_ip_1, [vm2.nic[0].ipaddress, vm3.nic[0].ipaddress, vm4.nic[0].ipaddress])
449+
self.check_pvt_gw_connectivity(vm2, public_ip_2, [vm2.nic[0].ipaddress, vm3.nic[0].ipaddress, vm4.nic[0].ipaddress])
444450

445451
self.reboot_vpc_with_cleanup(vpc_1, cleanup = True)
446452
self.check_routers_state()
447453

448454
self.check_pvt_gw_connectivity(vm1, public_ip_1, [vm2.nic[0].ipaddress, vm3.nic[0].ipaddress, vm4.nic[0].ipaddress])
455+
self.check_pvt_gw_connectivity(vm2, public_ip_2, [vm2.nic[0].ipaddress, vm3.nic[0].ipaddress, vm4.nic[0].ipaddress])
449456

450457
self.stop_router_by_type("MASTER")
451458
self.check_routers_state()
452459

453460
self.check_private_gateway_interfaces()
454461
self.check_pvt_gw_connectivity(vm1, public_ip_1, [vm2.nic[0].ipaddress, vm3.nic[0].ipaddress, vm4.nic[0].ipaddress])
462+
self.check_pvt_gw_connectivity(vm2, public_ip_2, [vm2.nic[0].ipaddress, vm3.nic[0].ipaddress, vm4.nic[0].ipaddress])
455463

456464
self.start_routers()
457465
self.check_routers_state()
458466
self.check_private_gateway_interfaces()
459467
self.check_pvt_gw_connectivity(vm1, public_ip_1, [vm2.nic[0].ipaddress, vm3.nic[0].ipaddress, vm4.nic[0].ipaddress])
468+
self.check_pvt_gw_connectivity(vm2, public_ip_2, [vm2.nic[0].ipaddress, vm3.nic[0].ipaddress, vm4.nic[0].ipaddress])
460469

461470
self.deletePvtGw(privateGw_1.id)
462471
self.check_private_gateway_interfaces(status_to_check = "DOWN")

0 commit comments

Comments
 (0)