diff options
author | lucasmoura <lucas.moura@canonical.com> | 2020-05-06 17:19:35 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-06 14:19:35 -0600 |
commit | 022122a54e895468d054ed162fdf1b403b7aaf3f (patch) | |
tree | 1afbfe9394ca1f9f8f3374c63ca4b6c32457aca8 /tools | |
parent | 73d8748e797134fa0a06415b6cb16be2e05abc7e (diff) | |
download | vyos-cloud-init-022122a54e895468d054ed162fdf1b403b7aaf3f.tar.gz vyos-cloud-init-022122a54e895468d054ed162fdf1b403b7aaf3f.zip |
Create tests to validate schema examples (#348)
Add a unit test to validate if the examples provided in the config
modules are conforming to the concatenated schema of all config
modules. The rationale behind that is not only to verify if the
examples are correctly written but to assert that no config schema
is interfering with each other.
Failures in validate_cloudconfig_schema raise the
SchemaValidationError by using strict=True, so I have
only called the function passing the right schema examples to
validate.
This branch also fixes an invalid schema example in cc_snap.
LP: #1876412
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions