aboutsummaryrefslogtreecommitdiffstats
path: root/ice_validator/tests/fixtures
diff options
context:
space:
mode:
authorstark, steven <steven.stark@att.com>2019-05-23 13:50:25 -0700
committerstark, steven <steven.stark@att.com>2019-05-23 14:51:24 -0700
commit62a48cfb8f633a5b8374d975174999d04c3bdcee (patch)
tree91313d61907176dbba94ce3023ef743aef35f89b /ice_validator/tests/fixtures
parent6c566ba71d909294cbc46224b763037a21da6491 (diff)
[VVP] adding heat template-validate test
Issue-ID: VVP-218 Signed-off-by: stark, steven <steven.stark@att.com> Change-Id: If88f9b4b620aaffe61ead3b6f7d5c74dcfd14cba
Diffstat (limited to 'ice_validator/tests/fixtures')
-rw-r--r--ice_validator/tests/fixtures/test_valid_heat/fail/fail.yaml16
-rw-r--r--ice_validator/tests/fixtures/test_valid_heat/fail/fail1.yaml16
-rw-r--r--ice_validator/tests/fixtures/test_valid_heat/fail/fail2.yaml12
-rw-r--r--ice_validator/tests/fixtures/test_valid_heat/fail/fail3.yaml20
-rw-r--r--ice_validator/tests/fixtures/test_valid_heat/fail/fail4.yaml16
-rw-r--r--ice_validator/tests/fixtures/test_valid_heat/fail/nestedbad.yaml16
-rw-r--r--ice_validator/tests/fixtures/test_valid_heat/pass/pass.yaml16
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