network/tests
Rich Megginson e4d499763c ci: Use supported ansible-lint action; run ansible-lint against the collection
The old ansible-community ansible-lint is deprecated.  There is a
new ansible-lint github action.  The new ansible-lint has several checks
related to ansible-test and the ignore files.  Many of our ignore settings
are not allowed any more and are required to be fixed or addressed in the
Ansible preferred way.

The python imports have to be wrapped in a try/except ImportError, and
where possible, an error must be returned from the module explaining
what was not able to be imported.

The module documentation must comply with the Ansible standards.  One
aspect of this is the `version_added` must be a valid ansible-core
version in X.Y.Z format.  Note that this version isn't really used
anywhere, so it doesn't matter for users of the role, it is purely
an `ansible-test` and import gating issue.

The result of this is that the .sanity files can be reduced to the
bare minimum which will greatly reduce the maintenance burden of
those files, make it easier to support newer versions of Ansible,
and make it easier to import the system roles collection into Galaxy
and Automation Hub.

The latest Ansible repo gating tests run ansible-lint against
the collection format instead of against individual roles.
We have to convert the role to collection format before running
ansible-test.

Role developers can run this locally using
`tox -e collection,ansible-lint-collection`
See https://github.com/linux-system-roles/tox-lsr/pull/125

Add `---` doc start to .markdownlint.yaml

The file `examples/down_profile+delete_interface.yml`
was not used and was causing ansible-lint errors.

ansible-lint enforces the order of keywords in plays - `name`,
then `hosts`, then `vars`, then `tasks`.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2024-01-05 17:36:07 -07: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 ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07: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 test: Fix wifi test failures 2023-12-23 13:51:06 -07:00
unit refractor: Use meaningful variable 2023-12-01 13:39:57 -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 ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -07: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_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 ci: Use supported ansible-lint action; run ansible-lint against the collection 2024-01-05 17:36:07 -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_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