f9a6c8418f
The schema is written in Python to reduce duplication. When configuration is loaded, the validation checks if it's correct and fills in default values. There is a custom extension to the schema to report deprecated options. The config dependencies are implemented as a separate pass. While it's technically possible to express the dependencies in the schema itself, the error messages are not very helpful and it makes the schema much harder to read. Phases no longer define `config_options`. New options should be added to the schema. Since the default values are populated automatically during validation, there is no need to duplicate them into the code. The `pungi-config-validate` script is updated to use the schema and report errors even for deeply nested fields. The dependencies are updated: pungi now depends on `python-jsonschema` (which is already available in Fedora). Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com> |
||
---|---|---|
.. | ||
data | ||
fixtures | ||
__init__.py | ||
helpers.py | ||
test_arch.py | ||
test_buildinstall.py | ||
test_checks.py | ||
test_compose.py | ||
test_compose.sh | ||
test_config.py | ||
test_createiso_phase.py | ||
test_createiso_script.py | ||
test_createrepo_wrapper.py | ||
test_createrepophase.py | ||
test_extra_files_phase.py | ||
test_imagebuildphase.py | ||
test_imagechecksumphase.py | ||
test_initphase.py | ||
test_koji_wrapper.py | ||
test_liveimagesphase.py | ||
test_livemediaphase.py | ||
test_lorax_wrapper.py | ||
test_media_split.py | ||
test_metadata.py | ||
test_notifier.py | ||
test_osbs_phase.py | ||
test_ostree_installer_phase.py | ||
test_ostree_phase.py | ||
test_ostree_script.py | ||
test_pathmatch.py | ||
test_paths.py | ||
test_phase_base.py | ||
test_pkgset_pkgsets.py | ||
test_pkgset_source_koji.py | ||
test_scm.py | ||
test_test_phase.py | ||
test_util.py |