From 3578dade568c88745938575ff6bb8d0c94c6094a Mon Sep 17 00:00:00 2001 From: Wen Liang Date: Sat, 17 Feb 2024 22:05:17 -0500 Subject: [PATCH] tests: Install latest NM to match NM plugin version There is not a strong dependency for NetworkManager-wifi or NetworkManager-team plugin to update NetworkManager pacakge in order to match the version, as a result, if NetworkManager daemon version is comparably old, it is likely that NetworkManager daemon can not recognize some new properties that NetworkManager plugin is using Before fixing the dependency problem in NetworkManager side, add a hotfix to install the latest NetworkManager to match the NetworkManager plugin version. Signed-off-by: Wen Liang --- tests/playbooks/tests_team_plugin_installation.yml | 12 ++++++++++++ .../playbooks/tests_wireless_plugin_installation.yml | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/tests/playbooks/tests_team_plugin_installation.yml b/tests/playbooks/tests_team_plugin_installation.yml index f7c53f8a8..8d99bfd70 100644 --- a/tests/playbooks/tests_team_plugin_installation.yml +++ b/tests/playbooks/tests_team_plugin_installation.yml @@ -12,6 +12,18 @@ name: "NetworkManager-team" state: absent + # There is not a strong dependency for NetworkManager-team plugin to update + # NetworkManager pacakge in order to match the version, as a result, if + # NetworkManager daemon version is comparably old , it is likely + # that NetworkManager daemon can not recognize some new properties that + # NetworkManager-wifi plugin is using. Before fixing the dependency + # problem in NetworkManager side, add a hotfix to install the latest + # NetworkManager to match the NetworkManager-team version + - name: Install the latest NetworkManager + package: + name: NetworkManager + state: latest # noqa package-latest + - name: "Get the rpm package facts" package_facts: manager: "auto" diff --git a/tests/playbooks/tests_wireless_plugin_installation.yml b/tests/playbooks/tests_wireless_plugin_installation.yml index b59a775aa..c626b732c 100644 --- a/tests/playbooks/tests_wireless_plugin_installation.yml +++ b/tests/playbooks/tests_wireless_plugin_installation.yml @@ -12,6 +12,18 @@ name: "NetworkManager-wifi" state: absent + # There is not a strong dependency for NetworkManager-wifi plugin to update + # NetworkManager pacakge in order to match the version, as a result, if + # NetworkManager daemon version is comparably old, it is likely + # that NetworkManager daemon can not recognize some new properties that + # NetworkManager-wifi plugin is using. Before fixing the dependency + # problem in NetworkManager side, add a hotfix to install the latest + # NetworkManager to match the NetworkManager-wifi version + - name: Install the latest NetworkManager + package: + name: NetworkManager + state: latest # noqa package-latest + - name: "Get the rpm package facts" package_facts: manager: "auto"