From e3da2f28fd0a9f361af7bf76329f0511ae1b25a6 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Tue, 15 Jul 2025 15:34:36 +0000 Subject: [PATCH] Fix integration test with ansibe-core 2.20 (#951) (#959) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a backport of PR #951 as merged into main (f568c9d). SUMMARY Now that ansible-core 2.19.0rc1 has been released, ansible-core’s devel branch has been bumped from 2.19.0.dev0 to 2.20.0.dev0. This potentially requires collection CIs to be updated which rely on devel using tests/sanity/ignore-2.19.txt, for example. Also it’s now time to add stable-2.19 to CI if you relied on devel to cover 2.19 so far. Note that milestone has also been updated to 2.20.0dev0. During testing, I noticed that the failed test tasks/test_helm_not_installed.yml due to the new error message with ansible 2.20, please find here and following comments. ISSUE TYPE Bugfix Pull Request COMPONENT NAME test/CI (tasks/test_helm_not_installed.yml) ADDITIONAL INFORMATION to be cherry-picked to the stable-6 and stable-5 Reviewed-by: Bianca Henderson --- .../targets/helm/tasks/test_helm_not_installed.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/integration/targets/helm/tasks/test_helm_not_installed.yml b/tests/integration/targets/helm/tasks/test_helm_not_installed.yml index 2f2fd27e..27667a4d 100644 --- a/tests/integration/targets/helm/tasks/test_helm_not_installed.yml +++ b/tests/integration/targets/helm/tasks/test_helm_not_installed.yml @@ -13,3 +13,11 @@ that: - helm_missing_binary is failed - "'No such file or directory' in helm_missing_binary.msg" + when: ansible_version.full is version('2.20', '<') + +- name: Assert that helm is not installed (ansible 2.20+) + assert: + that: + - helm_missing_binary is failed + - "'Error executing command' in helm_missing_binary.msg" + when: ansible_version.full is version('2.20', '>=')