#
# ============LICENSE_END============================================
#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
#
import pytest
@validates("R-62983", "R-86182")
-def test_network_format(heat_template):
+def test_network_format(yaml_file):
"""
Make sure all network properties use the allowed naming
conventions
"""
- with open(heat_template) as fh:
+ with open(yaml_file) as fh:
yml = yaml.load(fh)
# skip if resources are not defined
assert not set(invalid_networks), (
"Heat templates must only create internal networks "
- "and follow format int_{network-role}_network"
+ "and follow format int_{{network-role}}_network"
"{}".format(", ".join(invalid_networks))
)