From f568c9da628a3c903c85363d3ab469c6c512f529 Mon Sep 17 00:00:00 2001 From: Yuriy Novostavskiy Date: Tue, 15 Jul 2025 16:53:51 +0300 Subject: [PATCH] Fix integration test with ansibe-core 2.20 (#951) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Alina Buzachis --- .../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', '>=')