pungi/tests
Lubomír Sedlář 33bb0ceceb
createiso: Recompute .treeinfo checksums for images
Running xorriso to modify an ISO image can update content of included
images such as images/eltorito.img, unless we explicitly update the
image, which is undesirable (https://pagure.io/pungi/issue/1647).

However, when the file is changed, the checksum changes and .treeinfo no
longer matches.

This patch implements a workaround: once the DVD is written, it looks
for incorrect checksums, recalculates them and updates the .treeinfo on
the DVD. Since only the checksum is changing and the size of the file
remains the same, this seems to help fix the issue.

An additional step for implanting MD5 is needed again, as that gets
erased by the workaround.

JIRA: RHELCMP-13664
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>

(cherry picked from commit 3b2c6ae72a)
2024-08-30 13:40:47 +03:00
..
data comps: Apply arch filtering to environment/optionlist 2023-11-10 16:51:52 +02:00
fixtures - Fix unittests 2022-11-08 14:57:52 +02:00
__init__.py Fix test data, improve Makefile. 2015-06-25 08:02:57 -04:00
Dockerfile-test Use latest Fedora for python 3 test environment 2024-08-30 13:39:28 +03:00
Dockerfile-test-py2 Install missing deps in ci image 2021-08-17 12:01:51 +08:00
helpers.py createiso: Recompute .treeinfo checksums for images 2024-08-30 13:40:47 +03:00
Jenkinsfile Add Jenkinsfile for CI 2022-08-29 17:38:04 +08:00
test_arch.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_arguments.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_buildinstall.py iso: Extract volume id with xorriso if available 2024-08-30 13:39:47 +03:00
test_checks.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_compose.py Support OIDC Client Credentials authentication to CTS 2023-11-10 16:54:58 +02:00
test_compose.sh tests: Fix test_compose.sh paths 2017-08-10 09:28:36 +02:00
test_comps_wrapper.py Filter out environment groups unmatch given arch 2022-02-22 11:33:25 +08:00
test_config_utils.py Fix flake8 complaints - F401 2020-02-07 11:48:31 +08:00
test_config_validate_script.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_config.py Drop buildinstall method 2024-08-30 13:30:35 +03:00
test_create_extra_repo.py ALBS-987: Generate i686 and dev repositories with pungi on building new distr. version automatically 2023-03-30 12:52:51 +03:00
test_create_packages_json.py - Bump version 2023-11-15 14:49:51 +02:00
test_createiso_phase.py createiso: Recompute .treeinfo checksums for images 2024-08-30 13:40:47 +03:00
test_createiso_script.py Drop buildinstall method 2024-08-30 13:30:35 +03:00
test_createrepo_wrapper.py Fix flake8 complaints - F401 2020-02-07 11:48:31 +08:00
test_createrepophase.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_extra_files_phase.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_extra_isos_phase.py createiso: Recompute .treeinfo checksums for images 2024-08-30 13:40:47 +03:00
test_fus_wrapper.py Merge branch 'master' into a8_updated 2022-11-07 23:38:38 +02:00
test_gather_method_deps.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_gather_method_hybrid.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_gather_method_nodeps.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_gather_modules.py - kojimock is added to pungi.phases.gather._make_lookaside_repo#prefixes 2022-11-09 20:56:56 +02:00
test_gather_phase.py Make latest black happy 2024-08-30 13:31:29 +03:00
test_gather_rpms.py AL-5220: Investigate why CL9 can't built on the new nebula 2023-07-24 18:26:51 +03:00
test_gather_source_module.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_gather.py dnf: Explicitly load filelists 2024-08-30 13:39:01 +03:00
test_graph.py Fix flake8 complaints - E501 2020-02-07 14:36:46 +08:00
test_image_container_phase.py Various phases: consistent format of failure message 2024-08-30 13:39:40 +03:00
test_imagebuildphase.py Fix unittest errors 2023-11-10 16:57:51 +02:00
test_imagechecksumphase.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_initphase.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_iso_wrapper.py iso: Extract volume id with xorriso if available 2024-08-30 13:39:47 +03:00
test_kiwibuildphase.py Update tests to exercise kiwi specific metadata 2024-08-30 13:39:39 +03:00
test_koji_local_source.py ALBS-1040: Investigate why Pungi doesn't put modules packages into the final repos 2023-03-14 18:43:14 +02:00
test_koji_wrapper.py Remove live_images.py (LiveImagesPhase) 2024-08-30 13:40:14 +03:00
test_linker.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_liveimagesphase.py Remove live_images.py (LiveImagesPhase) 2024-08-30 13:40:14 +03:00
test_livemediaphase.py Fix unittest errors 2023-11-10 16:57:51 +02:00
test_lorax_wrapper.py Replace -c parameter with --config 2020-08-13 11:16:43 +02:00
test_media_split.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_metadata.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_module_util.py Fix module defaults and obsoletes validation 2022-06-10 11:35:26 +00:00
test_notifier.py Update to work with latest mock 2023-11-10 16:50:34 +02:00
test_osbs_phase.py Various phases: consistent format of failure message 2024-08-30 13:39:40 +03:00
test_osbuild_phase.py Phases/osbuild: support passing 'customizations' for image builds 2024-08-30 13:39:16 +03:00
test_ostree_installer_phase.py Fix unittest errors 2023-11-10 16:57:51 +02:00
test_ostree_phase.py Fix unittest errors 2023-11-10 16:57:51 +02:00
test_ostree_script.py Fix black complaints 2023-11-10 16:50:38 +02:00
test_ostree_utils.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_patch_iso.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_pathmatch.py Fix flake8 complaints - F401 2020-02-07 11:48:31 +08:00
test_phase_base.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_pkgset_common.py Allow disabling inheriting ExcludeArch to noarch packages 2023-11-10 16:51:37 +02:00
test_pkgset_phase.py Move test for unsigned packages with pkgset_koji_scratch_tasks to PkgsetPhase class. 2020-06-11 12:05:47 +00:00
test_pkgset_pkgsets.py Make python3-mock dependency optional 2024-08-30 13:38:43 +03:00
test_pkgset_source_koji.py pkgset: Avoid adding modules to unavailable arches 2024-08-30 13:39:48 +03:00
test_repoclosure_phase.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_repoclosure_wrapper.py repoclosure: Use --forcearch for dnf repoclosure 2021-11-02 08:51:40 +01:00
test_runroot.py Make latest black happy 2024-08-30 13:31:29 +03:00
test_scm.py Fix scm tests to not use user configuration 2024-08-30 13:31:26 +03:00
test_test_phase.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_unified_isos.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_util.py Add support for git-credential-helper 2023-11-10 16:54:59 +02:00
test_variant_wrapper.py Fix flake8 complaints - F401 2020-02-07 11:48:31 +08:00