Fix nsx-p admin utility file location

Change-Id: Iae5aab222d7effb60a86e2f7097309705ebc02a3
This commit is contained in:
asarfaty 2020-12-07 10:02:11 +02:00
parent 59fc7fa663
commit 3ff7919862
3 changed files with 4 additions and 1 deletions

View File

@ -99,6 +99,7 @@ commands =
stestr run {posargs} stestr run {posargs}
whitelist_externals = whitelist_externals =
stestr stestr
setenv = EDITOR=vi
[testenv:py36-dev] [testenv:py36-dev]
basepython = python3.6 basepython = python3.6

View File

@ -23,7 +23,8 @@ from vmware_nsx.shell import resources as shell
@admin_utils.output_header @admin_utils.output_header
def cleanup_db_mappings(resource, event, trigger, **kwargs): def cleanup_db_mappings(resource, event, trigger, **kwargs):
"""Delete all entries from nsx-t mapping tables in DB""" """Delete all entries from nsx-t mapping tables in DB"""
return migration.cleanup_db_mappings(resource, event, trigger, **kwargs) return migration.MP2Policy_cleanup_db_mappings(
resource, event, trigger, **kwargs)
registry.subscribe(cleanup_db_mappings, registry.subscribe(cleanup_db_mappings,

View File

@ -370,6 +370,7 @@ class TestNsxpAdminUtils(AbstractTestAdminUtils,
return 'nsxp' return 'nsxp'
def _init_mock_plugin(self): def _init_mock_plugin(self):
super(TestNsxpAdminUtils, self)._init_mock_plugin()
self._plugin = nsxp_utils.NsxPolicyPluginWrapper() self._plugin = nsxp_utils.NsxPolicyPluginWrapper()
def test_nsxp_resources(self): def test_nsxp_resources(self):