Merge "Fix router leak from L3AgentsExtRbacTest class"

This commit is contained in:
Zuul 2019-09-20 21:45:24 +00:00 committed by Gerrit Code Review
commit 8629ba5b60
1 changed files with 4 additions and 0 deletions

View File

@ -266,6 +266,10 @@ class L3AgentsExtRbacTest(base.BaseNetworkExtRbacTest):
super(L3AgentsExtRbacTest, cls).resource_setup()
name = data_utils.rand_name(cls.__name__ + '-Router')
cls.router = cls.ntp_client.create_router(name)['router']
cls.addClassResourceCleanup(
test_utils.call_and_ignore_notfound_exc,
cls.ntp_client.delete_router,
cls.router['id'])
@decorators.idempotent_id('5d2bbdbc-40a5-43d2-828a-84dc93bcd321')
@rbac_rule_validation.action(service="neutron",