PDF: Run YAML Linter on pod descriptors / output 23/43223/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 21 Sep 2017 22:44:56 +0000 (00:44 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 26 Sep 2017 19:42:37 +0000 (19:42 +0000)
commit13be4e4093f1a58eb907a9bf024bbb9336674291
treedd994f6c62f60f067426da2c709663ed9331521e
parentdecf59a64532d72654d53a3e0209ddf3a35f0fdc
PDF: Run YAML Linter on pod descriptors / output

We have 2 rounds of YAML files:
- PDF (input file(s) for the installer adapter templates);
- parsed PDF (output file(s) after installer adapter template parse);

Run yamllint on all these files, and summarize the output in a tuple
form: (valid YAML output, successful parse, installer templates cnt).

This helps catching various issues:
- formatting issues in installer adapter templates;
- missing values in PDFs (e.g. lf-pod4 IPMI credentials);
etc.

For now, yamllint failures for output files are non-fatal.

Sample output:

| PDF Verify Matrix        | YAML Lint  | ... | fuel   | joid   |
| pharos/config/pod1.yaml  | OK         | ... | 1/1/1  | 1/1/1  |
| intel/pod18.yaml         | OK         | ... | 1/1/1  | 1/1/1  |
| arm/pod5.yaml            | OK         | ... | 1/1/1  | 0/1/1  |
| lf/pod4.yaml             | OK         | ... | 0/1/1  | 0/1/1  |

Change-Id: Id598da89fab0e7e41641649833471194e8d248a9
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 791cb3f2d864c1f8b9473f9ba4348c4435aa813b)
check-jinja2.sh