network/tests
Wen Liang 66c3eef7e3 fix: Ask user's consent to restart NM due to wireless or team interfaces
If updates for network packages are available and wireless or team
connections are specified, NetworkManager must be restarted, the role
requires user's consent to restart NetworkManager. Otherwise, there
might be property conflicts between NetworkManager daemon and plugin, or
NetworkManager plugin is not taking effect.

`update_cache` is enabled in the module tasks to check if updates for
network packages are available due to wireless or team interfaces, in
that case, NetworkManager needs user's explicit consent to be restarted
after the network package updates. And using `state: latest` for
checking the network package updates because we have to guarantee that
NetworkManager and its plugin have the same and most recent version for
configuring the network connections settings in the backend. It is
worthwhile to mention that we have both tasks using dnf and yum module
for checking available updates for network packages. Because checking
package cache update is not supported in Ansible package module, Fedora
and RHEL8+ use DNF package manager by default, RHEL7 uses yum package
manager by default.

This commit will address the situation that users forget to explicitly
specify `network_allow_restart: true` when specifying wireless or team
connections.

Signed-off-by: Wen Liang <liangwen12year@gmail.com>
2024-03-15 17:33:36 -04:00
..
files Add support for domain-suffix-match 802.1x option 2020-05-04 13:01:41 +02:00
integration Clean up connection profile after running pytest 2022-03-14 18:27:02 +01:00
playbooks fix: Ask user's consent to restart NM due to wireless or team interfaces 2024-03-15 17:33:36 -04:00
roles/linux-system-roles.network System Roles should consistently use ansible_managed in configuration files it manages 2022-02-25 06:10:42 +08:00
tasks fix: Ask user's consent to restart NM due to wireless or team interfaces 2024-03-15 17:33:36 -04:00
unit feat: Support blackhole, prohibit and unreachable route types 2024-01-12 14:14:50 -07:00
.gitignore Move tests to /tests directory and rename to new naming scheme 2018-05-16 19:48:23 +02:00
covstats refactor: get_ostree_data.sh use env shebang - remove from .sanity* 2023-12-07 07:25:47 -07:00
ensure_provider_tests.py fix: Ask user's consent to restart NM due to wireless or team interfaces 2024-03-15 17:33:36 -04:00
get_coverage.sh refactor: get_ostree_data.sh use env shebang - remove from .sanity* 2023-12-07 07:25:47 -07:00
get_coverage.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
get_total_coverage.sh refactor: get_ostree_data.sh use env shebang - remove from .sanity* 2023-12-07 07:25:47 -07:00
git-post-commit.sh refactor: get_ostree_data.sh use env shebang - remove from .sanity* 2023-12-07 07:25:47 -07:00
git-pre-commit.sh refactor: get_ostree_data.sh use env shebang - remove from .sanity* 2023-12-07 07:25:47 -07:00
merge_coverage.sh refactor: get_ostree_data.sh use env shebang - remove from .sanity* 2023-12-07 07:25:47 -07:00
module_utils Integration tests: Fix coverage collection 2020-04-15 22:12:22 +02:00
modules Integration tests: Fix coverage collection 2020-04-15 22:12:22 +02:00
setup-snapshot.yml style: ansible-lint - fix missing YAML document start 2023-04-28 09:15:50 -06:00
tests_802_1x_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_802_1x_updated_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_auto_gateway_initscripts.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_auto_gateway_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_bond_cloned_mac_initscripts.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_bond_cloned_mac_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_bond_deprecated_initscripts.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_bond_deprecated_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_bond_initscripts.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_bond_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_bond_options_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_bond_removal_initscripts.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_bond_removal_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_bridge_cloned_mac_initscripts.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_bridge_cloned_mac_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_bridge_initscripts.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_bridge_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_change_indication_on_repeat_run.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_default.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
tests_default_initscripts.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_default_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_dummy_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_eth_dns_support_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_eth_pci_address_match_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_ethernet_initscripts.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_ethernet_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_ethtool_coalesce_initscripts.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_ethtool_coalesce_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_ethtool_features_initscripts.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_ethtool_features_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_ethtool_ring_initscripts.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_ethtool_ring_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_helpers_and_asserts.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
tests_ignore_auto_dns_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_infiniband_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_integration_pytest.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_ipv6_disabled_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_ipv6_dns_search_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_ipv6_initscripts.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_ipv6_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_network_state_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_provider_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_reapply_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_regression_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_route_device_initscripts.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_route_device_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_route_table_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_route_type_nm.yml feat: Support blackhole, prohibit and unreachable route types 2024-01-12 14:14:50 -07:00
tests_routing_rules_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_states_initscripts.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_states_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_switch_provider.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_team_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_team_plugin_installation_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_unit.yml test: Add DNS, routes and network connectivity checks during cleanup 2024-02-14 20:20:49 -07:00
tests_vlan_mtu_initscripts.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_vlan_mtu_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_wireless_and_network_restart_nm.yml fix: Ask user's consent to restart NM due to wireless or team interfaces 2024-03-15 17:33:36 -04:00
tests_wireless_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_wireless_plugin_installation_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_wireless_wpa3_owe_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00
tests_wireless_wpa3_sae_nm.yml ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07:00