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
change if bad to assert not bad, message
[vvp/validation-scripts.git]
/
ice_validator
/
tests
/
test_server_parameters.py
diff --git
a/ice_validator/tests/test_server_parameters.py
b/ice_validator/tests/test_server_parameters.py
index
c72080c
..
b1adce2
100644
(file)
--- a/
ice_validator/tests/test_server_parameters.py
+++ b/
ice_validator/tests/test_server_parameters.py
@@
-41,7
+41,8
@@
import pytest
from tests import cached_yaml as yaml
import pytest
from tests import cached_yaml as yaml
-from .helpers import validates
+from tests.helpers import validates
+from tests.utils.nested_files import file_is_a_nested_template
VERSION = "1.1.0"
VERSION = "1.1.0"
@@
-138,6
+139,8
@@
def check_server_parameter_name(heat_template, parameter, parameter_name):
@validates("R-23311")
def test_availability_zone_parameter_type(yaml_file):
@validates("R-23311")
def test_availability_zone_parameter_type(yaml_file):
+ if file_is_a_nested_template(yaml_file):
+ pytest.skip("Not applicable in nested templates")
check_parameter_type(yaml_file, "availability_zone_", "string")
check_parameter_type(yaml_file, "availability_zone_", "string")