<div dir="ltr">Hi all,<div><br></div><div>I would like to discuss how to fix and improve $subject, which targets to validate the templates present in the repo. Current state is the following:</div><div><br></div><div>the gate does merely validate the "parseability" of YAML/JSON templates and very basic check on template structure. Any other real checks as would be actually performed in real deployment are not executed because:</div><div>- only Heat and Keystone are installed on this gate;</div><div>- for resources for any other service service-based resource exposure kicks in early, producing "Service {name} does not have required endpoint in service catalog for the resource type {resource}" errors,</div><div>- which are ignored by the script running the validation (to not block the gate, bug 1492942)</div><div><br></div><div>Thus for example the check that properties of the resources are confirming to the schema of a particular resource is not performed, and we might be having faulty templates (e.g. with typos) in the repo. I hoped to fix this with mapping all resources to OS::Heat::None, but it turned out this would not be really helpful, as the None-resource has any property and attribute.</div><div><br></div><div>So I propose that heat-templates repo can configure its environment itself by using the "post_test_hook" facilities provided and supported by gate setup. We need that to better control the environment the tests are being run in. In particular, I'd like to add some fake service endpoints to Keystone, so service-based exposure is out of the validation way.</div><div><br></div><div>Thereby I ask Heat and Infra team to take a look at these two patches:</div><div>- [0] in heat-templates and </div><div>- [1] in project-config (depends on [0]).</div><div><br></div><div>Though these are simply moving couple of bash lines from project-config to heat-templates, we want to be sure they work so that we do not break the gate. Unfortunately I can not prove my further patches [2] are working as it seems Depend-On does not work for referencing project-config changes.</div><div><br></div><div>[0] <a href="https://review.openstack.org/#/c/252515/">https://review.openstack.org/#/c/252515/</a></div><div>[1] <a href="https://review.openstack.org/#/c/252523/">https://review.openstack.org/#/c/252523/</a></div><div>[2] <a href="https://review.openstack.org/#/q/status:open+project:openstack/heat-templates+branch:master+topic:bug/1492942,n,z">https://review.openstack.org/#/q/status:open+project:openstack/heat-templates+branch:master+topic:bug/1492942,n,z</a></div><div><br></div><div>Best regards,</div></div><div dir="ltr">-- <br></div><div dir="ltr"><span>Dr. Pavlo Shchelokovskyy</span><div>Senior Software Engineer</div><div>Mirantis Inc</div><div><a>www.mirantis.com</a></div></div>