tests: multiple apidir locations

To support testing of external plugins, add support to the test framework and PAPI
for specifying a list of locations to look for api.json files.

Type: improvement
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: I128a306e3c091dc8ef994801b1470b82d2f4595d
Signed-off-by: Ole Troan <ot@cisco.com>
This commit is contained in:
Ole Troan
2022-12-01 11:22:06 +01:00
committed by Andrew Yourtchenko
parent d7413835e1
commit 37157dad51
4 changed files with 21 additions and 3 deletions
+1 -1
View File
@@ -238,7 +238,7 @@ class VppPapiProvider(object):
# install_dir is a class attribute. We need to set it before
# calling the constructor.
VPPApiClient.apidir = config.vpp_install_dir
VPPApiClient.apidir = config.extern_apidir + [config.vpp_install_dir]
self.vpp = VPPApiClient(
logger=test_class.logger,