pungi/tests
Qixiang Wan d1763fca7e checks.py: support 'append' option
If 'append' is defined for a property, append the values from append
options to the property. Note: The property must support to be a list
of values.

For example:

with schema:

    schema = {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "title": "Pungi Configuration",
        "type": "object",
        "definitions": {
            "list_of_strings": {
                "type": "array",
                "items": {"type": "string"},
            },
            "strings": {
                "anyOf": [
                    {"type": "string"},
                    {"$ref": "#/definitions/list_of_strings"},
                ]
            },
        },
        "properties": {
            "release_name": {"type": "string"},
            "repo": {"$ref": "#/definitions/strings", "append": "repo_from"}
        },
        "additionalProperties": False,
    }

and config:

    repo = "http://url/to/repo"
    repo_from = "Server"

config will be updated to:

    repo = ["http://url/to/repo", "Server"]

It supports multiple append options too, like:

    "repo": {
        "$ref": "#/definitions/strings",
        "append": ["repo_from", "source_repo_from"],
    }

Signed-off-by: Qixiang Wan <qwan@redhat.com>
2017-03-29 10:12:32 +08:00
..
data Refactor depsolving tests 2017-02-13 12:32:07 +01:00
fixtures Refactor depsolving tests 2017-02-13 12:32:07 +01:00
__init__.py Fix test data, improve Makefile. 2015-06-25 08:02:57 -04:00
helpers.py Add support for modular composes 2017-03-22 15:55:52 +01:00
test_arch.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_buildinstall.py buildinstall: Move tweaking configs into a function 2017-03-21 07:55:19 +01:00
test_checks.py checks.py: support 'append' option 2017-03-29 10:12:32 +08:00
test_compose.py Create temporary dirs under compose's workdir 2017-01-11 15:25:47 +08:00
test_compose.sh Add script to generate unified ISOs 2017-01-04 10:22:20 +01:00
test_config.py checks.py: show warning message for alias option 2017-03-29 10:12:32 +08:00
test_config_validate_script.py Fix PhaseLoggerMixin in case of compose has _logger = None 2016-11-30 14:41:02 +08:00
test_createiso_phase.py iso-wrapper: Handle wrong implant md5 2017-03-07 09:58:14 +01:00
test_createiso_script.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_createrepo_wrapper.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_createrepophase.py createrepo: Add tests for adding product certificates 2016-11-23 11:17:04 +01:00
test_extra_files_phase.py extra-files: Nice error message on missing RPM 2016-11-10 09:38:50 +01:00
test_gather.py Skip DNF tests if there are import problems 2017-03-27 09:42:58 +02:00
test_imagebuildphase.py image-build: Pass arches around as a list 2017-01-24 08:50:21 +01:00
test_imagechecksumphase.py image_checksum: add file sizes to checksum files 2017-01-23 18:20:21 +08:00
test_initphase.py comps: Filter comps groups for optional variants 2017-02-23 12:44:20 +01:00
test_iso_wrapper.py iso-wrapper: Add utility for mounting images 2017-03-21 07:55:19 +01:00
test_koji_wrapper.py koji_wrapper: Always use --profile option with koji 2017-01-30 13:00:25 +01:00
test_linker.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_liveimagesphase.py consolidate repo option names 2017-03-06 09:26:42 +08:00
test_livemediaphase.py koji_wrapper: Always use --profile option with koji 2017-01-30 13:00:25 +01:00
test_lorax_wrapper.py lorax-wrapper: Put all log files into compose logs 2016-11-09 09:37:00 +01:00
test_media_split.py Include phase name in log for some phases 2016-11-23 16:47:22 +08:00
test_metadata.py extra-files: Write a metadata file enumerating extra files 2016-09-07 13:02:48 +02:00
test_notifier.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_osbs_phase.py osbs: write manifest for scratch osbs 2017-03-06 09:26:01 +08:00
test_ostree_installer_phase.py ostree-installer: Fix logging directory 2017-03-15 15:54:45 +01:00
test_ostree_phase.py consolidate repo option names 2017-03-06 09:26:42 +08:00
test_ostree_script.py consolidate repo option names 2017-03-06 09:26:42 +08:00
test_patch_iso.py Add a script for modifying ISO images 2017-03-21 07:55:19 +01:00
test_pathmatch.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00: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 pkgset: report all unsigned packages 2017-03-14 09:50:28 +01:00
test_pkgset_source_koji.py Add support for modular composes 2017-03-22 15:55:52 +01:00
test_repoclosure_wrapper.py repoclosure: Don't run build deps check 2017-01-30 10:16:03 +01:00
test_scm.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_test_phase.py repoclosure: Don't run build deps check 2017-01-30 10:16:03 +01:00
test_unified_isos.py unified-iso: Create isos with debuginfo packages 2017-01-11 14:36:25 +01:00
test_util.py buildinstall: Print debug info if unmount fails 2017-03-14 15:06:20 +01:00