diff options
Diffstat (limited to 'ice_validator/tests/fixtures')
7 files changed, 112 insertions, 0 deletions
diff --git a/ice_validator/tests/fixtures/test_valid_heat/fail/fail.yaml b/ice_validator/tests/fixtures/test_valid_heat/fail/fail.yaml new file mode 100644 index 0000000..e28fcd2 --- /dev/null +++ b/ice_validator/tests/fixtures/test_valid_heat/fail/fail.yaml @@ -0,0 +1,16 @@ +heat_template_version: 2014-10-16 + +description: This is a test heat template + +parameters: + + testparam: + type: string + description: This is a test parameter + +resources: + + test_resource: + type: OS::BAD::RandomString + properties: + length: { get_param: testparam }
\ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_valid_heat/fail/fail1.yaml b/ice_validator/tests/fixtures/test_valid_heat/fail/fail1.yaml new file mode 100644 index 0000000..5606308 --- /dev/null +++ b/ice_validator/tests/fixtures/test_valid_heat/fail/fail1.yaml @@ -0,0 +1,16 @@ +heat_template_version: 2014-10-16 + +description: This is a test heat template + +parameters: + + testparam: + type: string + description: This is a test parameter + +resources: + + test_resource: + type: OS::Heat::RandomString + properties: + notprop: { get_param: testparam }
\ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_valid_heat/fail/fail2.yaml b/ice_validator/tests/fixtures/test_valid_heat/fail/fail2.yaml new file mode 100644 index 0000000..742f5c8 --- /dev/null +++ b/ice_validator/tests/fixtures/test_valid_heat/fail/fail2.yaml @@ -0,0 +1,12 @@ +heat_template_version: 2014-10-16 + +description: This is a test heat template + +parameters: + + testparam: + type: string + description: This is a test parameter + + +# no resources
\ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_valid_heat/fail/fail3.yaml b/ice_validator/tests/fixtures/test_valid_heat/fail/fail3.yaml new file mode 100644 index 0000000..f8c5446 --- /dev/null +++ b/ice_validator/tests/fixtures/test_valid_heat/fail/fail3.yaml @@ -0,0 +1,20 @@ +heat_template_version: 2014-10-16 + +description: This is a test heat template + +parameters: + + testparam: + type: string + description: This is a test parameter + +resources: + + test_resource: + type: OS::Heat::RandomString + properties: + length: { get_param: testparam } + +outputs: + badoutput: + value: { get_attr: [test_resource, notanattr, 0] }
\ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_valid_heat/fail/fail4.yaml b/ice_validator/tests/fixtures/test_valid_heat/fail/fail4.yaml new file mode 100644 index 0000000..5855817 --- /dev/null +++ b/ice_validator/tests/fixtures/test_valid_heat/fail/fail4.yaml @@ -0,0 +1,16 @@ +heat_template_version: 2014-10-16 + +description: This is a test heat template + +parameters: + + testparam: + type: string + description: This is a test parameter + +resources: + + test_resource: + type: nestedbad.yaml + properties: + wrongprop: { get_param: testparam }
\ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_valid_heat/fail/nestedbad.yaml b/ice_validator/tests/fixtures/test_valid_heat/fail/nestedbad.yaml new file mode 100644 index 0000000..3a550ec --- /dev/null +++ b/ice_validator/tests/fixtures/test_valid_heat/fail/nestedbad.yaml @@ -0,0 +1,16 @@ +heat_template_version: 2014-10-16 + +description: This is a test heat template + +parameters: + + testparam: + type: string + description: This is a test parameter + +resources: + + test_resource: + type: OS::Nova::Server + properties: + notaprop: { get_param: testparam } diff --git a/ice_validator/tests/fixtures/test_valid_heat/pass/pass.yaml b/ice_validator/tests/fixtures/test_valid_heat/pass/pass.yaml new file mode 100644 index 0000000..c2fdd95 --- /dev/null +++ b/ice_validator/tests/fixtures/test_valid_heat/pass/pass.yaml @@ -0,0 +1,16 @@ +heat_template_version: 2014-10-16 + +description: This is a test heat template + +parameters: + + testparam: + type: string + description: This is a test parameter + +resources: + + test_resource: + type: OS::Heat::RandomString + properties: + length: { get_param: testparam }
\ No newline at end of file |