diff options
author | anushadasari <danush10@in.ibm.com> | 2019-11-21 13:31:49 +0530 |
---|---|---|
committer | anushadasari <danush10@in.ibm.com> | 2019-11-21 13:32:00 +0530 |
commit | 36d53f7d93882052bcc39748fcb06fae9b51a1a1 (patch) | |
tree | d1eb49b97ace567611871b4d813e45a8b884dd6a | |
parent | 1d281ce111a76c2b056bcaa572c1e929c90237cf (diff) |
Use the get_param method to simplify the extraction of the parameter name for subnet. It handles more cases, and will return none if get_param is not used
Issue-ID: VVP-289
Change-Id: I3d5e889489c1a2107c2f3d1702f4d9000905924d
Signed-off-by: anushadasari <danush10@in.ibm.com>
-rw-r--r-- | ice_validator/tests/test_neutron_port_fixed_ips_subnet.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ice_validator/tests/test_neutron_port_fixed_ips_subnet.py b/ice_validator/tests/test_neutron_port_fixed_ips_subnet.py index 8c15711..939bf5b 100644 --- a/ice_validator/tests/test_neutron_port_fixed_ips_subnet.py +++ b/ice_validator/tests/test_neutron_port_fixed_ips_subnet.py @@ -43,7 +43,7 @@ import pytest from tests.utils.network_roles import get_network_type_from_port from tests.structures import Heat -from tests.helpers import validates, load_yaml, get_base_template_from_yaml_files +from tests.helpers import validates, load_yaml, get_base_template_from_yaml_files, get_param from tests.utils.nested_files import get_nested_files from .utils.ports import check_parameter_format from tests.structures import NeutronPortProcessor @@ -128,7 +128,7 @@ def test_neutron_port_internal_fixed_ips_subnet_in_base(yaml_files): if "get_param" not in subnet: continue - param = subnet.get("get_param") + param = get_param(subnet) if param not in base_outputs: errors.append( ( |