mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-22 05:09:12 +00:00
Reenable and enhance copr integration tests (#5638)
* Enhance `copr` integration tests
- Switch to a new test Copr repository. @copr/integration_tests was
removed which caused the tests to fail. I created a new one under my
account that I'll ensure stays around.
- Add basic testing to ensure that repo files are created in the correct
location and contain the correct baseurl and enabled status.
- Also run tests on Enterprise Linux.
- Test that packages from the Copr install. This has to be disabled on
EOL Fedoras that Copr does not allow building new packages for.
Resolves: https://github.com/ansible-collections/community.general/issues/5595
* copr tests: Fix ansible_python_interpreter on c8s
* copr: Don't test on alt Pythons on cs8
* Revert "copr tests: Fix ansible_python_interpreter on c8s"
This reverts commit 58e15a7ebf.
This commit is contained in:
parent
fd436bdbc2
commit
23aacc78e1
3 changed files with 117 additions and 12 deletions
15
tests/integration/targets/copr/vars/main.yml
Normal file
15
tests/integration/targets/copr/vars/main.yml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Copyright (c) 2022 Maxwell G <gotmax@e.email>
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or
|
||||
# https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
---
|
||||
copr_host: copr.fedorainfracloud.org
|
||||
copr_namespace: gotmax23
|
||||
copr_name: community.general.copr_integration_tests
|
||||
copr_fullname: '{{ copr_namespace }}/{{ copr_name }}'
|
||||
copr_repofile: '/etc/yum.repos.d/_copr:{{ copr_host }}:{{ copr_namespace }}:{{ copr_name }}.repo'
|
||||
|
||||
# TODO: Fix chroot autodetection so this isn't necessary
|
||||
_copr_chroot_fedora: "fedora-rawhide-x86_64"
|
||||
_copr_chroot_rhelish: "epel-{{ ansible_distribution_major_version }}-x86_64"
|
||||
copr_chroot: "{{ _copr_chroot_fedora if ansible_distribution == 'Fedora' else _copr_chroot_rhelish }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue