T1 LR HA Relocation P0 testcase automation.

Change-Id: I0939655e9dbb5aca453589c4864f4e7b15a41d7d
This commit is contained in:
Nilesh Lokhande 2019-04-01 11:56:13 +00:00
parent e9e66c2531
commit a1bfeffefc
1 changed files with 16 additions and 0 deletions

View File

@ -119,3 +119,19 @@ class NSXv3RoutersTest(base.BaseAdminNetworkTest):
for router in list_body.get('router', []):
if router['id'] == router_id:
self.routers_client.delete_router(router_id)
@decorators.attr(type='nsxv3')
@decorators.idempotent_id('6f49b69c-0830-4c83-b1f8-5953e5bfeea5')
def test_deploy_router_ha_with_relocation_enabled(self):
# Check Standby relocation is enabled on backend after T1 Router got
# deployed.
router_name = data_utils.rand_name('router-')
body = self.create_router(
router_name=router_name, admin_state_up=True,
external_network_id=CONF.network.public_network_id)
nsx_router = self.nsx.get_logical_router(body['name'], body['id'])
self.assertEqual(body['name'], router_name)
self.assertIsNotNone(nsx_router)
self.assertEqual(
nsx_router.get('allocation_profile').get(
'enable_standby_relocation'), True)