pungi/tests
Jan Kaluza ef33d00f5b Add --schema-override to pungi-config-validate script
Some composes might need extra validation to ensure they are following
certain strict rules - for example containing only signed packages or
packages only from particular Koji tag.

There is currently no way how to check that Pungi configuration fulfills
these extra requirements.

This commit adds new `--schema-override` option to
`pungi-config-validate` script which allows caller to specify path to
JSON schema overriding the default JSON schema and therefore limitting
it further.

For exmaple, to limit the `pkgset_source` to `koji`, one can use
following JSON schema override:

```
{
    "properties": {
        "pkgset_source": {
            "enum": ["koji"]
        }
    }
}
```

It is possible to use `--schema-override` multiple times to apply
multiple schema overrides.

Merges: https://pagure.io/pungi/pull-request/1341
Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
2020-02-05 10:03:30 +01:00
..
data Add --schema-override to pungi-config-validate script 2020-02-05 10:03:30 +01:00
fixtures gather: Resolve dependencies of debug packages 2019-10-03 10:46:21 +02:00
__init__.py Fix test data, improve Makefile. 2015-06-25 08:02:57 -04:00
helpers.py cleanup: refactor scripts via entry points 2019-12-10 10:53:31 +08:00
test_arch.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_arguments.py cleanup: refactor scripts via entry points 2019-12-10 10:53:31 +08:00
test_buildinstall.py Add support for new Pungi Buildinstall Koji plugin. 2020-01-23 16:09:15 +01:00
test_checks.py Add --schema-override to pungi-config-validate script 2020-02-05 10:03:30 +01:00
test_compose.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_compose.sh tests: Fix test_compose.sh paths 2017-08-10 09:28:36 +02:00
test_comps_wrapper.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_config.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_config_utils.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_config_validate_script.py Add --schema-override to pungi-config-validate script 2020-02-05 10:03:30 +01:00
test_createiso_phase.py Remove deprecated warn() call 2020-01-29 15:34:00 +01:00
test_createiso_script.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_createrepo_wrapper.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_createrepophase.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_extra_files_phase.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_extra_isos_phase.py Support generating ISOs when using link_type="symlink". 2020-01-06 12:30:13 +00:00
test_fus_wrapper.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_gather.py Add tests for new exclude options 2020-01-13 10:54:11 +01:00
test_gather_method_deps.py gather: Improve logging for gathering 2019-12-16 08:56:22 +00:00
test_gather_method_hybrid.py gather: Improve logging for gathering 2019-12-16 08:56:22 +00:00
test_gather_method_nodeps.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_gather_phase.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_gather_source_module.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_graph.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_imagebuildphase.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_imagechecksumphase.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_initphase.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_iso_wrapper.py iso: Clean up cache for guestmount 2020-01-30 10:35:42 +01:00
test_koji_wrapper.py Make --task-id mandatory in get_runroot_cmd 2020-01-20 12:56:01 +08:00
test_linker.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_liveimagesphase.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_livemediaphase.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_lorax_wrapper.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_media_split.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_metadata.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_notifier.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_orchestrator.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_osbs_phase.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_ostree_installer_phase.py Make --task-id mandatory in get_runroot_cmd 2020-01-20 12:56:01 +08:00
test_ostree_phase.py Make --task-id mandatory in get_runroot_cmd 2020-01-20 12:56:01 +08:00
test_ostree_script.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_ostree_utils.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_patch_iso.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_pathmatch.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_phase_base.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_pkgset_common.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_pkgset_pkgsets.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_pkgset_source_koji.py pkgset: Ignore deleted module builds 2020-01-14 16:23:55 +08:00
test_repoclosure_wrapper.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_runroot.py Allow setting runroot_method per Pungi phase. 2020-01-02 14:10:20 +00:00
test_scm.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_test_phase.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_unified_isos.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_util.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00
test_variant_wrapper.py tests: drop sys.path modification 2019-12-10 10:53:38 +08:00