diff options
author | vrvarma <vv8305@att.com> | 2020-01-22 14:05:33 -0500 |
---|---|---|
committer | Lukasz Rajewski <lukasz.rajewski@orange.com> | 2020-01-24 14:20:40 +0000 |
commit | 0f8d7692d2aad99c68d5ee0c59b20a75724b1ada (patch) | |
tree | 0a0975df71e4bdeb329f725ca821a43d33db8704 /test/test_ConductorApiBuilder.py | |
parent | 533f2b3e9f9c2d2ca3ad3d9899ffba8a18645e4e (diff) |
Add passthrough attributes
Added passthrough attributes in placement request.
Current attributes HAS request section changed to
filtering_attributes and new passthrough attributes
added in HAS request - this one is read from vnf policy
passthroughAttributes section.
Change-Id: Ic1e9dcafb0aa0ce5c1b4ddcf35d034d457ac7d48
Signed-off-by: vrvarma <vv8305@att.com>
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Issue-ID: OPTFRA-611
Diffstat (limited to 'test/test_ConductorApiBuilder.py')
-rw-r--r-- | test/test_ConductorApiBuilder.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_ConductorApiBuilder.py b/test/test_ConductorApiBuilder.py index e69e954..07cb3bb 100644 --- a/test/test_ConductorApiBuilder.py +++ b/test/test_ConductorApiBuilder.py @@ -47,7 +47,7 @@ class TestConductorApiBuilder(unittest.TestCase): main_dir = self.main_dir request_json = self.request_json policies = self.policies - local_config = yaml.load(open(self.local_config_file)) + local_config = yaml.safe_load(open(self.local_config_file)) templ_string = conductor_api_builder(request_json, policies, local_config, self.conductor_api_template) templ_json = json.loads(templ_string) self.assertEqual(templ_json["name"], "yyy-yyy-yyyy") @@ -55,7 +55,7 @@ class TestConductorApiBuilder(unittest.TestCase): def test_conductor_api_call_builder_vfmod(self): request_json = self.request_vfmod_json policies = self.policies - local_config = yaml.load(open(self.local_config_file)) + local_config = yaml.safe_load(open(self.local_config_file)) templ_string = conductor_api_builder(request_json, policies, local_config, self.conductor_api_template) templ_json = json.loads(templ_string) self.assertEqual(templ_json, self.request_placement_vfmod_json) |