pungi/tests
Lubomír Sedlář f3485410ad
Add support for git-credential-helper
This patch adds an additional field `options` to scm_dict, which can be
used to provide additional information to the backends.

It implements a single new option for GitWrapper. This option allows
setting a custom git credentials wrapper. This can be useful if Pungi
needs to get files from a git repository that requires authentication.

The helper can be as simple as this (assuming the username is already
provided in the url):

    #!/bin/sh
    echo password=i-am-secret

The helper would need to be referenced by an absolute path from the
pungi configuration, or prefixed with ! to have git interpret it as a
shell script and look it up in PATH.

See https://git-scm.com/docs/gitcredentials for more details.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
JIRA: RHELCMP-11808
(cherry picked from commit ada8f4e346)
2023-11-10 16:54:59 +02: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 Install missing deps in ci image 2021-08-17 12:01:51 +08:00
Dockerfile-test-py2 Install missing deps in ci image 2021-08-17 12:01:51 +08:00
helpers.py Add support for git-credential-helper 2023-11-10 16:54:59 +02: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 Merge branch 'master' into a8_updated 2022-11-07 23:38:38 +02: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 Add support for git-credential-helper 2023-11-10 16:54:59 +02: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 ALBS-987: Generate i686 and dev repositories with pungi on building new distr. version automatically 2023-03-30 12:52:51 +03:00
test_createiso_phase.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_createiso_script.py isos: Ensure proper file ownership and permissions 2023-11-10 16:54:22 +02: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 Merge branch 'master' into a8_updated 2022-11-07 23:38:38 +02: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 - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02: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 Format code 2021-03-02 18:31:45 +08:00
test_graph.py Fix flake8 complaints - E501 2020-02-07 14:36:46 +08:00
test_image_container_phase.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_imagebuildphase.py Update to work with latest mock 2023-11-10 16:50:34 +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 Fix black complaints 2023-11-10 16:50:38 +02: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 Fix black complaints 2023-11-10 16:50:38 +02:00
test_linker.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_liveimagesphase.py Update to work with latest mock 2023-11-10 16:50:34 +02:00
test_livemediaphase.py Update to work with latest mock 2023-11-10 16:50:34 +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 - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_osbuild_phase.py osbuild: test passing of rich repos from configuration 2023-03-17 11:58:11 +02:00
test_ostree_installer_phase.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_ostree_phase.py - Use unittest.mock instead external mock 2022-11-11 15:32:00 +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 pkgset: Stop reuse if configuration changed 2023-11-10 16:51:38 +02:00
test_pkgset_source_koji.py - Fix unittests 2022-11-08 14:57:52 +02: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 - Use unittest.mock instead external mock 2022-11-11 15:32:00 +02:00
test_scm.py Add support for git-credential-helper 2023-11-10 16:54:59 +02: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