Skip to content

Commit

Permalink
tests: Install latest NM to match NM plugin version
Browse files Browse the repository at this point in the history
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 <liangwen12year@gmail.com>
  • Loading branch information
liangwen12year committed Feb 18, 2024
1 parent 4b12e15 commit 25f3183
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/playbooks/tests_team_plugin_installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -26,6 +38,7 @@
include_role:
name: linux-system-roles.network
vars:
network_allow_restart: true
network_connections:
# Specify the team profile
- name: team0
Expand Down
13 changes: 13 additions & 0 deletions tests/playbooks/tests_wireless_plugin_installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -26,6 +38,7 @@
include_role:
name: linux-system-roles.network
vars:
network_allow_restart: true
network_connections:
- name: wlan0
type: wireless
Expand Down

0 comments on commit 25f3183

Please sign in to comment.