From da7e4e1dc2306ae047cac87912f5b7c805ee2233 Mon Sep 17 00:00:00 2001 From: Amin Vakil Date: Mon, 17 May 2021 12:32:20 +0430 Subject: [PATCH] yum_versionlock: disable fedora34 integration test (#2536) * Disable yum_versionlock integration test on Fedora 34 * Remove --assumeyes and add a comment regarding this * Update update task name --- tests/integration/targets/yum_versionlock/tasks/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/integration/targets/yum_versionlock/tasks/main.yml b/tests/integration/targets/yum_versionlock/tasks/main.yml index 3ea170b145..4084bdcb91 100644 --- a/tests/integration/targets/yum_versionlock/tasks/main.yml +++ b/tests/integration/targets/yum_versionlock/tasks/main.yml @@ -23,8 +23,9 @@ state: present register: lock_all_packages - - name: Update all packages - command: yum update --assumeyes --setopt=obsoletes=0 + # This should fail when it needs user interaction and missing -y is on purpose. + - name: Update all packages (not really) + command: yum update --setopt=obsoletes=0 register: update_all_locked_packages changed_when: - '"No packages marked for update" not in update_all_locked_packages.stdout' @@ -59,4 +60,4 @@ state: absent when: yum_versionlock_install is changed when: (ansible_distribution in ['CentOS', 'RedHat'] and ansible_distribution_major_version is version('7', '>=')) or - (ansible_distribution == 'Fedora') + (ansible_distribution == 'Fedora' and ansible_distribution_major_version is version('33', '<='))