mirror of https://github.com/ansible/ansible.git
Merge dnf and dnf5 integration tests (#85199)
(cherry picked from commit 01bb9393d7)
pull/85255/head
parent
a8c68be3b9
commit
603e65d204
@ -1,4 +0,0 @@
|
|||||||
dnf_log_files:
|
|
||||||
- /var/log/dnf.log
|
|
||||||
- /var/log/dnf.rpm.log
|
|
||||||
- /var/log/dnf.librepo.log
|
|
||||||
@ -1,6 +0,0 @@
|
|||||||
destructive
|
|
||||||
shippable/posix/group1
|
|
||||||
skip/freebsd
|
|
||||||
skip/macos
|
|
||||||
context/target
|
|
||||||
needs/target/dnf
|
|
||||||
@ -1,34 +0,0 @@
|
|||||||
- hosts: localhost
|
|
||||||
tasks:
|
|
||||||
- block:
|
|
||||||
- command: "dnf install -y 'dnf-command(copr)'"
|
|
||||||
- name: Test against dnf5 nightly build to detect any issues early
|
|
||||||
command: dnf copr enable -y rpmsoftwaremanagement/dnf-nightly
|
|
||||||
|
|
||||||
- name: Ensure module deps are not installed
|
|
||||||
command: dnf remove -y python3-libdnf5
|
|
||||||
|
|
||||||
- name: Test the auto_install_module_deps option
|
|
||||||
dnf5:
|
|
||||||
name: sos
|
|
||||||
auto_install_module_deps: false
|
|
||||||
register: r
|
|
||||||
ignore_errors: true
|
|
||||||
|
|
||||||
- assert:
|
|
||||||
that:
|
|
||||||
- r is failed
|
|
||||||
- r.msg is contains("Could not import the libdnf5 python module")
|
|
||||||
|
|
||||||
# Now the first dnf5 task in the dnf role should auto install python3-libdnf5 as
|
|
||||||
# auto_install_module_deps is true by default.
|
|
||||||
- include_role:
|
|
||||||
name: dnf
|
|
||||||
vars:
|
|
||||||
dnf5: true
|
|
||||||
dnf_log_files:
|
|
||||||
- /var/log/dnf5.log
|
|
||||||
when: ansible_distribution == 'Fedora'
|
|
||||||
module_defaults:
|
|
||||||
dnf:
|
|
||||||
use_backend: dnf5
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -ux
|
|
||||||
export ANSIBLE_ROLES_PATH=../
|
|
||||||
ansible-playbook playbook.yml "$@"
|
|
||||||
Loading…
Reference in New Issue