From 62a48cfb8f633a5b8374d975174999d04c3bdcee Mon Sep 17 00:00:00 2001 From: "stark, steven" Date: Thu, 23 May 2019 13:50:25 -0700 Subject: [VVP] adding heat template-validate test Issue-ID: VVP-218 Signed-off-by: stark, steven Change-Id: If88f9b4b620aaffe61ead3b6f7d5c74dcfd14cba --- .../tests/fixtures/test_valid_heat/fail/fail.yaml | 16 ++++++++++++++++ .../tests/fixtures/test_valid_heat/fail/fail1.yaml | 16 ++++++++++++++++ .../tests/fixtures/test_valid_heat/fail/fail2.yaml | 12 ++++++++++++ .../tests/fixtures/test_valid_heat/fail/fail3.yaml | 20 ++++++++++++++++++++ .../tests/fixtures/test_valid_heat/fail/fail4.yaml | 16 ++++++++++++++++ .../fixtures/test_valid_heat/fail/nestedbad.yaml | 16 ++++++++++++++++ .../tests/fixtures/test_valid_heat/pass/pass.yaml | 16 ++++++++++++++++ 7 files changed, 112 insertions(+) create mode 100644 ice_validator/tests/fixtures/test_valid_heat/fail/fail.yaml create mode 100644 ice_validator/tests/fixtures/test_valid_heat/fail/fail1.yaml create mode 100644 ice_validator/tests/fixtures/test_valid_heat/fail/fail2.yaml create mode 100644 ice_validator/tests/fixtures/test_valid_heat/fail/fail3.yaml create mode 100644 ice_validator/tests/fixtures/test_valid_heat/fail/fail4.yaml create mode 100644 ice_validator/tests/fixtures/test_valid_heat/fail/nestedbad.yaml create mode 100644 ice_validator/tests/fixtures/test_valid_heat/pass/pass.yaml (limited to 'ice_validator/tests/fixtures/test_valid_heat') 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 -- cgit 1.2.3-korg