1 {## ============LICENSE_START=======================================================#}
2 {## org.onap.vvp/validation-scripts#}
3 {## ===================================================================#}
4 {## Copyright © 2019 AT&T Intellectual Property. All rights reserved.#}
5 {## ===================================================================#}
7 {## Unless otherwise specified, all software contained herein is licensed#}
8 {## under the Apache License, Version 2.0 (the "License");#}
9 {## you may not use this software except in compliance with the License.#}
10 {## You may obtain a copy of the License at#}
12 {## http://www.apache.org/licenses/LICENSE-2.0#}
14 {## Unless required by applicable law or agreed to in writing, software#}
15 {## distributed under the License is distributed on an "AS IS" BASIS,#}
16 {## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.#}
17 {## See the License for the specific language governing permissions and#}
18 {## limitations under the License.#}
22 {## Unless otherwise specified, all documentation contained herein is licensed#}
23 {## under the Creative Commons License, Attribution 4.0 Intl. (the "License");#}
24 {## you may not use this documentation except in compliance with the License.#}
25 {## You may obtain a copy of the License at#}
27 {## https://creativecommons.org/licenses/by/4.0/#}
29 {## Unless required by applicable law or agreed to in writing, documentation#}
30 {## distributed under the License is distributed on an "AS IS" BASIS,#}
31 {## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.#}
32 {## See the License for the specific language governing permissions and#}
33 {## limitations under the License.#}
35 {## ============LICENSE_END============================================#}
39 <meta charset="UTF-8">
40 <meta http-equiv="x-ua-compatible" content="ie=edge">
41 <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
42 <title>HEAT Validation Report</title>
43 <script src="https://code.jquery.com/jquery-3.3.1.js"></script>
44 <link rel="stylesheet" type="text/css"
45 href="https://cdn.datatables.net/v/zf/jszip-2.5.0/dt-1.10.18/b-1.5.2/b-flash-1.5.2/b-html5-1.5.2/b-print-1.5.2/fh-3.1.4/datatables.min.css"/>
46 <link rel="stylesheet" type="text/css"
47 href="https://cdn.datatables.net/buttons/1.5.2/css/buttons.dataTables.min.css"/>
48 <link rel="stylesheet"
49 href="https://cdn.jsdelivr.net/npm/foundation-sites@6.5.0-rc.2/dist/css/foundation.min.css"
50 integrity="sha256-iJQ8dZac/jUYHxiEnZJsyVpKcdq2sQvdA7t02QFmp30= sha384-SplqNBo/0ZlvSdwrP/riIPDozO5ck8+yIm++KVqyMAC53S6m3BaV+2OLpi7ULOOh sha512-ho6hK4sAWdCeqopNZWNy1d9Ok2hzfTLQLcGSr8ZlRzDzh6tNHkVoqSl6wgLsqls3yazwiG9H9dBCtSfPuiLRCQ=="
51 crossorigin="anonymous">
53 <script type="text/javascript"
54 src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/pdfmake.min.js"></script>
55 <script type="text/javascript"
56 src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/vfs_fonts.js"></script>
57 <script type="text/javascript"
58 src="https://cdn.datatables.net/v/zf/jszip-2.5.0/dt-1.10.18/b-1.5.2/b-flash-1.5.2/b-html5-1.5.2/b-print-1.5.2/fh-3.1.4/datatables.min.js"></script>
59 <script src="https://cdn.jsdelivr.net/npm/foundation-sites@6.5.0-rc.2/dist/js/foundation.min.js"
60 integrity="sha256-G6jsRyH1fxbsvFIXSCuwYmI1aIDYBa28xscrvmYjJy0= sha384-vtoG68NvPc9azmFJr447vvY8qgdyA4FdaJ5/bqvzIM4eAdZfO0iyRRF8l2AAscYI sha512-43seCcNrHA0BQgrtyajB9sp8yOdv5c8QdYvgjP7zJ7v+dmzAcxYDQ2gupb9aztsNWBq1COIp/3NHYkQs4l/dkg=="
61 crossorigin="anonymous"></script>
64 #collection_failures {
69 word-wrap: break-word;
70 word-break: break-all;
79 .fileLinks, .errorMessage {
80 word-wrap: break-word;
81 word-break: break-all;
94 <div class="grid-container fluid">
96 <div class="callout {{ "alert" if failures or collection_failures else "success" }}">
97 <h1>Validation Report</h1>
99 <li><b>Categories:</b> {{ categories }}</li>
100 <li><b>Tool Version:</b> {{ version }}</li>
101 <li><b>Directory Validated:</b> {{ template_dir }}</li>
102 <li><b>Checksum:</b> {{ checksum }}</li>
103 <li><b>Generated:</b> {{ timestamp }}</li>
104 <li><b>Total Failures:</b> {{ num_failures }}</li>
107 {% if collection_failures %}
108 <div class="callout alert">
109 <h2>WARNING: Errors Occurred During Validation Setup</h2>
111 The following unexpected errors occurred while preparing to validate
112 the the input files. Some validations may not have been executed.
113 Please refer these issue to the VNF Validation Tool team.
116 <table id="collection_failures">
119 <th class="fileNames">Validation File</th>
120 <th class="fileNames">Test</th>
121 <th class="fixtures">Fixtures</th>
122 <th class="errorColumnn">Error</th>
126 {% for failure in collection_failures %}
128 <td class="fileNames">{{ failure.module }}</td>
129 <td class="fileNames">{{ failure.test }}</td>
130 <td class="fixtures">{{ failure.fixtures }}</td>
131 <td class="errorColumn">
132 <div class="codeCell">
133 <pre class="code">{{ failure.error }}</pre>
143 <h2>Validation Failures</h2>
144 <table id="failures">
148 <th>Error Message</th>
149 <th>Requirement(s)</th>
153 {% for failure in failures %}
156 {{ failure.file_links }}
159 <p><b>Failed:</b> {{ failure.test_id }}</p>
160 <p>{{ failure.error_message }}
161 <a class="details" href="#"
162 data-open="raw-output-{{ loop.index }}">Full Details</a>
166 {{ failure.requirements }}
171 {% for failure in failures %}
172 <div id="raw-output-{{ loop.index }}" class="large reveal" data-reveal
173 aria-labelledby="modalTitle"
174 aria-hidden="true" role="dialog">
175 <h2 id="modalTitle">{{ failure.test_id }}</h2>
177 {{ failure.raw_output }}
179 <button class="close-button" data-close aria-label="Close modal"
181 <span aria-hidden="true">×</span>
183 <a class="close-reveal-modal" aria-label="Close">×</a>
188 <h2>No validation errors found.</h2>
190 <script lang="javascript">
191 $(document).foundation();
192 $(document).ready(function () {
193 $('#failures').DataTable({
199 orientation: 'landscape',
206 {width: "20%", className: "fileLinks"},
207 {width: "40%", className: "errorMessage"},
208 {width: "40%", className: "requirements"},