testing: add unittest coverage for config module json schema examples

Bug #1876412 reported by Chad Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
Medium
Lucas Albuquerque Medeiros de Moura

Bug Description

As we implement jsonschema definitions in cloud config modules (cloudinit.config.cc_*.py) we need a unittest which will automatically run schema validation on cc_*.py modules.

Add a unittest to tests/unittests/test_handler/test_schema.py that will discover all config modules
which contain a 'schema' dictionary defined and run all schema['examples'] through cloudinit.config.schema:validate_cloudconfig_schema to ensure no SchemaValidationErrors are raised by our module documentation.

Tags: bitesize
Chad Smith (chad.smith)
Changed in cloud-init:
status: New → Triaged
Changed in cloud-init:
assignee: nobody → Lucas Albuquerque Medeiros de Moura (lamoura)
Revision history for this message
Chad Smith (chad.smith) wrote :
Changed in cloud-init:
status: Triaged → Fix Committed
Revision history for this message
James Falcon (falcojr) wrote : Fixed in cloud-init version 20.3.

This bug is believed to be fixed in cloud-init in version 20.3. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Changed in cloud-init:
status: Fix Committed → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.