diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2017-12-28 23:24:41 +0100 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2018-04-30 17:48:08 +0200 |
commit | 56eec7f0a4e379c975bc9c6d57905c24c590fe9a (patch) | |
tree | f20e4d235857b3cad93bac1767f7ccd08df1e3f1 /config/utils/check-schema.sh | |
parent | 209a3a0e61e803218ada1f79363f72e7b77bfc81 (diff) |
[PDF] Preparations for vPDF support
- extend check-{jinja2,schema}.sh to scan vPDFs and construct
proper IDF path for vPDFs;
- add support for '/' in PDF fields, by default filtered by j2
template rendering;
SPEC changes:
- extend remote_management 'type' enum with 'libvirt';
SCHEMA changes:
- add new enum value 'libvirt' according to SPEC update;
- add separate handling of 'remote_management' for baremetal/virtual;
- remote_management 'versions' and 'mac_address' are mandatory for
all but 'libvirt' (used to be mandatory for all);
Change-Id: Ib3f711cae807c3ab27920391402ba74844f155c3
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'config/utils/check-schema.sh')
-rwxr-xr-x | config/utils/check-schema.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/config/utils/check-schema.sh b/config/utils/check-schema.sh index 0cdc6f29..041c0308 100755 --- a/config/utils/check-schema.sh +++ b/config/utils/check-schema.sh @@ -16,8 +16,9 @@ RC=0 SUMMARY+=";;PDF;IDF;\n" while IFS= read -r lab_config; do + idf_config="$(dirname "${lab_config}")/idf-$(basename "${lab_config}")" pdf_cmd="${VALIDATE_SCHEMA} -s ${PDF_SCHEMA} -y ${lab_config}" - idf_cmd="${VALIDATE_SCHEMA} -s ${IDF_SCHEMA} -y ${lab_config/pod/idf-pod}" + idf_cmd="${VALIDATE_SCHEMA} -s ${IDF_SCHEMA} -y ${idf_config}" echo "###################### ${lab_config} ######################" pdf_out=$(${pdf_cmd} 2>&1 | sed 's|ENC\[PKCS.*\][\\n]*|opnfv|g') if [ -z "${pdf_out}" ]; then @@ -29,7 +30,7 @@ while IFS= read -r lab_config; do echo "${pdf_out}" echo "[PDF] [ERROR] ${pdf_cmd}" fi - if [ ! -f "${lab_config/pod/idf-pod}" ]; then + if [ ! -f "${idf_config}" ]; then SUMMARY+="-;\n" elif ${idf_cmd}; then SUMMARY+="OK;\n" @@ -40,7 +41,7 @@ while IFS= read -r lab_config; do echo "[IDF] [ERROR] ${idf_cmd}" fi echo '' -done < <(find 'labs' -name 'pod*.yaml') +done < <(find 'labs' -name 'pod*.yaml' -or -name 'virtual*.yaml') cat <<EOF ###################### Schema Validation Matrix ###################### |