summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/dnf5/playbook.yml
diff options
context:
space:
mode:
authorMartin Krizek <martin.krizek@gmail.com>2024-11-21 17:06:18 +0100
committerGitHub <noreply@github.com>2024-11-21 17:06:18 +0100
commit2a53b851fee8ebaa07c1341122dd905354659237 (patch)
tree2a3a376713f82841dabaf1bf16f3fba07aeadd9f /test/integration/targets/dnf5/playbook.yml
parentansible-test - Improve container network detection (#84323) (diff)
downloadansible-2a53b851fee8ebaa07c1341122dd905354659237.tar.xz
ansible-2a53b851fee8ebaa07c1341122dd905354659237.zip
dnf5,apt: add auto_install_module_deps option (#84292)
* dnf5,apt: add auto_install_module_deps option Fixes #84206
Diffstat (limited to 'test/integration/targets/dnf5/playbook.yml')
-rw-r--r--test/integration/targets/dnf5/playbook.yml21
1 files changed, 19 insertions, 2 deletions
diff --git a/test/integration/targets/dnf5/playbook.yml b/test/integration/targets/dnf5/playbook.yml
index a1024f4b3d..a36c17a202 100644
--- a/test/integration/targets/dnf5/playbook.yml
+++ b/test/integration/targets/dnf5/playbook.yml
@@ -2,9 +2,26 @@
tasks:
- block:
- command: "dnf install -y 'dnf-command(copr)'"
- - command: dnf copr enable -y rpmsoftwaremanagement/dnf-nightly
- - command: dnf install -y -x condor python3-libdnf5
+ - 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: