pungi/tests
Lubomír Sedlář acd3c19618 config-validate: Allow defining variables
When trying to validate a template that should later be filled in with
`pungi-config-dump`, there will be errors about undefined variables.
These are meant to be set when the template is populated.

This patch adds support for `-e`, `--define` argument to the validation
script that can be used to suppress these errors.

Alternatively a JSON file is read from the directory with config file
that can contain values for the variables.

The `--define` option is changed in both validation and dumping to allow
empty string as an accepted value.

JIRA: COMPOSE-3599
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
2019-06-21 12:47:50 +02:00
..
data config: Deprecate release_is_layered option 2019-06-06 13:45:49 +02:00
fixtures orchestrator: Send messages about the main compose 2019-03-21 09:29:54 +01:00
__init__.py Fix test data, improve Makefile. 2015-06-25 08:02:57 -04:00
helpers.py config: Deprecate release_is_layered option 2019-06-06 13:45:49 +02:00
test_arch.py Whitespace fixes 2019-05-31 09:31:01 +02:00
test_arguments.py Update tests for Python 2.6 2018-03-29 16:34:52 +02:00
test_buildinstall.py config: Deprecate release_is_layered option 2019-06-06 13:45:49 +02:00
test_checks.py Move resolving git reference to config validation 2018-11-21 13:25:35 +01:00
test_compose.py config: Deprecate release_is_layered option 2019-06-06 13:45:49 +02:00
test_compose.sh tests: Fix test_compose.sh paths 2017-08-10 09:28:36 +02:00
test_comps_wrapper.py createiso: Move code for tweaking treeinfo into a function 2018-10-11 13:19:07 +02:00
test_config_utils.py config-validate: Allow defining variables 2019-06-21 12:47:50 +02:00
test_config_validate_script.py tests: Use correct Python interpreter 2019-05-16 09:07:18 +02:00
test_config.py config: Deprecate release_is_layered option 2019-06-06 13:45:49 +02:00
test_createiso_phase.py config: Deprecate release_is_layered option 2019-06-06 13:45:49 +02:00
test_createiso_script.py El-Torito boot information on s390x 2017-12-14 10:08:30 +01:00
test_createrepo_wrapper.py createrepo: Allow passing arbitrary arguments 2018-08-08 16:15:51 +02:00
test_createrepophase.py createrepo: Stop processing modulemd 2019-03-25 08:48:16 +01:00
test_extra_files_phase.py Remove invalid escape sequences 2019-05-15 15:47:44 +02:00
test_extra_isos_phase.py isos: Check maximum expected size 2019-02-12 15:15:30 +01:00
test_fus_wrapper.py fus: Support HTTP repos 2019-06-07 14:43:04 +02:00
test_gather_method_deps.py Reduce duplication in tests 2018-08-29 15:52:45 +02:00
test_gather_method_hybrid.py hybrid: Refactor handling debuginfo packages 2019-03-18 13:56:48 +01:00
test_gather_method_nodeps.py Reduce duplication in tests 2018-08-29 15:52:45 +02:00
test_gather_phase.py gather: Introduce module source again 2019-05-21 08:23:18 +02:00
test_gather_source_module.py gather: Introduce module source again 2019-05-21 08:23:18 +02:00
test_gather.py tests: Stop overwriting modulesdir for DNF 2019-03-26 14:58:09 +01:00
test_graph.py Variant as a lookaside - configuration 2018-04-13 14:14:43 +02:00
test_imagebuildphase.py image-build: Support repo/install_tree as path 2019-02-25 08:18:47 +01:00
test_imagechecksumphase.py Add directory name for checksum file 2017-10-05 16:08:27 +02:00
test_initphase.py tests: Avoid using threads in tests 2019-06-18 13:17:17 +02:00
test_iso_wrapper.py Tests fail if unittest2 library is missing 2018-04-09 07:47:17 +02:00
test_koji_wrapper.py kojiwrapper: Allow changing mode of multiple files 2019-05-22 15:10:32 +02:00
test_linker.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_liveimagesphase.py Move resolving git reference to config validation 2018-11-21 13:25:35 +01:00
test_livemediaphase.py Move resolving git reference to config validation 2018-11-21 13:25:35 +01:00
test_lorax_wrapper.py Port to Python 3 2017-10-24 15:15:31 +02:00
test_media_split.py Include phase name in log for some phases 2016-11-23 16:47:22 +08:00
test_metadata.py config: Deprecate release_is_layered option 2019-06-06 13:45:49 +02:00
test_notifier.py Update tests for Python 2.6 2018-03-29 16:34:52 +02:00
test_orchestrator.py orchestrator: Send messages about the main compose 2019-03-21 09:29:54 +01:00
test_osbs_phase.py Whitespace fixes 2019-05-31 09:31:01 +02:00
test_ostree_installer_phase.py kojiwrapper: Allow changing mode of multiple files 2019-05-22 15:10:32 +02:00
test_ostree_phase.py Create new Runroot class and use it everywhere where runroot task is executed. 2019-03-21 14:15:58 +01:00
test_ostree_script.py Move from yaml.load to yaml.safe_load 2018-11-13 21:11:02 +01:00
test_ostree_utils.py Cleanup parsing treefile 2018-11-19 11:59:32 +01:00
test_patch_iso.py Whitespace fixes 2019-05-31 09:31:01 +02:00
test_pathmatch.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_phase_base.py Move resolving git reference to config validation 2018-11-21 13:25:35 +01:00
test_pkgset_pkgsets.py Add 'pkgset_koji_builds' option to include extra builds in a compose 2018-09-21 14:06:49 +02:00
test_pkgset_source_koji.py pkgset: Create arch repos in parallel 2019-06-19 15:42:46 +02:00
test_repoclosure_wrapper.py repoclosure: Extract logs from hybrid solver 2018-10-26 08:42:21 +02:00
test_runroot.py runroot: Remove useless argument output_path 2019-05-22 15:10:32 +02:00
test_scm.py scm-wrapper: Refactor getting files from Git 2019-03-01 09:40:30 +01:00
test_test_phase.py isos: Check maximum expected size 2019-02-12 15:15:30 +01:00
test_unified_isos.py tests: Work with older unittest2 2017-10-30 09:16:18 +01:00
test_util.py util: Resolve HEAD in repos that have a remote 2019-06-19 09:04:01 +02:00
test_variant_wrapper.py variants: Reject values with whitespace 2018-06-12 12:48:14 +02:00