pungi/tests
Lubomír Sedlář f9a6c8418f Add JSON Schema for configuration
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>
2016-09-01 10:56:15 +02:00
..
data Fix test data build script 2016-09-01 08:46:23 +02:00
fixtures [pkgset] Add tests for KojiPackageSet 2016-04-22 13:35:17 +02:00
__init__.py Fix test data, improve Makefile. 2015-06-25 08:02:57 -04:00
helpers.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_arch.py [arch] Add mock rpmUtils module 2016-05-17 12:10:45 +02:00
test_buildinstall.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_checks.py Use unittest2 if available 2016-05-25 13:41:49 +02:00
test_compose.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_compose.sh Fix PYTHONPATH usage in test_compose.sh. 2016-06-02 10:16:02 -04:00
test_config.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_createiso_phase.py createiso: Report nice error when tag does not exist 2016-09-01 09:09:31 +02:00
test_createiso_script.py [createiso] Use shell script for runroot 2016-08-10 13:39:50 +02:00
test_createrepo_wrapper.py Use unittest2 if available 2016-05-25 13:41:49 +02:00
test_createrepophase.py Use unittest2 if available 2016-05-25 13:41:49 +02:00
test_extra_files_phase.py [extra-files] Only copy files when there is a config 2016-06-23 07:25:52 +02:00
test_imagebuildphase.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_imagechecksumphase.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_initphase.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_koji_wrapper.py Use unittest2 if available 2016-05-25 13:41:49 +02:00
test_liveimagesphase.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_livemediaphase.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_lorax_wrapper.py Use unittest2 if available 2016-05-25 13:41:49 +02:00
test_media_split.py [media-split] Add unit tests 2016-06-01 14:03:23 +02:00
test_metadata.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_notifier.py Fix notifier tests 2015-12-14 14:35:00 +01:00
test_osbs_phase.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_ostree_installer_phase.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_ostree_phase.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_ostree_script.py Stop using str.format 2016-05-25 13:41:49 +02:00
test_pathmatch.py Allow running scripts with any python in PATH 2015-11-27 08:38:47 +01:00
test_paths.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_phase_base.py Add common global settings for images 2016-04-18 18:11:29 +02:00
test_pkgset_pkgsets.py Use unittest2 if available 2016-05-25 13:41:49 +02:00
test_pkgset_source_koji.py [pkgset] Add tests for Koji source 2016-04-22 09:44:20 +02:00
test_scm.py Use unittest2 if available 2016-05-25 13:41:49 +02:00
test_test_phase.py [test] Only check bootability for images on x86_64 and i386 2016-08-10 13:02:56 +02:00
test_util.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00