1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. Copyright 2018 AT&T Intellectual Property. All rights reserved.
5 Manual Heat Template Validation
6 ===============================
11 This project contains validation scripts to test
12 that a set of Heat Templates adheres to
13 the ONAP VNF Heat Orchestration Template guidelines.
15 For more information on the ONAP Heat Orchestration
16 Template Guidelines, vist the `Heat Guidelines <https://onap.readthedocs.io/en/latest/submodules/vnfrqts/requirements.git/docs/Chapter5/Heat/index.html>`__
21 The validation scripts project allows performing heat template
22 validation without installing the full VVP platform. The following
23 instructions apply to running these validation scripts in that manner.
29 This software is not platform dependent and can be run in a Windows, Unix or
36 These can be installed using pip (assuming pip is installed) with the command:
38 ``$ pip install -r requirements.txt``
45 To validate Heat templates just run this the command under the folder ``ice_validator``:
47 ``</path/to/validation-scripts/ice_validator>$ pytest --tap-stream --template-directory=<Directory>``
49 where ``<Directory>`` is the full path to a folder containing heat templates.
54 After performing a validation, an output folder will be created.
56 ``/path/to/validation-scripts/ice_validator/output/``
58 This folder will contain a file ``report.html`` which contains a list of all
59 of the ONAP VNF Heat Template Guideline violations. If there are no violations,
60 the report will say ``No validation errors found.``
62 Interpreting the Output
63 _______________________
65 The report file will have 4 columns for details about a violation, and one
66 row for each violation. Below contains details about each column.
71 This is the file(s) that contained the violation
76 This shows the test and brief error message from the validation script that
77 contained the violation. There is a ``Full Details`` button to show the
78 complete raw test output. The error message will also contain details
79 about what element is involved with the violation (such as the parameter
80 name, resource id, etc...).
85 This column contains the requirement(s) that each test/violation is
86 mapped to. These requirements are taken directly from the VNF Requirements
87 project Heat Orchestration Template Guidelines section.
93 For some violations, there are pre-defined resolution steps that
94 indicate what action the user should take to resolve the violation.
96 **Note**: Not all violations will have resolution steps. Most violations
97 can be resolved simply by reviewing the requirements that have been violated
98 in the previous column.
104 The ``ice_validator`` includes an extensive self-test suite. It is a
105 **requirement** for any additions or changes to the test suite to
106 successfully and cleanly complete a tox run. Simply run ``tox`` from
111 You can also run it under the folder ``ice_validator``:
113 ``$ pytest --self-test``