[VVP] Allow AZ CDL params in nested templates 18/79718/1
authorLovett, Trevor <trevor.lovett@att.com>
Tue, 5 Mar 2019 15:28:12 +0000 (09:28 -0600)
committerLovett, Trevor (tl2972) <tl2972@att.com>
Tue, 5 Mar 2019 15:34:29 +0000 (09:34 -0600)
Issue-ID: VVP-183

Change-Id: Iad69ca26eb54a2200186ddf1b8d410e1248d1bcd
Signed-off-by: Lovett, Trevor (tl2972) <tl2972@att.com>
ice_validator/tests/test_server_parameters.py

index c72080c..46aa7bf 100644 (file)
@@ -40,6 +40,7 @@
 """
 import pytest
 from tests import cached_yaml as yaml
+from tests.parametrizers import file_is_a_nested_template
 
 from .helpers import validates
 
@@ -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):
+    if file_is_a_nested_template(yaml_file):
+        pytest.skip("Not applicable in nested templates")
     check_parameter_type(yaml_file, "availability_zone_", "string")