summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/setup_rpm_repo (follow)
Commit message (Collapse)AuthorAgeFilesLines
* dnf5: fix is_installed check (#84275)Martin Krizek11 days1-1/+9
| | | Fixes #84259
* dnf/setup_rpm_repo: simplify dummy testing repos (#83624)Martin Krizek2024-07-298-144/+64
| | | | | | | | | | | | | | | | | | | This change simplifies construction and footprint of testing rpm repository created by rpmfluff: * all packages default to noarch * only when necessary build package for a specific architecture(s) * do not build several repositories each for specific arch * remove duplicate "incompatible arch" test * skip_broken_and_nobest: move testing packages from an external repo into our dummy repo for transparency * remove compatibility code from create_repo.py for versions no longer needed * remove support for old OS versions from setup_rpm_repo * simplify representation of an rpm in create_repo.py to allow easier changes Notes * there is one more external testing repo used at https://ci-files.testing.ansible.com/test/integration/targets/setup_rpm_repo/repo-with-updateinfo
* setup_rpm_repo/create_repo: "Arch dependent binaries in noarch package" (#83108)Martin Krizek2024-04-221-5/+5
| | | | | | | This fixes "Arch dependent binaries in noarch package" error cause by including files created by make_elf function in noarch packages. While the error only manifests itself on EL 7 and 8 it is better to use files suitable for noarch packages to prevent the error potentially re-occuring in the future.
* dnf: utilize the API for the installed checks (#82725)Martin Krizek2024-03-081-0/+4
| | | | | Fixes #71808 Fixes #76463 Fixes #81018
* dnf: fix installing a package based the file it provides (#82744)Martin Krizek2024-03-081-13/+24
| | | Fixes #82461
* Remove the yum module, redirect it to dnf (#81895)Martin Krizek2024-01-232-8/+0
| | | Fixes #81728
* Update Python3Abhijeet Kasurde2023-11-081-1/+4
| | | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Remove obsolete compat code from integration tests (#81961)Matt Clay2023-10-121-15/+2
| | | Also fix up boilerplate for non .py extension files that contain Python code.
* Require `from __future__ import annotations` (#81902)Matt Clay2023-10-051-2/+1
|
* Add test support for Python 3.11 on RHEL 8.8/9.2 (#80990)Martin Krizek2023-06-151-3/+9
| | | | Fixes #80412 Fixes #80413
* ansible-test - Add RHEL 9 support. (#76217)Matt Clay2021-11-042-0/+9
| | | | | | | | | | | | | | * Move RHEL pip package install into function. * Add RHEL 9 support to bootstrap script. * ansible-test - Add RHEL 9 support. * Add install and uninstall instructions for RHEL9 to paramiko tests * Skip incidental_inventory_docker_swarm on RHEL 9. * Update dnf tests for rhel9 * Fix prepare_http_tests on RHEL 9. * fix RHEL9 Python discovery tests to match distro map * Skip subversion test on RHEL 9.0b. Co-authored-by: Matt Martz <matt@sivel.net> Co-authored-by: Matt Davis <mrd@redhat.com>
* Remove create-repo.py script as it was changed to module (#75124)Martin Krizek2021-06-281-71/+0
|
* module compat for py3.8+ controller (#73423)Matt Davis2021-02-113-28/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * module compat for py3.8+ controller * replaced internal usages of selinux bindings with internal ctypes binding (allows basic selinux operations from any Python interpreter), plus tests * added new respawn_module API to allow modules to import Python packages that are only available under a well-known interpreter, plus tests * added respawn logic to modules that need Python libs from a specific system interpreter (apt, apt_repository, dnf, yum) minimize internal HAVE_SELINUX usage spurious junk pep8 * pylint fixes * add RHEL8 Python 3.8 testing * more pylint * import sanity * unit tests * changelog update * fix a bunch of stuff * tweak changelog * fix setup_rpm_repo on EL8 * misc sanity/test fixes * misc feedback tweaks * fix import fallback in test module * fix selinux MU test * fix dnf tests to avoid python-dependent test packages * add trailing LFs to aliases * fix yum tests to avoid test package with Python deps * hack create_repo for EL6 to create noarch package
* [setup_rpm_repo test] Ensure rpm-build is present (#73516)Rick Elrod2021-02-053-0/+3
| | | | | | | | | | | | | Change: - Other targets might remove rpm-build as they clean up after themselves. Ensure that it's present in setup_rpm_repo because rpmfluff needs it. Test Plan: - Local experimentation with yum_repository and mysql_db (the latter of which depends on a handler which was removing rpm-build) on stable-2.9. Signed-off-by: Rick Elrod <rick@elrod.me>
* Make yum_repository test more reliable (#73467)Sam Doran2021-02-045-17/+124
| | | | | | | | | | * Improve setup_rpm_repo - add handlers to remove repos - add variable to control whethere or not repos are created * Use local repo for all distros * Change repo creation script to module
* Update integration tests to support rpmfluff-0.6 (#71155)Matt Martz2020-08-071-4/+17
|
* More boilerplate fixes. (#70224)Matt Clay2020-06-231-0/+2
| | | | | | | * Fix boilerplate in hacking dir. * Fix boilerplate in docs dir. * Fix boilerplate in integration tests. * Fix boilerplate in examples.
* Fix yum test case on ppc64leJoe Cropper2020-04-231-1/+1
| | | | | | | This patch covers a few changes to get the yum test case working on ppc64le CentOS. Specifically we needed to enable the EPEL repository on CentOS as well as ensure some of the architecture-specific tasks use the right set of binaries during their test.
* Fix setup_rpm integration tests for CentOS 8 (#64862)Sam Doran2019-11-157-39/+33
|
* Change dummy package name in yum/dnf tests to not collide with an actual ↵Sam Doran2019-08-072-11/+11
| | | | | | | package (#60225) When targeting 'foo*' in tests, it pulled in packages other than the dummy packages in our testing repo that have many dependencies, some of which were causing tests to fail. Also change 'bar' package name to avoid the same issue in the future.
* Install EPEL on RHEL using RPM from S3.Matt Clay2019-04-052-2/+3
|
* test dnf - fix groups idempotency on RHEL and fix postgresql issue (#51319)Jordan Borean2019-01-302-0/+46
|
* Enable yum integration tests on RHEL 8.0.Matt Clay2019-01-181-0/+17
|
* dnf/yum - added install_weak_deps option (#50525)Jordan Borean2019-01-041-8/+19
| | | | | | | | * dnf/yum - added install_weak_deps option * skip creating weak dep packages if rpm doesn't support it * fix rpm check for older hosts
* yum: add integration test for 'update foo*' (#48336)Martin Krizek2018-11-081-0/+4
|
* YUM4/DNF compatibility via yum action plugin (#44322)Adam Miller2018-08-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | * YUM4/DNF compatibility via yum action plugin DNF does not natively support allow_downgrade as an option, instead that is always the default (not configurable by the administrator) so it had to be implemented - Fixed group actions in check mode to report correct changed state - Better error handling for depsolve and transaction errors in DNF - Fixed group action idempotent transactions - Add use_backend to yum module/action plugin - Fix dnf handling of autoremove (didn't used to work nor had a default value specified, now does work and matches default behavior of yum) - Enable installroot tests for yum4(dnf) integration testing, dnf backend now supports that - Switch from zip to bc for certain package install/remove test cases in yum integration tests. The dnf depsolver downgrades python when you uninstall zip which alters the test environment and we have no control over that. - Add changelog fragment - Return a pkg_mgr fact if it was not previously set.
* make sure to get correct python version for rpmfluff in setup_rpm_repo (#43228)Adam Miller2018-07-251-0/+12
| | | | | | * make sure to get correct python version for rpmfluff in setup_rpm_repo Signed-off-by: Adam Miller <admiller@redhat.com>
* yum: clean fake repos after tests run (#37770)Martin Krizek2018-03-221-0/+7
|
* Fixes for dnf and user integration tests. (#34603)Matt Clay2018-01-091-0/+10
| | | | | | * Fix user test. * Use `dnf` instead of `yum` in dnf test. * Install correct version of rpmfluff for tests.
* Use custom rpm repo script for dnf testing (#32737)Martin Krizek2017-11-212-0/+104
* Use custom rpm repo script for dnf testing * Switch to a jinja2 test