expect = "%s_net_fqdn" % network_role
for vn_ref in virtual_network_refs:
param = heat.nested_get(vn_ref, "get_param")
+
+ # skip if not connecting via get_param
+ if not param:
+ return None
+
if param == expect:
param_type = heat.nested_get(heat.parameters, param, "type")
if param_type != "string":
@validates("R-02164")
-def test_contrail_fqdn(heat_template):
+def test_contrail_fqdn(yaml_file):
"""
When a VNF's Heat Orchestration Template's Contrail resource
has a property that
* **MUST** follow the format ``{network-role}_net_fqdn``
* **MUST** be declared as type ``string``
"""
- run_test(heat_template, validate_virtual_network_refs)
+ run_test(yaml_file, validate_virtual_network_refs)