pungi/tests
Qixiang Wan e043604822 [ostree] Add 'tree' sub-command to pungi-make-ostree script
Update pungi-make-ostree to supourt sub-command 'tree', which is just
as the original feature of pungi-make-ostree to compose OSTree tree.
With the change we can add other sub commands later to build other
OSTree artifacts, like the installer image.

Inaddtional to the change, now the the 'tree' command can accept an
optional '--extra-config' parameter to update the original tree
configuration with extra configurations specified in a json file
before composing the OSTree tree.

Example:

pungi-make-ostree tree --repo=/ostree --treefile=/path/to/treefile \
--log-dir=/path/to/log --extra-config=/path/to/extra-config.json

The extra-config file can contains the same configuration as OSTree
phase, the difference is it doesn't understand variant UID as source
repo since it's not ran in the chain of phases. A valid configuration
can be like:

{
    "source_repo_from": "http://example.com/repo/x86_64/Server",
    "extra_source_repos": [
        {
            "name": "optional",
            "baseurl": "http://example.com/repo/x86_64/optional",
            "exclude": "systemd-container",
            "gpgcheck": False
        },
        {
            "name": "extra",
            "baseurl": "http://example.com/repo/x86_64/extra",
        }
    ],
    "keep_original_sources": True
}

The OSTree phase is updated to move out the task of updating treefile,
instead of that, it writes the extra configurations to a json file,
then 'pungi-make-ostree tree' will take it by option '--extra-config'.

Signed-off-by: Qixiang Wan <qwan@redhat.com>
2016-12-12 19:30:35 +08:00
..
data pungi: Include noarch debuginfo 2016-11-16 14:50:03 +01:00
fixtures createrepo: Add tests for adding product certificates 2016-11-23 11:17:04 +01:00
__init__.py Fix test data, improve Makefile. 2015-06-25 08:02:57 -04:00
helpers.py createrepo: Add tests for retrieving product certificates 2016-11-23 11:17:04 +01:00
test_arch.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_buildinstall.py Include phase name in log for some phases 2016-11-23 16:47:22 +08:00
test_checks.py Merge #448 Remove executable permissions on test scripts 2016-10-26 07:31:37 +00:00
test_compose.py metadata: Allow creating internal releases 2016-12-06 12:49:33 +01:00
test_compose.sh Fix PYTHONPATH usage in test_compose.sh. 2016-06-02 10:16:02 -04:00
test_config_validate_script.py Fix PhaseLoggerMixin in case of compose has _logger = None 2016-11-30 14:41:02 +08:00
test_config.py Expose lorax's --rootfs-size argument 2016-11-17 10:17:39 -05:00
test_createiso_phase.py Include phase name in log for some phases 2016-11-23 16:47:22 +08: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_imagebuildphase.py image-build: Reduce duplication 2016-11-28 09:28:46 +01:00
test_imagechecksumphase.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_initphase.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_koji_wrapper.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_linker.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_liveimagesphase.py Include phase name in log for some phases 2016-11-23 16:47:22 +08:00
test_livemediaphase.py Include phase name in log for some phases 2016-11-23 16:47:22 +08: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 Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_ostree_installer_phase.py ostree-installer: Use dvd-ostree as type in metadata 2016-11-28 10:32:50 +01:00
test_ostree_phase.py [ostree] Add 'tree' sub-command to pungi-make-ostree script 2016-12-12 19:30:35 +08:00
test_ostree_script.py [ostree] Add 'tree' sub-command to pungi-make-ostree script 2016-12-12 19:30:35 +08: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 Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_pkgset_source_koji.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_pungi.py pungi: Include noarch debuginfo 2016-11-16 14:50:03 +01:00
test_scm.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_test_phase.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00
test_util.py Remove executable permissions on test scripts 2016-10-25 10:42:16 +00:00