Code Review
/
vvp
/
validation-scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[VVP] Allow AZ CDL params in nested templates
[vvp/validation-scripts.git]
/
ice_validator
/
tests
/
test_network_format.py
diff --git
a/ice_validator/tests/test_network_format.py
b/ice_validator/tests/test_network_format.py
index
514e83e
..
9d3062a
100644
(file)
--- a/
ice_validator/tests/test_network_format.py
+++ b/
ice_validator/tests/test_network_format.py
@@
-52,12
+52,12
@@
NETWORK_RESOURCE_TYPES = ["OS::Neutron::Net", "OS::ContrailV2::VirtualNetwork"]
@validates("R-62983", "R-86182")
@validates("R-62983", "R-86182")
-def test_network_format(
heat_templat
e):
+def test_network_format(
yaml_fil
e):
"""
Make sure all network properties use the allowed naming
conventions
"""
"""
Make sure all network properties use the allowed naming
conventions
"""
- with open(
heat_templat
e) as fh:
+ with open(
yaml_fil
e) as fh:
yml = yaml.load(fh)
# skip if resources are not defined
yml = yaml.load(fh)
# skip if resources are not defined
@@
-118,7
+118,7
@@
def test_network_resource_id_format(yaml_file):
assert not set(invalid_networks), (
"Heat templates must only create internal networks "
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))
)
"{}".format(", ".join(invalid_networks))
)