From fee827801543a905832bf92071772159ac86089c Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Fri, 6 Jun 2025 20:28:40 +0000 Subject: [PATCH] [PR #10214/f7f2db36 backport][stable-9] Fix module_helper tests (#10215) Fix module_helper tests (#10214) Fix module_helper tests. (cherry picked from commit f7f2db365e7b9d74701f388129c4bf7fac194a37) Co-authored-by: Felix Fontein --- .../targets/module_helper/tasks/msimpleda.yml | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/tests/integration/targets/module_helper/tasks/msimpleda.yml b/tests/integration/targets/module_helper/tasks/msimpleda.yml index f3dec439df..2d89cbaa39 100644 --- a/tests/integration/targets/module_helper/tasks/msimpleda.yml +++ b/tests/integration/targets/module_helper/tasks/msimpleda.yml @@ -15,6 +15,14 @@ deprecator: resolved_name: community.general type: collection + # Latest version: + attr2_depr_dict_dt2: + msg: Attribute attr2 is deprecated + version: 9.9.9 + collection_name: community.general + deprecator: + resolved_name: community.general + type: ~ - name: test msimpleda 1 msimpleda: @@ -26,7 +34,12 @@ that: - simple1.a == 1 - simple1.attr1 == "abc" - - ("deprecations" not in simple1) or (attr2_depr_dict not in simple1.deprecations and attr2_depr_dict_dt not in simple1.deprecations) + - >- + ("deprecations" not in simple1) or ( + attr2_depr_dict not in simple1.deprecations and + attr2_depr_dict_dt not in simple1.deprecations and + attr2_depr_dict_dt2 not in simple1.deprecations + ) - name: test msimpleda 2 msimpleda: @@ -43,4 +56,7 @@ - simple2.a == 2 - simple2.attr2 == "def" - '"deprecations" in simple2' - - attr2_depr_dict in simple2.deprecations or attr2_depr_dict_dt in simple2.deprecations + - >- + attr2_depr_dict in simple2.deprecations or + attr2_depr_dict_dt in simple2.deprecations or + attr2_depr_dict_dt2 in simple2.deprecations