From c012d0fba71e1c01e52dbda6b279b5a99d686344 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Tue, 24 Mar 2020 09:27:28 +0100 Subject: [PATCH] Fix unit test relative imports, and permissions for included collection requirements (#29) * Fix Hetzner firewall unit test imports. * Make sure tests can actually access collections. * Fix more relative imports. * Fix more relative imports. * Fix more includes. * Fix more tests. * One more. * Fix syntax error in sanity import tests (invalid escape sequence "\$" caused by non-raw docs block) * Fix permissions of ansible-test parts for sanity tests. * Revert "Fix permissions of ansible-test parts for sanity tests." This reverts commit c2713f0a124492e6215001720da0ee2840b9c290. --- plugins/modules/cloud/univention/udm_user.py | 2 +- .../modules/cloud/google/test_gcp_forwarding_rule.py | 2 +- tests/unit/modules/cloud/google/test_gcp_url_map.py | 2 +- .../cloud/xenserver/test_xenserver_guest_info.py | 2 +- .../xenserver/test_xenserver_guest_powerstate.py | 2 +- .../modules/net_tools/nios/test_nios_a_record.py | 2 +- .../modules/net_tools/nios/test_nios_aaaa_record.py | 2 +- .../modules/net_tools/nios/test_nios_cname_record.py | 2 +- .../modules/net_tools/nios/test_nios_dns_view.py | 2 +- .../net_tools/nios/test_nios_fixed_address.py | 2 +- .../modules/net_tools/nios/test_nios_host_record.py | 2 +- .../unit/modules/net_tools/nios/test_nios_member.py | 2 +- .../modules/net_tools/nios/test_nios_mx_record.py | 2 +- .../modules/net_tools/nios/test_nios_naptr_record.py | 2 +- .../unit/modules/net_tools/nios/test_nios_network.py | 2 +- .../modules/net_tools/nios/test_nios_network_view.py | 2 +- .../unit/modules/net_tools/nios/test_nios_nsgroup.py | 2 +- .../modules/net_tools/nios/test_nios_ptr_record.py | 2 +- .../modules/net_tools/nios/test_nios_srv_record.py | 2 +- tests/unit/modules/net_tools/nios/test_nios_zone.py | 2 +- .../modules/net_tools/test_hetzner_firewall_info.py | 2 +- .../modules/network/aireos/test_aireos_command.py | 2 +- .../modules/network/aireos/test_aireos_config.py | 2 +- .../modules/network/apconos/test_apconos_command.py | 2 +- .../unit/modules/network/aruba/test_aruba_command.py | 2 +- .../unit/modules/network/aruba/test_aruba_config.py | 2 +- .../unit/modules/network/cloudengine/test_ce_lacp.py | 2 +- tests/unit/modules/network/cnos/test_cnos_banner.py | 2 +- tests/unit/modules/network/cnos/test_cnos_bgp.py | 2 +- tests/unit/modules/network/cnos/test_cnos_command.py | 2 +- tests/unit/modules/network/cnos/test_cnos_config.py | 2 +- tests/unit/modules/network/cnos/test_cnos_facts.py | 2 +- .../unit/modules/network/cnos/test_cnos_interface.py | 2 +- .../modules/network/cnos/test_cnos_l2_interface.py | 2 +- .../modules/network/cnos/test_cnos_l3_interface.py | 2 +- tests/unit/modules/network/cnos/test_cnos_linkagg.py | 2 +- tests/unit/modules/network/cnos/test_cnos_lldp.py | 2 +- tests/unit/modules/network/cnos/test_cnos_logging.py | 2 +- .../modules/network/cnos/test_cnos_static_route.py | 2 +- tests/unit/modules/network/cnos/test_cnos_system.py | 2 +- tests/unit/modules/network/cnos/test_cnos_user.py | 2 +- tests/unit/modules/network/cnos/test_cnos_vlag.py | 2 +- tests/unit/modules/network/cnos/test_cnos_vlan.py | 2 +- tests/unit/modules/network/cnos/test_cnos_vrf.py | 2 +- .../modules/network/edgeos/test_edgeos_command.py | 2 +- .../modules/network/edgeos/test_edgeos_config.py | 2 +- .../unit/modules/network/edgeos/test_edgeos_facts.py | 2 +- .../network/edgeswitch/test_edgeswitch_facts.py | 2 +- .../network/edgeswitch/test_edgeswitch_vlan.py | 2 +- tests/unit/modules/network/enos/test_enos_command.py | 2 +- tests/unit/modules/network/enos/test_enos_config.py | 2 +- tests/unit/modules/network/enos/test_enos_facts.py | 2 +- .../network/eric_eccli/test_eric_eccli_command.py | 2 +- tests/unit/modules/network/exos/test_exos_command.py | 2 +- tests/unit/modules/network/exos/test_exos_config.py | 2 +- tests/unit/modules/network/exos/test_exos_facts.py | 2 +- .../network/f5/test_bigip_security_address_list.py | 8 ++++---- .../network/f5/test_bigip_security_port_list.py | 8 ++++---- .../test_fmgr_device_provision_template.py | 3 ++- .../network/fortimanager/test_fmgr_provisioning.py | 2 +- tests/unit/modules/network/icx/test_icx_banner.py | 2 +- tests/unit/modules/network/icx/test_icx_command.py | 2 +- tests/unit/modules/network/icx/test_icx_config.py | 2 +- tests/unit/modules/network/icx/test_icx_copy.py | 2 +- tests/unit/modules/network/icx/test_icx_facts.py | 2 +- tests/unit/modules/network/icx/test_icx_interface.py | 2 +- .../modules/network/icx/test_icx_l3_interface.py | 2 +- tests/unit/modules/network/icx/test_icx_linkagg.py | 2 +- tests/unit/modules/network/icx/test_icx_lldp.py | 2 +- tests/unit/modules/network/icx/test_icx_logging.py | 2 +- tests/unit/modules/network/icx/test_icx_ping.py | 2 +- .../modules/network/icx/test_icx_static_route.py | 2 +- tests/unit/modules/network/icx/test_icx_system.py | 2 +- tests/unit/modules/network/icx/test_icx_user.py | 2 +- tests/unit/modules/network/icx/test_icx_vlan.py | 2 +- tests/unit/modules/network/ingate/test_ig_config.py | 5 +++-- .../network/ingate/test_ig_unit_information.py | 8 +++++--- .../network/ironware/test_ironware_command.py | 2 +- .../modules/network/ironware/test_ironware_config.py | 2 +- .../modules/network/ironware/test_ironware_facts.py | 2 +- .../network/netscaler/test_netscaler_cs_action.py | 2 +- .../network/netscaler/test_netscaler_cs_policy.py | 2 +- .../network/netscaler/test_netscaler_cs_vserver.py | 2 +- .../network/netscaler/test_netscaler_gslb_service.py | 2 +- .../network/netscaler/test_netscaler_gslb_site.py | 2 +- .../network/netscaler/test_netscaler_gslb_vserver.py | 2 +- .../network/netscaler/test_netscaler_lb_monitor.py | 2 +- .../network/netscaler/test_netscaler_lb_vserver.py | 2 +- .../netscaler/test_netscaler_nitro_request.py | 2 +- .../network/netscaler/test_netscaler_save_config.py | 2 +- .../network/netscaler/test_netscaler_server.py | 2 +- .../network/netscaler/test_netscaler_service.py | 2 +- .../network/netscaler/test_netscaler_servicegroup.py | 2 +- .../network/netscaler/test_netscaler_ssl_certkey.py | 2 +- .../network/netvisor/test_pn_access_list_ip.py | 2 +- .../network/netvisor/test_pn_admin_service.py | 2 +- .../netvisor/test_pn_admin_session_timeout.py | 2 +- .../modules/network/netvisor/test_pn_admin_syslog.py | 2 +- .../netvisor/test_pn_connection_stats_settings.py | 2 +- .../modules/network/netvisor/test_pn_cpu_class.py | 2 +- .../network/netvisor/test_pn_cpu_mgmt_class.py | 2 +- .../modules/network/netvisor/test_pn_dhcp_filter.py | 2 +- .../modules/network/netvisor/test_pn_dscp_map.py | 2 +- .../network/netvisor/test_pn_dscp_map_pri_map.py | 2 +- .../modules/network/netvisor/test_pn_fabric_local.py | 2 +- .../network/netvisor/test_pn_igmp_snooping.py | 2 +- .../network/netvisor/test_pn_ipv6security_raguard.py | 2 +- .../netvisor/test_pn_ipv6security_raguard_port.py | 2 +- .../netvisor/test_pn_ipv6security_raguard_vlan.py | 2 +- .../network/netvisor/test_pn_log_audit_exception.py | 2 +- .../modules/network/netvisor/test_pn_port_config.py | 2 +- .../modules/network/netvisor/test_pn_port_cos_bw.py | 2 +- .../netvisor/test_pn_port_cos_rate_setting.py | 2 +- .../modules/network/netvisor/test_pn_prefix_list.py | 2 +- .../network/netvisor/test_pn_prefix_list_network.py | 2 +- tests/unit/modules/network/netvisor/test_pn_role.py | 2 +- .../network/netvisor/test_pn_snmp_community.py | 2 +- .../network/netvisor/test_pn_snmp_trap_sink.py | 2 +- .../modules/network/netvisor/test_pn_snmp_vacm.py | 2 +- tests/unit/modules/network/netvisor/test_pn_stp.py | 2 +- .../modules/network/netvisor/test_pn_stp_port.py | 2 +- .../modules/network/netvisor/test_pn_switch_setup.py | 2 +- tests/unit/modules/network/netvisor/test_pn_user.py | 2 +- .../network/netvisor/test_pn_vflow_table_profile.py | 2 +- .../modules/network/netvisor/test_pn_vrouter_bgp.py | 2 +- .../network/netvisor/test_pn_vrouter_bgp_network.py | 2 +- .../network/netvisor/test_pn_vrouter_interface_ip.py | 2 +- .../netvisor/test_pn_vrouter_loopback_interface.py | 2 +- .../modules/network/netvisor/test_pn_vrouter_ospf.py | 2 +- .../network/netvisor/test_pn_vrouter_ospf6.py | 2 +- .../network/netvisor/test_pn_vrouter_packet_relay.py | 2 +- .../network/netvisor/test_pn_vrouter_pim_config.py | 2 +- tests/unit/modules/network/netvisor/test_pn_vtep.py | 2 +- tests/unit/modules/network/nos/test_nos_command.py | 2 +- tests/unit/modules/network/nos/test_nos_config.py | 2 +- tests/unit/modules/network/nos/test_nos_facts.py | 2 +- tests/unit/modules/network/nso/test_nso_action.py | 2 +- tests/unit/modules/network/nso/test_nso_config.py | 2 +- tests/unit/modules/network/nso/test_nso_query.py | 2 +- tests/unit/modules/network/nso/test_nso_show.py | 2 +- tests/unit/modules/network/nso/test_nso_verify.py | 2 +- tests/unit/modules/network/nuage/test_nuage_vspk.py | 2 +- tests/unit/modules/network/onyx/test_onyx_aaa.py | 2 +- tests/unit/modules/network/onyx/test_onyx_bfd.py | 2 +- tests/unit/modules/network/onyx/test_onyx_bgp.py | 2 +- .../modules/network/onyx/test_onyx_buffer_pool.py | 2 +- tests/unit/modules/network/onyx/test_onyx_command.py | 2 +- tests/unit/modules/network/onyx/test_onyx_config.py | 2 +- tests/unit/modules/network/onyx/test_onyx_facts.py | 2 +- tests/unit/modules/network/onyx/test_onyx_igmp.py | 2 +- .../modules/network/onyx/test_onyx_igmp_interface.py | 2 +- .../unit/modules/network/onyx/test_onyx_igmp_vlan.py | 2 +- .../unit/modules/network/onyx/test_onyx_interface.py | 2 +- .../modules/network/onyx/test_onyx_l2_interface.py | 2 +- .../modules/network/onyx/test_onyx_l3_interface.py | 2 +- tests/unit/modules/network/onyx/test_onyx_linkagg.py | 2 +- tests/unit/modules/network/onyx/test_onyx_lldp.py | 2 +- .../modules/network/onyx/test_onyx_lldp_interface.py | 2 +- tests/unit/modules/network/onyx/test_onyx_magp.py | 2 +- .../unit/modules/network/onyx/test_onyx_mlag_ipl.py | 2 +- .../unit/modules/network/onyx/test_onyx_mlag_vip.py | 2 +- tests/unit/modules/network/onyx/test_onyx_ntp.py | 2 +- .../network/onyx/test_onyx_ntp_servers_peers.py | 2 +- tests/unit/modules/network/onyx/test_onyx_ospf.py | 2 +- .../modules/network/onyx/test_onyx_pfc_interface.py | 2 +- .../unit/modules/network/onyx/test_onyx_protocol.py | 2 +- .../modules/network/onyx/test_onyx_ptp_global.py | 2 +- .../modules/network/onyx/test_onyx_ptp_interface.py | 2 +- tests/unit/modules/network/onyx/test_onyx_qos.py | 2 +- tests/unit/modules/network/onyx/test_onyx_snmp.py | 2 +- .../modules/network/onyx/test_onyx_snmp_hosts.py | 2 +- .../modules/network/onyx/test_onyx_snmp_users.py | 2 +- .../modules/network/onyx/test_onyx_syslog_files.py | 2 +- .../modules/network/onyx/test_onyx_syslog_remote.py | 2 +- .../modules/network/onyx/test_onyx_traffic_class.py | 2 +- .../unit/modules/network/onyx/test_onyx_username.py | 2 +- tests/unit/modules/network/onyx/test_onyx_vlan.py | 2 +- tests/unit/modules/network/onyx/test_onyx_vxlan.py | 2 +- tests/unit/modules/network/onyx/test_onyx_wjh.py | 2 +- tests/unit/modules/network/opx/test_opx_cps.py | 2 +- .../network/routeros/test_routeros_command.py | 2 +- .../modules/network/routeros/test_routeros_facts.py | 2 +- .../unit/modules/network/slxos/test_slxos_command.py | 2 +- .../unit/modules/network/slxos/test_slxos_config.py | 2 +- tests/unit/modules/network/slxos/test_slxos_facts.py | 2 +- .../modules/network/slxos/test_slxos_interface.py | 2 +- .../modules/network/slxos/test_slxos_l2_interface.py | 2 +- .../modules/network/slxos/test_slxos_l3_interface.py | 2 +- .../unit/modules/network/slxos/test_slxos_linkagg.py | 2 +- tests/unit/modules/network/slxos/test_slxos_lldp.py | 2 +- tests/unit/modules/network/slxos/test_slxos_vlan.py | 2 +- tests/unit/modules/network/voss/test_voss_command.py | 2 +- tests/unit/modules/network/voss/test_voss_config.py | 2 +- tests/unit/modules/network/voss/test_voss_facts.py | 2 +- .../remote_management/oneview/hpe_test_utils.py | 8 ++++---- .../source_control/gitlab/test_gitlab_deploy_key.py | 8 ++++---- .../source_control/gitlab/test_gitlab_group.py | 8 ++++---- .../source_control/gitlab/test_gitlab_hook.py | 8 ++++---- .../source_control/gitlab/test_gitlab_project.py | 8 ++++---- .../source_control/gitlab/test_gitlab_runner.py | 8 ++++---- .../source_control/gitlab/test_gitlab_user.py | 12 ++++++------ tests/utils/shippable/shippable.sh | 2 ++ 202 files changed, 239 insertions(+), 233 deletions(-) diff --git a/plugins/modules/cloud/univention/udm_user.py b/plugins/modules/cloud/univention/udm_user.py index 1dfe56a7b1..5fad1c99bc 100644 --- a/plugins/modules/cloud/univention/udm_user.py +++ b/plugins/modules/cloud/univention/udm_user.py @@ -14,7 +14,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'supported_by': 'community'} -DOCUMENTATION = ''' +DOCUMENTATION = r''' --- module: udm_user author: diff --git a/tests/unit/modules/cloud/google/test_gcp_forwarding_rule.py b/tests/unit/modules/cloud/google/test_gcp_forwarding_rule.py index c8c99e720e..ebaf6bb51f 100644 --- a/tests/unit/modules/cloud/google/test_gcp_forwarding_rule.py +++ b/tests/unit/modules/cloud/google/test_gcp_forwarding_rule.py @@ -1,6 +1,6 @@ import unittest -from ansible_collections.community.general.plugins.modules.cloud.google._gcp_forwarding_rule import _build_global_forwarding_rule_dict +from ansible_collections.community.general.plugins.modules.cloud.google.gcp_forwarding_rule import _build_global_forwarding_rule_dict class TestGCPFowardingRule(unittest.TestCase): diff --git a/tests/unit/modules/cloud/google/test_gcp_url_map.py b/tests/unit/modules/cloud/google/test_gcp_url_map.py index 2943fe7906..9c3a17c5ce 100644 --- a/tests/unit/modules/cloud/google/test_gcp_url_map.py +++ b/tests/unit/modules/cloud/google/test_gcp_url_map.py @@ -1,6 +1,6 @@ import unittest -from ansible_collections.community.general.plugins.modules.cloud.google._gcp_url_map import _build_path_matchers, _build_url_map_dict +from ansible_collections.community.general.plugins.modules.cloud.google.gcp_url_map import _build_path_matchers, _build_url_map_dict class TestGCPUrlMap(unittest.TestCase): diff --git a/tests/unit/modules/cloud/xenserver/test_xenserver_guest_info.py b/tests/unit/modules/cloud/xenserver/test_xenserver_guest_info.py index 7f4a6cb0df..a6d58d90bc 100644 --- a/tests/unit/modules/cloud/xenserver/test_xenserver_guest_info.py +++ b/tests/unit/modules/cloud/xenserver/test_xenserver_guest_info.py @@ -10,7 +10,7 @@ __metaclass__ = type import json import pytest -from ..common import fake_xenapi_ref +from .common import fake_xenapi_ref pytestmark = pytest.mark.usefixtures('patch_ansible_module') diff --git a/tests/unit/modules/cloud/xenserver/test_xenserver_guest_powerstate.py b/tests/unit/modules/cloud/xenserver/test_xenserver_guest_powerstate.py index af1b75a692..2ecd2f7a03 100644 --- a/tests/unit/modules/cloud/xenserver/test_xenserver_guest_powerstate.py +++ b/tests/unit/modules/cloud/xenserver/test_xenserver_guest_powerstate.py @@ -10,7 +10,7 @@ __metaclass__ = type import json import pytest -from ..common import fake_xenapi_ref +from .common import fake_xenapi_ref testcase_set_powerstate = { diff --git a/tests/unit/modules/net_tools/nios/test_nios_a_record.py b/tests/unit/modules/net_tools/nios/test_nios_a_record.py index 7ad50be8ea..4e51b89467 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_a_record.py +++ b/tests/unit/modules/net_tools/nios/test_nios_a_record.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_a_record from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosARecordModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_aaaa_record.py b/tests/unit/modules/net_tools/nios/test_nios_aaaa_record.py index cf838e9d73..83f1984593 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_aaaa_record.py +++ b/tests/unit/modules/net_tools/nios/test_nios_aaaa_record.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_aaaa_record from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosAAAARecordModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_cname_record.py b/tests/unit/modules/net_tools/nios/test_nios_cname_record.py index d1aea81f76..12f97243eb 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_cname_record.py +++ b/tests/unit/modules/net_tools/nios/test_nios_cname_record.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_cname_record from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosCNameRecordModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_dns_view.py b/tests/unit/modules/net_tools/nios/test_nios_dns_view.py index 679b0abfd8..5d6fe90fd7 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_dns_view.py +++ b/tests/unit/modules/net_tools/nios/test_nios_dns_view.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_dns_view from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosDnsViewModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_fixed_address.py b/tests/unit/modules/net_tools/nios/test_nios_fixed_address.py index 460e876d65..2be401f7ce 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_fixed_address.py +++ b/tests/unit/modules/net_tools/nios/test_nios_fixed_address.py @@ -21,7 +21,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_fixed_address from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosFixedAddressModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_host_record.py b/tests/unit/modules/net_tools/nios/test_nios_host_record.py index a10d9ea1fe..0f7dc58aed 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_host_record.py +++ b/tests/unit/modules/net_tools/nios/test_nios_host_record.py @@ -21,7 +21,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_host_record from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosHostRecordModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_member.py b/tests/unit/modules/net_tools/nios/test_nios_member.py index c9ad0fcfea..e181b70d17 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_member.py +++ b/tests/unit/modules/net_tools/nios/test_nios_member.py @@ -21,7 +21,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_member from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosMemberModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_mx_record.py b/tests/unit/modules/net_tools/nios/test_nios_mx_record.py index c5a8b8e0e1..219e86bf5a 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_mx_record.py +++ b/tests/unit/modules/net_tools/nios/test_nios_mx_record.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_mx_record from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosMXRecordModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_naptr_record.py b/tests/unit/modules/net_tools/nios/test_nios_naptr_record.py index 0bb64bd8c0..510df69bbd 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_naptr_record.py +++ b/tests/unit/modules/net_tools/nios/test_nios_naptr_record.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_naptr_record from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosNAPTRRecordModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_network.py b/tests/unit/modules/net_tools/nios/test_nios_network.py index 5fabfcc24a..e14d39f54c 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_network.py +++ b/tests/unit/modules/net_tools/nios/test_nios_network.py @@ -21,7 +21,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_network from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosNetworkModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_network_view.py b/tests/unit/modules/net_tools/nios/test_nios_network_view.py index 0adadddb1c..9c38951b93 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_network_view.py +++ b/tests/unit/modules/net_tools/nios/test_nios_network_view.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_network_view from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosNetworkViewModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_nsgroup.py b/tests/unit/modules/net_tools/nios/test_nios_nsgroup.py index 9a50d6f34e..63f59bff29 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_nsgroup.py +++ b/tests/unit/modules/net_tools/nios/test_nios_nsgroup.py @@ -21,7 +21,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_nsgroup from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosNSGroupModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_ptr_record.py b/tests/unit/modules/net_tools/nios/test_nios_ptr_record.py index b8460c921b..7d51057dad 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_ptr_record.py +++ b/tests/unit/modules/net_tools/nios/test_nios_ptr_record.py @@ -21,7 +21,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_ptr_record from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosPTRRecordModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_srv_record.py b/tests/unit/modules/net_tools/nios/test_nios_srv_record.py index d3978468f4..39024657c7 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_srv_record.py +++ b/tests/unit/modules/net_tools/nios/test_nios_srv_record.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_srv_record from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosSRVRecordModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/nios/test_nios_zone.py b/tests/unit/modules/net_tools/nios/test_nios_zone.py index ec46ebf10d..a660b50ed0 100644 --- a/tests/unit/modules/net_tools/nios/test_nios_zone.py +++ b/tests/unit/modules/net_tools/nios/test_nios_zone.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.plugins.modules.net_tools.nios import nios_zone from ansible_collections.community.general.plugins.module_utils.net_tools.nios import api from ansible_collections.community.general.tests.unit.compat.mock import patch, MagicMock, Mock -from ..test_nios_module import TestNiosModule, load_fixture +from .test_nios_module import TestNiosModule, load_fixture class TestNiosZoneModule(TestNiosModule): diff --git a/tests/unit/modules/net_tools/test_hetzner_firewall_info.py b/tests/unit/modules/net_tools/test_hetzner_firewall_info.py index a9ce14c9ec..6b43663c9f 100644 --- a/tests/unit/modules/net_tools/test_hetzner_firewall_info.py +++ b/tests/unit/modules/net_tools/test_hetzner_firewall_info.py @@ -9,7 +9,7 @@ import pytest from ansible_collections.community.general.plugins.module_utils.hetzner import BASE_URL from ansible_collections.community.general.plugins.modules.net_tools import hetzner_firewall_info -from ..test_hetzner_firewall import FetchUrlCall, run_module_success, run_module_failed +from .test_hetzner_firewall import FetchUrlCall, run_module_success, run_module_failed # Tests for state (absent and present) diff --git a/tests/unit/modules/network/aireos/test_aireos_command.py b/tests/unit/modules/network/aireos/test_aireos_command.py index 4f491d4af1..aaf56dbafe 100644 --- a/tests/unit/modules/network/aireos/test_aireos_command.py +++ b/tests/unit/modules/network/aireos/test_aireos_command.py @@ -24,7 +24,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.aireos import aireos_command from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..aireos_module import TestCiscoWlcModule, load_fixture +from .aireos_module import TestCiscoWlcModule, load_fixture from ansible.module_utils import six diff --git a/tests/unit/modules/network/aireos/test_aireos_config.py b/tests/unit/modules/network/aireos/test_aireos_config.py index 4357c36b2b..ba60820cb3 100644 --- a/tests/unit/modules/network/aireos/test_aireos_config.py +++ b/tests/unit/modules/network/aireos/test_aireos_config.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.aireos import aireos_config from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..aireos_module import TestCiscoWlcModule, load_fixture +from .aireos_module import TestCiscoWlcModule, load_fixture class TestCiscoWlcConfigModule(TestCiscoWlcModule): diff --git a/tests/unit/modules/network/apconos/test_apconos_command.py b/tests/unit/modules/network/apconos/test_apconos_command.py index 39ba6140df..2b635542a6 100644 --- a/tests/unit/modules/network/apconos/test_apconos_command.py +++ b/tests/unit/modules/network/apconos/test_apconos_command.py @@ -24,7 +24,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.apconos import apconos_command from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..apconos_module import TestApconosModule, load_fixture +from .apconos_module import TestApconosModule, load_fixture class TestApconosCommandModule(TestApconosModule): diff --git a/tests/unit/modules/network/aruba/test_aruba_command.py b/tests/unit/modules/network/aruba/test_aruba_command.py index 8084459420..1da5e19c3d 100644 --- a/tests/unit/modules/network/aruba/test_aruba_command.py +++ b/tests/unit/modules/network/aruba/test_aruba_command.py @@ -24,7 +24,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.aruba import aruba_command from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..aruba_module import TestArubaModule, load_fixture +from .aruba_module import TestArubaModule, load_fixture class TestArubaCommandModule(TestArubaModule): diff --git a/tests/unit/modules/network/aruba/test_aruba_config.py b/tests/unit/modules/network/aruba/test_aruba_config.py index 619c248312..55cf34f105 100644 --- a/tests/unit/modules/network/aruba/test_aruba_config.py +++ b/tests/unit/modules/network/aruba/test_aruba_config.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.aruba import aruba_config from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..aruba_module import TestArubaModule, load_fixture +from .aruba_module import TestArubaModule, load_fixture class TestArubaConfigModule(TestArubaModule): diff --git a/tests/unit/modules/network/cloudengine/test_ce_lacp.py b/tests/unit/modules/network/cloudengine/test_ce_lacp.py index 5de1d3e325..2c19666d5b 100644 --- a/tests/unit/modules/network/cloudengine/test_ce_lacp.py +++ b/tests/unit/modules/network/cloudengine/test_ce_lacp.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cloudengine import ce_lacp from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..ce_module import TestCloudEngineModule, load_fixture +from .ce_module import TestCloudEngineModule, load_fixture class TestCloudEngineLacpModule(TestCloudEngineModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_banner.py b/tests/unit/modules/network/cnos/test_cnos_banner.py index ac44b39980..e2f845df2f 100644 --- a/tests/unit/modules/network/cnos/test_cnos_banner.py +++ b/tests/unit/modules/network/cnos/test_cnos_banner.py @@ -20,7 +20,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_banner from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosBannerModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_bgp.py b/tests/unit/modules/network/cnos/test_cnos_bgp.py index 7f4be77789..edc3c49692 100644 --- a/tests/unit/modules/network/cnos/test_cnos_bgp.py +++ b/tests/unit/modules/network/cnos/test_cnos_bgp.py @@ -4,7 +4,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_bgp from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosBgpModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_command.py b/tests/unit/modules/network/cnos/test_cnos_command.py index b61477761f..fda27bcc6e 100644 --- a/tests/unit/modules/network/cnos/test_cnos_command.py +++ b/tests/unit/modules/network/cnos/test_cnos_command.py @@ -22,7 +22,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_command from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosCommandModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_config.py b/tests/unit/modules/network/cnos/test_cnos_config.py index 0368ce3a59..220e0e5d26 100644 --- a/tests/unit/modules/network/cnos/test_cnos_config.py +++ b/tests/unit/modules/network/cnos/test_cnos_config.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_config -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture from ansible_collections.community.general.tests.unit.modules.utils import set_module_args diff --git a/tests/unit/modules/network/cnos/test_cnos_facts.py b/tests/unit/modules/network/cnos/test_cnos_facts.py index 19d58996a8..67dab9929f 100644 --- a/tests/unit/modules/network/cnos/test_cnos_facts.py +++ b/tests/unit/modules/network/cnos/test_cnos_facts.py @@ -22,7 +22,7 @@ __metaclass__ = type import json from ansible_collections.community.general.tests.unit.compat.mock import patch -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture from ansible_collections.community.general.plugins.modules.network.cnos import cnos_facts from ansible_collections.community.general.tests.unit.modules.utils import set_module_args diff --git a/tests/unit/modules/network/cnos/test_cnos_interface.py b/tests/unit/modules/network/cnos/test_cnos_interface.py index 76b16ded30..3248c0ed0c 100644 --- a/tests/unit/modules/network/cnos/test_cnos_interface.py +++ b/tests/unit/modules/network/cnos/test_cnos_interface.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_interface from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosInterfaceModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_l2_interface.py b/tests/unit/modules/network/cnos/test_cnos_l2_interface.py index 9403b2ffe2..30130a4f97 100644 --- a/tests/unit/modules/network/cnos/test_cnos_l2_interface.py +++ b/tests/unit/modules/network/cnos/test_cnos_l2_interface.py @@ -22,7 +22,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_l2_interface from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosL2InterfaceModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_l3_interface.py b/tests/unit/modules/network/cnos/test_cnos_l3_interface.py index d51e9306f1..ed86caa13d 100644 --- a/tests/unit/modules/network/cnos/test_cnos_l3_interface.py +++ b/tests/unit/modules/network/cnos/test_cnos_l3_interface.py @@ -22,7 +22,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_l3_interface from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosL3InterfaceModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_linkagg.py b/tests/unit/modules/network/cnos/test_cnos_linkagg.py index 39b12b62af..b818408d8a 100644 --- a/tests/unit/modules/network/cnos/test_cnos_linkagg.py +++ b/tests/unit/modules/network/cnos/test_cnos_linkagg.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_linkagg from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosLinkaggModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_lldp.py b/tests/unit/modules/network/cnos/test_cnos_lldp.py index 842f3a75ae..25053c15f2 100644 --- a/tests/unit/modules/network/cnos/test_cnos_lldp.py +++ b/tests/unit/modules/network/cnos/test_cnos_lldp.py @@ -22,7 +22,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_lldp from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosLldpModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_logging.py b/tests/unit/modules/network/cnos/test_cnos_logging.py index 41029a972d..06969d791f 100644 --- a/tests/unit/modules/network/cnos/test_cnos_logging.py +++ b/tests/unit/modules/network/cnos/test_cnos_logging.py @@ -24,7 +24,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_logging from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosLoggingModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_static_route.py b/tests/unit/modules/network/cnos/test_cnos_static_route.py index 1ea9ec7566..f32c6506f8 100644 --- a/tests/unit/modules/network/cnos/test_cnos_static_route.py +++ b/tests/unit/modules/network/cnos/test_cnos_static_route.py @@ -22,7 +22,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_static_route -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture from ansible_collections.community.general.tests.unit.modules.utils import set_module_args diff --git a/tests/unit/modules/network/cnos/test_cnos_system.py b/tests/unit/modules/network/cnos/test_cnos_system.py index 0f71285d07..f321c77767 100644 --- a/tests/unit/modules/network/cnos/test_cnos_system.py +++ b/tests/unit/modules/network/cnos/test_cnos_system.py @@ -24,7 +24,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_system from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosSystemModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_user.py b/tests/unit/modules/network/cnos/test_cnos_user.py index 47fb6c0f12..b278aae03a 100644 --- a/tests/unit/modules/network/cnos/test_cnos_user.py +++ b/tests/unit/modules/network/cnos/test_cnos_user.py @@ -20,7 +20,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_user from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosUserModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_vlag.py b/tests/unit/modules/network/cnos/test_cnos_vlag.py index 15e5bfc437..a80ae7ee34 100644 --- a/tests/unit/modules/network/cnos/test_cnos_vlag.py +++ b/tests/unit/modules/network/cnos/test_cnos_vlag.py @@ -4,7 +4,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_vlag from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosVlagModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_vlan.py b/tests/unit/modules/network/cnos/test_cnos_vlan.py index 4d7e6cc69f..35bc77a713 100644 --- a/tests/unit/modules/network/cnos/test_cnos_vlan.py +++ b/tests/unit/modules/network/cnos/test_cnos_vlan.py @@ -23,7 +23,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_vlan from ansible_collections.community.general.plugins.modules.network.cnos.cnos_vlan import parse_vlan_brief from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosVlanModule(TestCnosModule): diff --git a/tests/unit/modules/network/cnos/test_cnos_vrf.py b/tests/unit/modules/network/cnos/test_cnos_vrf.py index 9bba92ff96..48944b9154 100644 --- a/tests/unit/modules/network/cnos/test_cnos_vrf.py +++ b/tests/unit/modules/network/cnos/test_cnos_vrf.py @@ -22,7 +22,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.cnos import cnos_vrf from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..cnos_module import TestCnosModule, load_fixture +from .cnos_module import TestCnosModule, load_fixture class TestCnosVrfModule(TestCnosModule): diff --git a/tests/unit/modules/network/edgeos/test_edgeos_command.py b/tests/unit/modules/network/edgeos/test_edgeos_command.py index 8a69bb9db9..eb767b04f7 100644 --- a/tests/unit/modules/network/edgeos/test_edgeos_command.py +++ b/tests/unit/modules/network/edgeos/test_edgeos_command.py @@ -24,7 +24,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.edgeos import edgeos_command from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..edgeos_module import TestEdgeosModule, load_fixture +from .edgeos_module import TestEdgeosModule, load_fixture class TestEdgeosCommandModule(TestEdgeosModule): diff --git a/tests/unit/modules/network/edgeos/test_edgeos_config.py b/tests/unit/modules/network/edgeos/test_edgeos_config.py index 3f4b50e8af..6dfe023d44 100644 --- a/tests/unit/modules/network/edgeos/test_edgeos_config.py +++ b/tests/unit/modules/network/edgeos/test_edgeos_config.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.edgeos import edgeos_config from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..edgeos_module import TestEdgeosModule, load_fixture +from .edgeos_module import TestEdgeosModule, load_fixture class TestEdgeosConfigModule(TestEdgeosModule): diff --git a/tests/unit/modules/network/edgeos/test_edgeos_facts.py b/tests/unit/modules/network/edgeos/test_edgeos_facts.py index a792cda983..927471338d 100644 --- a/tests/unit/modules/network/edgeos/test_edgeos_facts.py +++ b/tests/unit/modules/network/edgeos/test_edgeos_facts.py @@ -24,7 +24,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.edgeos import edgeos_facts from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..edgeos_module import TestEdgeosModule, load_fixture +from .edgeos_module import TestEdgeosModule, load_fixture class TestEdgeosFactsModule(TestEdgeosModule): diff --git a/tests/unit/modules/network/edgeswitch/test_edgeswitch_facts.py b/tests/unit/modules/network/edgeswitch/test_edgeswitch_facts.py index a3f89c74ce..2607558e1d 100644 --- a/tests/unit/modules/network/edgeswitch/test_edgeswitch_facts.py +++ b/tests/unit/modules/network/edgeswitch/test_edgeswitch_facts.py @@ -21,7 +21,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.edgeswitch import edgeswitch_facts from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..edgeswitch_module import TestEdgeswitchModule, load_fixture +from .edgeswitch_module import TestEdgeswitchModule, load_fixture class TestEdgeswitchFactsModule(TestEdgeswitchModule): diff --git a/tests/unit/modules/network/edgeswitch/test_edgeswitch_vlan.py b/tests/unit/modules/network/edgeswitch/test_edgeswitch_vlan.py index 5d78ff3cae..5dbe2848de 100644 --- a/tests/unit/modules/network/edgeswitch/test_edgeswitch_vlan.py +++ b/tests/unit/modules/network/edgeswitch/test_edgeswitch_vlan.py @@ -22,7 +22,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.edgeswitch import edgeswitch_vlan from ansible_collections.community.general.plugins.modules.network.edgeswitch.edgeswitch_vlan import parse_vlan_brief, parse_interfaces_switchport from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..edgeswitch_module import TestEdgeswitchModule, load_fixture +from .edgeswitch_module import TestEdgeswitchModule, load_fixture class TestEdgeswitchVlanModule(TestEdgeswitchModule): diff --git a/tests/unit/modules/network/enos/test_enos_command.py b/tests/unit/modules/network/enos/test_enos_command.py index 3ac852d8db..43d4039fae 100644 --- a/tests/unit/modules/network/enos/test_enos_command.py +++ b/tests/unit/modules/network/enos/test_enos_command.py @@ -22,7 +22,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.enos import enos_command from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..enos_module import TestEnosModule, load_fixture +from .enos_module import TestEnosModule, load_fixture class TestEnosCommandModule(TestEnosModule): diff --git a/tests/unit/modules/network/enos/test_enos_config.py b/tests/unit/modules/network/enos/test_enos_config.py index f605cfa69f..7ed86de0fc 100644 --- a/tests/unit/modules/network/enos/test_enos_config.py +++ b/tests/unit/modules/network/enos/test_enos_config.py @@ -22,7 +22,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.enos import enos_config -from ..enos_module import TestEnosModule, load_fixture +from .enos_module import TestEnosModule, load_fixture from ansible_collections.community.general.tests.unit.modules.utils import set_module_args diff --git a/tests/unit/modules/network/enos/test_enos_facts.py b/tests/unit/modules/network/enos/test_enos_facts.py index e8a7aa3cb1..c66a7bf2b3 100644 --- a/tests/unit/modules/network/enos/test_enos_facts.py +++ b/tests/unit/modules/network/enos/test_enos_facts.py @@ -22,7 +22,7 @@ __metaclass__ = type import json from ansible_collections.community.general.tests.unit.compat.mock import patch -from ..enos_module import TestEnosModule, load_fixture +from .enos_module import TestEnosModule, load_fixture from ansible_collections.community.general.plugins.modules.network.enos import enos_facts from ansible_collections.community.general.tests.unit.modules.utils import set_module_args diff --git a/tests/unit/modules/network/eric_eccli/test_eric_eccli_command.py b/tests/unit/modules/network/eric_eccli/test_eric_eccli_command.py index 58de394fd8..e73049dfd7 100644 --- a/tests/unit/modules/network/eric_eccli/test_eric_eccli_command.py +++ b/tests/unit/modules/network/eric_eccli/test_eric_eccli_command.py @@ -24,7 +24,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.eric_eccli import eric_eccli_command from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..eccli_module import TestEccliModule, load_fixture +from .eccli_module import TestEccliModule, load_fixture class TestEccliCommandModule(TestEccliModule): diff --git a/tests/unit/modules/network/exos/test_exos_command.py b/tests/unit/modules/network/exos/test_exos_command.py index 8de397a59f..8d9995e1e5 100644 --- a/tests/unit/modules/network/exos/test_exos_command.py +++ b/tests/unit/modules/network/exos/test_exos_command.py @@ -24,7 +24,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.modules.network.exos import exos_command -from ..exos_module import TestExosModule, load_fixture +from .exos_module import TestExosModule, load_fixture class TestExosCommandModule(TestExosModule): diff --git a/tests/unit/modules/network/exos/test_exos_config.py b/tests/unit/modules/network/exos/test_exos_config.py index 22100b32df..f37d3c932e 100644 --- a/tests/unit/modules/network/exos/test_exos_config.py +++ b/tests/unit/modules/network/exos/test_exos_config.py @@ -23,7 +23,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch, from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.cliconf.exos import Cliconf from ansible_collections.community.general.plugins.modules.network.exos import exos_config -from ..exos_module import TestExosModule, load_fixture +from .exos_module import TestExosModule, load_fixture class TestExosConfigModule(TestExosModule): diff --git a/tests/unit/modules/network/exos/test_exos_facts.py b/tests/unit/modules/network/exos/test_exos_facts.py index c615d5ad9b..01b27d54fa 100644 --- a/tests/unit/modules/network/exos/test_exos_facts.py +++ b/tests/unit/modules/network/exos/test_exos_facts.py @@ -26,7 +26,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible.module_utils.common._collections_compat import Mapping from ansible_collections.community.general.plugins.modules.network.exos import exos_facts -from ..exos_module import TestExosModule +from .exos_module import TestExosModule class TestExosFactsModule(TestExosModule): diff --git a/tests/unit/modules/network/f5/test_bigip_security_address_list.py b/tests/unit/modules/network/f5/test_bigip_security_address_list.py index 15ae345836..b7c600b097 100644 --- a/tests/unit/modules/network/f5/test_bigip_security_address_list.py +++ b/tests/unit/modules/network/f5/test_bigip_security_address_list.py @@ -28,10 +28,10 @@ try: from test.unit.modules.utils import set_module_args except ImportError: try: - from ansible.modules.network.f5.bigip_security_address_list import ApiParameters - from ansible.modules.network.f5.bigip_security_address_list import ModuleParameters - from ansible.modules.network.f5.bigip_security_address_list import ModuleManager - from ansible.modules.network.f5.bigip_security_address_list import ArgumentSpec + from ansible_collections.community.general.plugins.modules.network.f5.bigip_security_address_list import ApiParameters + from ansible_collections.community.general.plugins.modules.network.f5.bigip_security_address_list import ModuleParameters + from ansible_collections.community.general.plugins.modules.network.f5.bigip_security_address_list import ModuleManager + from ansible_collections.community.general.plugins.modules.network.f5.bigip_security_address_list import ArgumentSpec from ansible_collections.community.general.tests.unit.modules.utils import set_module_args except ImportError: pytestmark.append(pytest.mark.skip("F5 Ansible modules require the f5-sdk Python library")) diff --git a/tests/unit/modules/network/f5/test_bigip_security_port_list.py b/tests/unit/modules/network/f5/test_bigip_security_port_list.py index 0d94465e0c..4f86a41219 100644 --- a/tests/unit/modules/network/f5/test_bigip_security_port_list.py +++ b/tests/unit/modules/network/f5/test_bigip_security_port_list.py @@ -28,10 +28,10 @@ try: from test.unit.modules.utils import set_module_args except ImportError: try: - from ansible.modules.network.f5.bigip_security_port_list import ApiParameters - from ansible.modules.network.f5.bigip_security_port_list import ModuleParameters - from ansible.modules.network.f5.bigip_security_port_list import ModuleManager - from ansible.modules.network.f5.bigip_security_port_list import ArgumentSpec + from ansible_collections.community.general.plugins.modules.network.f5.bigip_security_port_list import ApiParameters + from ansible_collections.community.general.plugins.modules.network.f5.bigip_security_port_list import ModuleParameters + from ansible_collections.community.general.plugins.modules.network.f5.bigip_security_port_list import ModuleManager + from ansible_collections.community.general.plugins.modules.network.f5.bigip_security_port_list import ArgumentSpec from ansible_collections.community.general.tests.unit.modules.utils import set_module_args except ImportError: pytestmark.append(pytest.mark.skip("F5 Ansible modules require the f5-sdk Python library")) diff --git a/tests/unit/modules/network/fortimanager/test_fmgr_device_provision_template.py b/tests/unit/modules/network/fortimanager/test_fmgr_device_provision_template.py index fb41979518..be8e8b49e3 100644 --- a/tests/unit/modules/network/fortimanager/test_fmgr_device_provision_template.py +++ b/tests/unit/modules/network/fortimanager/test_fmgr_device_provision_template.py @@ -47,7 +47,8 @@ def module_mock(mocker): @pytest.fixture(autouse=True) def connection_mock(mocker): - connection_class_mock = mocker.patch('ansible.modules.network.fortimanager.' + connection_class_mock = mocker.patch('ansible_collections.community.general.' + 'plugins.modules.network.fortimanager.' 'fmgr_device_provision_template.Connection') return connection_class_mock diff --git a/tests/unit/modules/network/fortimanager/test_fmgr_provisioning.py b/tests/unit/modules/network/fortimanager/test_fmgr_provisioning.py index 189319dc53..e4a58828eb 100644 --- a/tests/unit/modules/network/fortimanager/test_fmgr_provisioning.py +++ b/tests/unit/modules/network/fortimanager/test_fmgr_provisioning.py @@ -24,7 +24,7 @@ import pytest pytestmark = [] try: from ansible_collections.community.general.plugins.modules.network.fortimanager import fmgr_provisioning - from ..fortimanager_module import TestFortimanagerModule + from .fortimanager_module import TestFortimanagerModule from ansible_collections.community.general.tests.unit.modules.utils import set_module_args except ImportError: pytestmark.append(pytest.mark.skip("Could not load required modules for testing")) diff --git a/tests/unit/modules/network/icx/test_icx_banner.py b/tests/unit/modules/network/icx/test_icx_banner.py index 49ea4ddac0..1c59d0d2ea 100644 --- a/tests/unit/modules/network/icx/test_icx_banner.py +++ b/tests/unit/modules/network/icx/test_icx_banner.py @@ -5,7 +5,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_banner from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXBannerModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_command.py b/tests/unit/modules/network/icx/test_icx_command.py index 369ca5b187..c4179a86d2 100644 --- a/tests/unit/modules/network/icx/test_icx_command.py +++ b/tests/unit/modules/network/icx/test_icx_command.py @@ -7,7 +7,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_command from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXCommandModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_config.py b/tests/unit/modules/network/icx/test_icx_config.py index 84f87476e1..bbe0a1670b 100644 --- a/tests/unit/modules/network/icx/test_icx_config.py +++ b/tests/unit/modules/network/icx/test_icx_config.py @@ -7,7 +7,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch, from ansible_collections.community.general.plugins.modules.network.icx import icx_config from ansible_collections.community.general.plugins.cliconf.icx import Cliconf from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXConfigModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_copy.py b/tests/unit/modules/network/icx/test_icx_copy.py index fca673f144..74c9459700 100644 --- a/tests/unit/modules/network/icx/test_icx_copy.py +++ b/tests/unit/modules/network/icx/test_icx_copy.py @@ -6,7 +6,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_copy from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXSCPModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_facts.py b/tests/unit/modules/network/icx/test_icx_facts.py index a62111b044..cbc937c540 100644 --- a/tests/unit/modules/network/icx/test_icx_facts.py +++ b/tests/unit/modules/network/icx/test_icx_facts.py @@ -6,7 +6,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_facts from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXFactsModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_interface.py b/tests/unit/modules/network/icx/test_icx_interface.py index c48881b151..186e73a87d 100644 --- a/tests/unit/modules/network/icx/test_icx_interface.py +++ b/tests/unit/modules/network/icx/test_icx_interface.py @@ -5,7 +5,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_interface from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXInterfaceModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_l3_interface.py b/tests/unit/modules/network/icx/test_icx_l3_interface.py index e08697950d..4ba7c0c788 100644 --- a/tests/unit/modules/network/icx/test_icx_l3_interface.py +++ b/tests/unit/modules/network/icx/test_icx_l3_interface.py @@ -6,7 +6,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_l3_interface from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXFactsModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_linkagg.py b/tests/unit/modules/network/icx/test_icx_linkagg.py index b76d85a4e2..ded92b9ea8 100644 --- a/tests/unit/modules/network/icx/test_icx_linkagg.py +++ b/tests/unit/modules/network/icx/test_icx_linkagg.py @@ -6,7 +6,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_linkagg from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXLinkaggModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_lldp.py b/tests/unit/modules/network/icx/test_icx_lldp.py index 257b3f0496..840b614fc7 100644 --- a/tests/unit/modules/network/icx/test_icx_lldp.py +++ b/tests/unit/modules/network/icx/test_icx_lldp.py @@ -5,7 +5,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_lldp from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXlldpModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_logging.py b/tests/unit/modules/network/icx/test_icx_logging.py index 5a551b8b35..5175db92f2 100644 --- a/tests/unit/modules/network/icx/test_icx_logging.py +++ b/tests/unit/modules/network/icx/test_icx_logging.py @@ -8,7 +8,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_logging from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXLoggingModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_ping.py b/tests/unit/modules/network/icx/test_icx_ping.py index 35422aee7b..0678acdca3 100644 --- a/tests/unit/modules/network/icx/test_icx_ping.py +++ b/tests/unit/modules/network/icx/test_icx_ping.py @@ -6,7 +6,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_ping from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXPingModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_static_route.py b/tests/unit/modules/network/icx/test_icx_static_route.py index aca84f9e35..f70e4a80f4 100644 --- a/tests/unit/modules/network/icx/test_icx_static_route.py +++ b/tests/unit/modules/network/icx/test_icx_static_route.py @@ -5,7 +5,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_static_route from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXStaticRouteModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_system.py b/tests/unit/modules/network/icx/test_icx_system.py index bfe8e6ee99..ebdc209cd6 100644 --- a/tests/unit/modules/network/icx/test_icx_system.py +++ b/tests/unit/modules/network/icx/test_icx_system.py @@ -8,7 +8,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_system from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXSystemModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_user.py b/tests/unit/modules/network/icx/test_icx_user.py index 3d7d809fbf..0281db384a 100644 --- a/tests/unit/modules/network/icx/test_icx_user.py +++ b/tests/unit/modules/network/icx/test_icx_user.py @@ -6,7 +6,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_user from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXSCPModule(TestICXModule): diff --git a/tests/unit/modules/network/icx/test_icx_vlan.py b/tests/unit/modules/network/icx/test_icx_vlan.py index e045f830e3..a2fd36f55d 100644 --- a/tests/unit/modules/network/icx/test_icx_vlan.py +++ b/tests/unit/modules/network/icx/test_icx_vlan.py @@ -5,7 +5,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.icx import icx_vlan from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..icx_module import TestICXModule, load_fixture +from .icx_module import TestICXModule, load_fixture class TestICXVlanModule(TestICXModule): diff --git a/tests/unit/modules/network/ingate/test_ig_config.py b/tests/unit/modules/network/ingate/test_ig_config.py index c34213d471..3f710d3e01 100644 --- a/tests/unit/modules/network/ingate/test_ig_config.py +++ b/tests/unit/modules/network/ingate/test_ig_config.py @@ -25,7 +25,7 @@ import os from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.ingate import ig_config from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..ingate_module import TestIngateModule, load_fixture +from .ingate_module import TestIngateModule, load_fixture class TestConfigModule(TestIngateModule): @@ -35,7 +35,8 @@ class TestConfigModule(TestIngateModule): def setUp(self): super(TestConfigModule, self).setUp() - self.mock_make_request = patch('ansible.modules.network.ingate.' + self.mock_make_request = patch('ansible_collections.community.general.' + 'plugins.modules.network.ingate.' 'ig_config.make_request') self.make_request = self.mock_make_request.start() # ATM the Ingate Python SDK is not needed in this unit test. diff --git a/tests/unit/modules/network/ingate/test_ig_unit_information.py b/tests/unit/modules/network/ingate/test_ig_unit_information.py index dbc02d9315..9761e2365c 100644 --- a/tests/unit/modules/network/ingate/test_ig_unit_information.py +++ b/tests/unit/modules/network/ingate/test_ig_unit_information.py @@ -11,7 +11,7 @@ import os from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.ingate import ig_unit_information from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..ingate_module import TestIngateModule, load_fixture +from .ingate_module import TestIngateModule, load_fixture class TestUnitInformationModule(TestIngateModule): @@ -21,11 +21,13 @@ class TestUnitInformationModule(TestIngateModule): def setUp(self): super(TestUnitInformationModule, self).setUp() - self.mock_make_request = patch('ansible.modules.network.ingate.' + self.mock_make_request = patch('ansible_collections.community.general.' + 'plugins.modules.network.ingate.' 'ig_unit_information.make_request') self.make_request = self.mock_make_request.start() - self.mock_is_ingatesdk_installed = patch('ansible.modules.network.ingate.' + self.mock_is_ingatesdk_installed = patch('ansible_collections.community.general.' + 'plugins.modules.network.ingate.' 'ig_unit_information.is_ingatesdk_installed') self.is_ingatesdk_installed = self.mock_is_ingatesdk_installed.start() diff --git a/tests/unit/modules/network/ironware/test_ironware_command.py b/tests/unit/modules/network/ironware/test_ironware_command.py index 4d2c592c93..67f9a76f69 100644 --- a/tests/unit/modules/network/ironware/test_ironware_command.py +++ b/tests/unit/modules/network/ironware/test_ironware_command.py @@ -22,7 +22,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.modules.network.ironware import ironware_command -from ..ironware_module import TestIronwareModule, load_fixture +from .ironware_module import TestIronwareModule, load_fixture class TestIronwareCommandModule(TestIronwareModule): diff --git a/tests/unit/modules/network/ironware/test_ironware_config.py b/tests/unit/modules/network/ironware/test_ironware_config.py index 9c8eea6bb9..9b5d8d2712 100644 --- a/tests/unit/modules/network/ironware/test_ironware_config.py +++ b/tests/unit/modules/network/ironware/test_ironware_config.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.modules.network.ironware import ironware_config -from ..ironware_module import TestIronwareModule, load_fixture +from .ironware_module import TestIronwareModule, load_fixture class TestIronwareConfigModule(TestIronwareModule): diff --git a/tests/unit/modules/network/ironware/test_ironware_facts.py b/tests/unit/modules/network/ironware/test_ironware_facts.py index e29b4db64b..8499b1f6e9 100644 --- a/tests/unit/modules/network/ironware/test_ironware_facts.py +++ b/tests/unit/modules/network/ironware/test_ironware_facts.py @@ -24,7 +24,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.modules.network.ironware import ironware_facts -from ..ironware_module import TestIronwareModule, load_fixture +from .ironware_module import TestIronwareModule, load_fixture class TestIronwareFacts(TestIronwareModule): diff --git a/tests/unit/modules/network/netscaler/test_netscaler_cs_action.py b/tests/unit/modules/network/netscaler/test_netscaler_cs_action.py index 3425182266..8a32a97029 100644 --- a/tests/unit/modules/network/netscaler/test_netscaler_cs_action.py +++ b/tests/unit/modules/network/netscaler/test_netscaler_cs_action.py @@ -19,7 +19,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch, Mock, MagicMock, call from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..netscaler_module import TestModule, nitro_base_patcher +from .netscaler_module import TestModule, nitro_base_patcher import sys diff --git a/tests/unit/modules/network/netscaler/test_netscaler_cs_policy.py b/tests/unit/modules/network/netscaler/test_netscaler_cs_policy.py index 901a75b38b..311e3bf17e 100644 --- a/tests/unit/modules/network/netscaler/test_netscaler_cs_policy.py +++ b/tests/unit/modules/network/netscaler/test_netscaler_cs_policy.py @@ -26,7 +26,7 @@ if sys.version_info[:2] != (2, 6): from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..netscaler_module import TestModule, nitro_base_patcher +from .netscaler_module import TestModule, nitro_base_patcher class TestNetscalerCSPolicyModule(TestModule): diff --git a/tests/unit/modules/network/netscaler/test_netscaler_cs_vserver.py b/tests/unit/modules/network/netscaler/test_netscaler_cs_vserver.py index e66ce461a0..8ad779fa52 100644 --- a/tests/unit/modules/network/netscaler/test_netscaler_cs_vserver.py +++ b/tests/unit/modules/network/netscaler/test_netscaler_cs_vserver.py @@ -19,7 +19,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch, Mock, MagicMock, call from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..netscaler_module import TestModule, nitro_base_patcher +from .netscaler_module import TestModule, nitro_base_patcher import sys diff --git a/tests/unit/modules/network/netscaler/test_netscaler_gslb_service.py b/tests/unit/modules/network/netscaler/test_netscaler_gslb_service.py index e57a21d5e5..a2ec4d1942 100644 --- a/tests/unit/modules/network/netscaler/test_netscaler_gslb_service.py +++ b/tests/unit/modules/network/netscaler/test_netscaler_gslb_service.py @@ -19,7 +19,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch, Mock, MagicMock, call from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..netscaler_module import TestModule, nitro_base_patcher +from .netscaler_module import TestModule, nitro_base_patcher import sys diff --git a/tests/unit/modules/network/netscaler/test_netscaler_gslb_site.py b/tests/unit/modules/network/netscaler/test_netscaler_gslb_site.py index aebf882349..ceb0cc05cf 100644 --- a/tests/unit/modules/network/netscaler/test_netscaler_gslb_site.py +++ b/tests/unit/modules/network/netscaler/test_netscaler_gslb_site.py @@ -19,7 +19,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch, Mock, MagicMock, call from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..netscaler_module import TestModule, nitro_base_patcher +from .netscaler_module import TestModule, nitro_base_patcher import sys diff --git a/tests/unit/modules/network/netscaler/test_netscaler_gslb_vserver.py b/tests/unit/modules/network/netscaler/test_netscaler_gslb_vserver.py index 548f240635..569d5ead79 100644 --- a/tests/unit/modules/network/netscaler/test_netscaler_gslb_vserver.py +++ b/tests/unit/modules/network/netscaler/test_netscaler_gslb_vserver.py @@ -19,7 +19,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch, Mock, MagicMock, call from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..netscaler_module import TestModule, nitro_base_patcher +from .netscaler_module import TestModule, nitro_base_patcher import sys diff --git a/tests/unit/modules/network/netscaler/test_netscaler_lb_monitor.py b/tests/unit/modules/network/netscaler/test_netscaler_lb_monitor.py index 1c89f87b1d..8a9f3aded4 100644 --- a/tests/unit/modules/network/netscaler/test_netscaler_lb_monitor.py +++ b/tests/unit/modules/network/netscaler/test_netscaler_lb_monitor.py @@ -19,7 +19,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch, Mock, MagicMock, call from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..netscaler_module import TestModule, nitro_base_patcher +from .netscaler_module import TestModule, nitro_base_patcher import sys diff --git a/tests/unit/modules/network/netscaler/test_netscaler_lb_vserver.py b/tests/unit/modules/network/netscaler/test_netscaler_lb_vserver.py index 35935d834d..5d1dcfcc8d 100644 --- a/tests/unit/modules/network/netscaler/test_netscaler_lb_vserver.py +++ b/tests/unit/modules/network/netscaler/test_netscaler_lb_vserver.py @@ -19,7 +19,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch, Mock, MagicMock, call from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..netscaler_module import TestModule, nitro_base_patcher +from .netscaler_module import TestModule, nitro_base_patcher import sys diff --git a/tests/unit/modules/network/netscaler/test_netscaler_nitro_request.py b/tests/unit/modules/network/netscaler/test_netscaler_nitro_request.py index f544682120..3d2eaa0c96 100644 --- a/tests/unit/modules/network/netscaler/test_netscaler_nitro_request.py +++ b/tests/unit/modules/network/netscaler/test_netscaler_nitro_request.py @@ -18,7 +18,7 @@ # from ansible_collections.community.general.tests.unit.compat.mock import patch, Mock, call -from ..netscaler_module import TestModule +from .netscaler_module import TestModule import copy import tempfile import json diff --git a/tests/unit/modules/network/netscaler/test_netscaler_save_config.py b/tests/unit/modules/network/netscaler/test_netscaler_save_config.py index c8712c3ce8..a9b380d705 100644 --- a/tests/unit/modules/network/netscaler/test_netscaler_save_config.py +++ b/tests/unit/modules/network/netscaler/test_netscaler_save_config.py @@ -19,7 +19,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch, Mock, call from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..netscaler_module import TestModule, nitro_base_patcher +from .netscaler_module import TestModule, nitro_base_patcher import sys diff --git a/tests/unit/modules/network/netscaler/test_netscaler_server.py b/tests/unit/modules/network/netscaler/test_netscaler_server.py index 86680ee1e1..b85d9ae52d 100644 --- a/tests/unit/modules/network/netscaler/test_netscaler_server.py +++ b/tests/unit/modules/network/netscaler/test_netscaler_server.py @@ -19,7 +19,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch, Mock, MagicMock, call from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..netscaler_module import TestModule, nitro_base_patcher +from .netscaler_module import TestModule, nitro_base_patcher import sys diff --git a/tests/unit/modules/network/netscaler/test_netscaler_service.py b/tests/unit/modules/network/netscaler/test_netscaler_service.py index 20a9a5f8ed..3b47715511 100644 --- a/tests/unit/modules/network/netscaler/test_netscaler_service.py +++ b/tests/unit/modules/network/netscaler/test_netscaler_service.py @@ -26,7 +26,7 @@ if sys.version_info[:2] != (2, 6): from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..netscaler_module import TestModule, nitro_base_patcher +from .netscaler_module import TestModule, nitro_base_patcher class TestNetscalerServiceModule(TestModule): diff --git a/tests/unit/modules/network/netscaler/test_netscaler_servicegroup.py b/tests/unit/modules/network/netscaler/test_netscaler_servicegroup.py index 7498540edd..b0b03c343a 100644 --- a/tests/unit/modules/network/netscaler/test_netscaler_servicegroup.py +++ b/tests/unit/modules/network/netscaler/test_netscaler_servicegroup.py @@ -26,7 +26,7 @@ if sys.version_info[:2] != (2, 6): from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..netscaler_module import TestModule, nitro_base_patcher +from .netscaler_module import TestModule, nitro_base_patcher class TestNetscalerServicegroupModule(TestModule): diff --git a/tests/unit/modules/network/netscaler/test_netscaler_ssl_certkey.py b/tests/unit/modules/network/netscaler/test_netscaler_ssl_certkey.py index 1405a4ca2d..9f4bce38f5 100644 --- a/tests/unit/modules/network/netscaler/test_netscaler_ssl_certkey.py +++ b/tests/unit/modules/network/netscaler/test_netscaler_ssl_certkey.py @@ -19,7 +19,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch, Mock, MagicMock, call from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..netscaler_module import TestModule, nitro_base_patcher +from .netscaler_module import TestModule, nitro_base_patcher import sys diff --git a/tests/unit/modules/network/netvisor/test_pn_access_list_ip.py b/tests/unit/modules/network/netvisor/test_pn_access_list_ip.py index 05dd1aa27c..7f23398074 100644 --- a/tests/unit/modules/network/netvisor/test_pn_access_list_ip.py +++ b/tests/unit/modules/network/netvisor/test_pn_access_list_ip.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_access_list_ip from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestAccessListIpModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_admin_service.py b/tests/unit/modules/network/netvisor/test_pn_admin_service.py index 54cbd67588..afd1f95d24 100644 --- a/tests/unit/modules/network/netvisor/test_pn_admin_service.py +++ b/tests/unit/modules/network/netvisor/test_pn_admin_service.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_admin_service from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestAdminServiceModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_admin_session_timeout.py b/tests/unit/modules/network/netvisor/test_pn_admin_session_timeout.py index b29c70a663..bbf1d54b70 100644 --- a/tests/unit/modules/network/netvisor/test_pn_admin_session_timeout.py +++ b/tests/unit/modules/network/netvisor/test_pn_admin_session_timeout.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_admin_session_timeout from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestAdminServiceModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_admin_syslog.py b/tests/unit/modules/network/netvisor/test_pn_admin_syslog.py index 4eec009247..baa710a47e 100644 --- a/tests/unit/modules/network/netvisor/test_pn_admin_syslog.py +++ b/tests/unit/modules/network/netvisor/test_pn_admin_syslog.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_admin_syslog from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestAdminSyslogModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_connection_stats_settings.py b/tests/unit/modules/network/netvisor/test_pn_connection_stats_settings.py index d51ac38073..7beddfdf6b 100644 --- a/tests/unit/modules/network/netvisor/test_pn_connection_stats_settings.py +++ b/tests/unit/modules/network/netvisor/test_pn_connection_stats_settings.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_connection_stats_settings from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestAdminServiceModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_cpu_class.py b/tests/unit/modules/network/netvisor/test_pn_cpu_class.py index ca71c1e131..1c3e0188c4 100644 --- a/tests/unit/modules/network/netvisor/test_pn_cpu_class.py +++ b/tests/unit/modules/network/netvisor/test_pn_cpu_class.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_cpu_class from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestCpuClassModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_cpu_mgmt_class.py b/tests/unit/modules/network/netvisor/test_pn_cpu_mgmt_class.py index 74a27b7119..8f58b2bb23 100644 --- a/tests/unit/modules/network/netvisor/test_pn_cpu_mgmt_class.py +++ b/tests/unit/modules/network/netvisor/test_pn_cpu_mgmt_class.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_cpu_mgmt_class from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestCpuMgmtClassModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_dhcp_filter.py b/tests/unit/modules/network/netvisor/test_pn_dhcp_filter.py index 6118395096..1d3cf77476 100644 --- a/tests/unit/modules/network/netvisor/test_pn_dhcp_filter.py +++ b/tests/unit/modules/network/netvisor/test_pn_dhcp_filter.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_dhcp_filter from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestDhcpFilterModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_dscp_map.py b/tests/unit/modules/network/netvisor/test_pn_dscp_map.py index 35cc01c485..fe263b44f9 100644 --- a/tests/unit/modules/network/netvisor/test_pn_dscp_map.py +++ b/tests/unit/modules/network/netvisor/test_pn_dscp_map.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_dscp_map from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestDscpMapModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_dscp_map_pri_map.py b/tests/unit/modules/network/netvisor/test_pn_dscp_map_pri_map.py index e775cbc055..287e54c9f4 100644 --- a/tests/unit/modules/network/netvisor/test_pn_dscp_map_pri_map.py +++ b/tests/unit/modules/network/netvisor/test_pn_dscp_map_pri_map.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_dscp_map_pri_map from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestCpuClassModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_fabric_local.py b/tests/unit/modules/network/netvisor/test_pn_fabric_local.py index 929940e828..90f0f6f91d 100644 --- a/tests/unit/modules/network/netvisor/test_pn_fabric_local.py +++ b/tests/unit/modules/network/netvisor/test_pn_fabric_local.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_fabric_local from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestFabricLocalModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_igmp_snooping.py b/tests/unit/modules/network/netvisor/test_pn_igmp_snooping.py index 77740de880..62fdbb71fe 100644 --- a/tests/unit/modules/network/netvisor/test_pn_igmp_snooping.py +++ b/tests/unit/modules/network/netvisor/test_pn_igmp_snooping.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_igmp_snooping from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestAdminServiceModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_ipv6security_raguard.py b/tests/unit/modules/network/netvisor/test_pn_ipv6security_raguard.py index 463ccc953c..ed38d0a1d5 100644 --- a/tests/unit/modules/network/netvisor/test_pn_ipv6security_raguard.py +++ b/tests/unit/modules/network/netvisor/test_pn_ipv6security_raguard.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_ipv6security_raguard from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestIPV6SecurityRaguardModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_ipv6security_raguard_port.py b/tests/unit/modules/network/netvisor/test_pn_ipv6security_raguard_port.py index 6565ae7304..2a10010e88 100644 --- a/tests/unit/modules/network/netvisor/test_pn_ipv6security_raguard_port.py +++ b/tests/unit/modules/network/netvisor/test_pn_ipv6security_raguard_port.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_ipv6security_raguard_port from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestIPV6SecurityRaguardPortModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_ipv6security_raguard_vlan.py b/tests/unit/modules/network/netvisor/test_pn_ipv6security_raguard_vlan.py index b899f8594f..5014f594b4 100644 --- a/tests/unit/modules/network/netvisor/test_pn_ipv6security_raguard_vlan.py +++ b/tests/unit/modules/network/netvisor/test_pn_ipv6security_raguard_vlan.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_ipv6security_raguard_vlan from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestIPV6SecurityReguardVlanModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_log_audit_exception.py b/tests/unit/modules/network/netvisor/test_pn_log_audit_exception.py index c503b16a60..80106b3af0 100644 --- a/tests/unit/modules/network/netvisor/test_pn_log_audit_exception.py +++ b/tests/unit/modules/network/netvisor/test_pn_log_audit_exception.py @@ -9,7 +9,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_log_audit_exception from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule, load_fixture +from .nvos_module import TestNvosModule, load_fixture class TestLogAuditExceptionModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_port_config.py b/tests/unit/modules/network/netvisor/test_pn_port_config.py index fa00648b7d..2ee83fe285 100644 --- a/tests/unit/modules/network/netvisor/test_pn_port_config.py +++ b/tests/unit/modules/network/netvisor/test_pn_port_config.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_port_config from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestPortConfigModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_port_cos_bw.py b/tests/unit/modules/network/netvisor/test_pn_port_cos_bw.py index 467a680a6c..fbc71f6df4 100644 --- a/tests/unit/modules/network/netvisor/test_pn_port_cos_bw.py +++ b/tests/unit/modules/network/netvisor/test_pn_port_cos_bw.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_port_cos_bw from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestAdminServiceModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_port_cos_rate_setting.py b/tests/unit/modules/network/netvisor/test_pn_port_cos_rate_setting.py index 70a1362b46..afc3ad5d95 100644 --- a/tests/unit/modules/network/netvisor/test_pn_port_cos_rate_setting.py +++ b/tests/unit/modules/network/netvisor/test_pn_port_cos_rate_setting.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_port_cos_rate_setting from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestPortCosRateSettingModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_prefix_list.py b/tests/unit/modules/network/netvisor/test_pn_prefix_list.py index 2912488f86..cf7b9c9cf0 100644 --- a/tests/unit/modules/network/netvisor/test_pn_prefix_list.py +++ b/tests/unit/modules/network/netvisor/test_pn_prefix_list.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_prefix_list from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestPrefixListModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_prefix_list_network.py b/tests/unit/modules/network/netvisor/test_pn_prefix_list_network.py index 41121b244d..996c2e6c70 100644 --- a/tests/unit/modules/network/netvisor/test_pn_prefix_list_network.py +++ b/tests/unit/modules/network/netvisor/test_pn_prefix_list_network.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_prefix_list_network from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestPrefixListNetworkModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_role.py b/tests/unit/modules/network/netvisor/test_pn_role.py index e382f9b5c9..7fbd1f8282 100644 --- a/tests/unit/modules/network/netvisor/test_pn_role.py +++ b/tests/unit/modules/network/netvisor/test_pn_role.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_role from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestRoleModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_snmp_community.py b/tests/unit/modules/network/netvisor/test_pn_snmp_community.py index b98341ec43..5f137dcbe1 100644 --- a/tests/unit/modules/network/netvisor/test_pn_snmp_community.py +++ b/tests/unit/modules/network/netvisor/test_pn_snmp_community.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_snmp_community from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestSnmpCommunityModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_snmp_trap_sink.py b/tests/unit/modules/network/netvisor/test_pn_snmp_trap_sink.py index 31a62365bf..4fddfd3d7f 100644 --- a/tests/unit/modules/network/netvisor/test_pn_snmp_trap_sink.py +++ b/tests/unit/modules/network/netvisor/test_pn_snmp_trap_sink.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_snmp_trap_sink from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestSnmpTrapSinkModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_snmp_vacm.py b/tests/unit/modules/network/netvisor/test_pn_snmp_vacm.py index 89f82fe87f..113f07cfab 100644 --- a/tests/unit/modules/network/netvisor/test_pn_snmp_vacm.py +++ b/tests/unit/modules/network/netvisor/test_pn_snmp_vacm.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_snmp_vacm from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestSnmpVacmModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_stp.py b/tests/unit/modules/network/netvisor/test_pn_stp.py index 46425fbfb0..3d78aac27c 100644 --- a/tests/unit/modules/network/netvisor/test_pn_stp.py +++ b/tests/unit/modules/network/netvisor/test_pn_stp.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_stp from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestStpModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_stp_port.py b/tests/unit/modules/network/netvisor/test_pn_stp_port.py index cca7122a6f..cdd3985711 100644 --- a/tests/unit/modules/network/netvisor/test_pn_stp_port.py +++ b/tests/unit/modules/network/netvisor/test_pn_stp_port.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_stp_port from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestStpPortModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_switch_setup.py b/tests/unit/modules/network/netvisor/test_pn_switch_setup.py index 82405f2301..1441ac183c 100644 --- a/tests/unit/modules/network/netvisor/test_pn_switch_setup.py +++ b/tests/unit/modules/network/netvisor/test_pn_switch_setup.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_switch_setup from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestSwitchSetupModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_user.py b/tests/unit/modules/network/netvisor/test_pn_user.py index 3a441f2e69..1ac593316d 100644 --- a/tests/unit/modules/network/netvisor/test_pn_user.py +++ b/tests/unit/modules/network/netvisor/test_pn_user.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_user from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestUserModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_vflow_table_profile.py b/tests/unit/modules/network/netvisor/test_pn_vflow_table_profile.py index 2628f790fc..c7d607c4cb 100644 --- a/tests/unit/modules/network/netvisor/test_pn_vflow_table_profile.py +++ b/tests/unit/modules/network/netvisor/test_pn_vflow_table_profile.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_vflow_table_profile from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestVflowTableProfileModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_vrouter_bgp.py b/tests/unit/modules/network/netvisor/test_pn_vrouter_bgp.py index 20efdebd11..708e5ed99e 100644 --- a/tests/unit/modules/network/netvisor/test_pn_vrouter_bgp.py +++ b/tests/unit/modules/network/netvisor/test_pn_vrouter_bgp.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_vrouter_bgp from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestVrouterBGPModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_vrouter_bgp_network.py b/tests/unit/modules/network/netvisor/test_pn_vrouter_bgp_network.py index 2e54a56a79..fb8d75cc41 100644 --- a/tests/unit/modules/network/netvisor/test_pn_vrouter_bgp_network.py +++ b/tests/unit/modules/network/netvisor/test_pn_vrouter_bgp_network.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_vrouter_bgp_network from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestVrouterBGPNetworkModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_vrouter_interface_ip.py b/tests/unit/modules/network/netvisor/test_pn_vrouter_interface_ip.py index 7c3c840d16..c53b88faf6 100644 --- a/tests/unit/modules/network/netvisor/test_pn_vrouter_interface_ip.py +++ b/tests/unit/modules/network/netvisor/test_pn_vrouter_interface_ip.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_vrouter_interface_ip from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestVrouterInterfaceIpModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_vrouter_loopback_interface.py b/tests/unit/modules/network/netvisor/test_pn_vrouter_loopback_interface.py index 99bc66fbf6..2ac02360e9 100644 --- a/tests/unit/modules/network/netvisor/test_pn_vrouter_loopback_interface.py +++ b/tests/unit/modules/network/netvisor/test_pn_vrouter_loopback_interface.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_vrouter_loopback_interface from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestVrouterLoopbackInterfaceModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_vrouter_ospf.py b/tests/unit/modules/network/netvisor/test_pn_vrouter_ospf.py index 3e574ca53d..b18818a2df 100644 --- a/tests/unit/modules/network/netvisor/test_pn_vrouter_ospf.py +++ b/tests/unit/modules/network/netvisor/test_pn_vrouter_ospf.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_vrouter_ospf from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestVrouterOSPFModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_vrouter_ospf6.py b/tests/unit/modules/network/netvisor/test_pn_vrouter_ospf6.py index 718d82aeb6..8fa9a47f52 100644 --- a/tests/unit/modules/network/netvisor/test_pn_vrouter_ospf6.py +++ b/tests/unit/modules/network/netvisor/test_pn_vrouter_ospf6.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_vrouter_ospf6 from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestVrouterOSPF6Module(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_vrouter_packet_relay.py b/tests/unit/modules/network/netvisor/test_pn_vrouter_packet_relay.py index 51925277a2..54bd02cb34 100644 --- a/tests/unit/modules/network/netvisor/test_pn_vrouter_packet_relay.py +++ b/tests/unit/modules/network/netvisor/test_pn_vrouter_packet_relay.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_vrouter_packet_relay from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestVrouterPacketRelayModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_vrouter_pim_config.py b/tests/unit/modules/network/netvisor/test_pn_vrouter_pim_config.py index d857e44c19..de06862e24 100644 --- a/tests/unit/modules/network/netvisor/test_pn_vrouter_pim_config.py +++ b/tests/unit/modules/network/netvisor/test_pn_vrouter_pim_config.py @@ -7,7 +7,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_vrouter_pim_config from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule +from .nvos_module import TestNvosModule class TestVrouterPimConfigModule(TestNvosModule): diff --git a/tests/unit/modules/network/netvisor/test_pn_vtep.py b/tests/unit/modules/network/netvisor/test_pn_vtep.py index 134f9c3a65..e7a3c79e37 100644 --- a/tests/unit/modules/network/netvisor/test_pn_vtep.py +++ b/tests/unit/modules/network/netvisor/test_pn_vtep.py @@ -9,7 +9,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.netvisor import pn_vtep from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..nvos_module import TestNvosModule, load_fixture +from .nvos_module import TestNvosModule, load_fixture class TestVtepModule(TestNvosModule): diff --git a/tests/unit/modules/network/nos/test_nos_command.py b/tests/unit/modules/network/nos/test_nos_command.py index ee0bf0f6ba..f66948a326 100644 --- a/tests/unit/modules/network/nos/test_nos_command.py +++ b/tests/unit/modules/network/nos/test_nos_command.py @@ -24,7 +24,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.modules.network.nos import nos_command -from ..nos_module import TestNosModule, load_fixture +from .nos_module import TestNosModule, load_fixture class TestNosCommandModule(TestNosModule): diff --git a/tests/unit/modules/network/nos/test_nos_config.py b/tests/unit/modules/network/nos/test_nos_config.py index 3e593266cb..3bd3f07252 100644 --- a/tests/unit/modules/network/nos/test_nos_config.py +++ b/tests/unit/modules/network/nos/test_nos_config.py @@ -22,7 +22,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.modules.network.nos import nos_config -from ..nos_module import TestNosModule, load_fixture +from .nos_module import TestNosModule, load_fixture class TestNosConfigModule(TestNosModule): diff --git a/tests/unit/modules/network/nos/test_nos_facts.py b/tests/unit/modules/network/nos/test_nos_facts.py index 714fcf95f0..8f6d5f69ea 100644 --- a/tests/unit/modules/network/nos/test_nos_facts.py +++ b/tests/unit/modules/network/nos/test_nos_facts.py @@ -22,7 +22,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.modules.network.nos import nos_facts -from ..nos_module import TestNosModule, load_fixture +from .nos_module import TestNosModule, load_fixture class TestNosFactsModule(TestNosModule): diff --git a/tests/unit/modules/network/nso/test_nso_action.py b/tests/unit/modules/network/nso/test_nso_action.py index 362c0dcf72..7a91305015 100644 --- a/tests/unit/modules/network/nso/test_nso_action.py +++ b/tests/unit/modules/network/nso/test_nso_action.py @@ -23,7 +23,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.nso import nso_action from . import nso_module -from ..nso_module import MockResponse +from .nso_module import MockResponse from ansible_collections.community.general.tests.unit.modules.utils import set_module_args diff --git a/tests/unit/modules/network/nso/test_nso_config.py b/tests/unit/modules/network/nso/test_nso_config.py index 6a544a742c..6211a736fc 100644 --- a/tests/unit/modules/network/nso/test_nso_config.py +++ b/tests/unit/modules/network/nso/test_nso_config.py @@ -24,7 +24,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.nso import nso_config from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from . import nso_module -from ..nso_module import MockResponse +from .nso_module import MockResponse class TestNsoConfig(nso_module.TestNsoModule): diff --git a/tests/unit/modules/network/nso/test_nso_query.py b/tests/unit/modules/network/nso/test_nso_query.py index 5d4d76b2c8..f355cd40f3 100644 --- a/tests/unit/modules/network/nso/test_nso_query.py +++ b/tests/unit/modules/network/nso/test_nso_query.py @@ -21,7 +21,7 @@ from __future__ import (absolute_import, division, print_function) from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.nso import nso_query from . import nso_module -from ..nso_module import MockResponse +from .nso_module import MockResponse from ansible_collections.community.general.tests.unit.modules.utils import set_module_args diff --git a/tests/unit/modules/network/nso/test_nso_show.py b/tests/unit/modules/network/nso/test_nso_show.py index 9372b508c1..b393bc2f34 100644 --- a/tests/unit/modules/network/nso/test_nso_show.py +++ b/tests/unit/modules/network/nso/test_nso_show.py @@ -21,7 +21,7 @@ from __future__ import (absolute_import, division, print_function) from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.nso import nso_show from . import nso_module -from ..nso_module import MockResponse +from .nso_module import MockResponse from ansible_collections.community.general.tests.unit.modules.utils import set_module_args diff --git a/tests/unit/modules/network/nso/test_nso_verify.py b/tests/unit/modules/network/nso/test_nso_verify.py index 5b66c038c1..db307587f3 100644 --- a/tests/unit/modules/network/nso/test_nso_verify.py +++ b/tests/unit/modules/network/nso/test_nso_verify.py @@ -23,7 +23,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.nso import nso_verify from . import nso_module -from ..nso_module import MockResponse +from .nso_module import MockResponse from ansible_collections.community.general.tests.unit.modules.utils import set_module_args diff --git a/tests/unit/modules/network/nuage/test_nuage_vspk.py b/tests/unit/modules/network/nuage/test_nuage_vspk.py index 67e0365217..a54a5e079f 100644 --- a/tests/unit/modules/network/nuage/test_nuage_vspk.py +++ b/tests/unit/modules/network/nuage/test_nuage_vspk.py @@ -34,7 +34,7 @@ except ImportError: from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args, AnsibleExitJson, AnsibleFailJson -from ..nuage_module import MockNuageConnection, TestNuageModule +from .nuage_module import MockNuageConnection, TestNuageModule _LOOP_COUNTER = 0 diff --git a/tests/unit/modules/network/onyx/test_onyx_aaa.py b/tests/unit/modules/network/onyx/test_onyx_aaa.py index 2941d66d3a..8a4ddfb153 100644 --- a/tests/unit/modules/network/onyx/test_onyx_aaa.py +++ b/tests/unit/modules/network/onyx/test_onyx_aaa.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_aaa from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxAAAModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_bfd.py b/tests/unit/modules/network/onyx/test_onyx_bfd.py index be656c6672..6ac4d0c38a 100644 --- a/tests/unit/modules/network/onyx/test_onyx_bfd.py +++ b/tests/unit/modules/network/onyx/test_onyx_bfd.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_bfd from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxBFDModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_bgp.py b/tests/unit/modules/network/onyx/test_onyx_bgp.py index d15a1fb032..a43e9553cb 100644 --- a/tests/unit/modules/network/onyx/test_onyx_bgp.py +++ b/tests/unit/modules/network/onyx/test_onyx_bgp.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_bgp from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxBgpModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_buffer_pool.py b/tests/unit/modules/network/onyx/test_onyx_buffer_pool.py index 72e521265b..169aa12f52 100644 --- a/tests/unit/modules/network/onyx/test_onyx_buffer_pool.py +++ b/tests/unit/modules/network/onyx/test_onyx_buffer_pool.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_buffer_pool from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxBufferPoolModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_command.py b/tests/unit/modules/network/onyx/test_onyx_command.py index bf72e1fbe1..2ffaba196a 100644 --- a/tests/unit/modules/network/onyx/test_onyx_command.py +++ b/tests/unit/modules/network/onyx/test_onyx_command.py @@ -24,7 +24,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_command from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxCommandModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_config.py b/tests/unit/modules/network/onyx/test_onyx_config.py index 49cb886da4..64b1d0c2ea 100644 --- a/tests/unit/modules/network/onyx/test_onyx_config.py +++ b/tests/unit/modules/network/onyx/test_onyx_config.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_config from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxConfigModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_facts.py b/tests/unit/modules/network/onyx/test_onyx_facts.py index 614e00aae4..ba02ae9e81 100644 --- a/tests/unit/modules/network/onyx/test_onyx_facts.py +++ b/tests/unit/modules/network/onyx/test_onyx_facts.py @@ -8,7 +8,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture from ansible_collections.community.general.plugins.modules.network.onyx import onyx_facts diff --git a/tests/unit/modules/network/onyx/test_onyx_igmp.py b/tests/unit/modules/network/onyx/test_onyx_igmp.py index 22fe0133ef..6f8a041f1a 100644 --- a/tests/unit/modules/network/onyx/test_onyx_igmp.py +++ b/tests/unit/modules/network/onyx/test_onyx_igmp.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_igmp from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxIgmpModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_igmp_interface.py b/tests/unit/modules/network/onyx/test_onyx_igmp_interface.py index 01b8b6cacb..b470a106e1 100644 --- a/tests/unit/modules/network/onyx/test_onyx_igmp_interface.py +++ b/tests/unit/modules/network/onyx/test_onyx_igmp_interface.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_igmp_interface from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxIgmpInterfaceModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_igmp_vlan.py b/tests/unit/modules/network/onyx/test_onyx_igmp_vlan.py index 8c8ce4fd00..1c2c999e0e 100644 --- a/tests/unit/modules/network/onyx/test_onyx_igmp_vlan.py +++ b/tests/unit/modules/network/onyx/test_onyx_igmp_vlan.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_igmp_vlan from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxIgmpVlan(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_interface.py b/tests/unit/modules/network/onyx/test_onyx_interface.py index 7c592a0fff..44809f1697 100644 --- a/tests/unit/modules/network/onyx/test_onyx_interface.py +++ b/tests/unit/modules/network/onyx/test_onyx_interface.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_interface from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxInterfaceModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_l2_interface.py b/tests/unit/modules/network/onyx/test_onyx_l2_interface.py index 0f90e35a61..4f06d26d27 100644 --- a/tests/unit/modules/network/onyx/test_onyx_l2_interface.py +++ b/tests/unit/modules/network/onyx/test_onyx_l2_interface.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_l2_interface from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxInterfaceModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_l3_interface.py b/tests/unit/modules/network/onyx/test_onyx_l3_interface.py index 7825fc2cf2..78f2af975d 100644 --- a/tests/unit/modules/network/onyx/test_onyx_l3_interface.py +++ b/tests/unit/modules/network/onyx/test_onyx_l3_interface.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_l3_interface from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxL3InterfaceModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_linkagg.py b/tests/unit/modules/network/onyx/test_onyx_linkagg.py index 20c01f2238..f8e65b8e0a 100644 --- a/tests/unit/modules/network/onyx/test_onyx_linkagg.py +++ b/tests/unit/modules/network/onyx/test_onyx_linkagg.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_linkagg from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxLinkaggModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_lldp.py b/tests/unit/modules/network/onyx/test_onyx_lldp.py index 4f8e06c173..a42a044d23 100644 --- a/tests/unit/modules/network/onyx/test_onyx_lldp.py +++ b/tests/unit/modules/network/onyx/test_onyx_lldp.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_lldp from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxInterfaceModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_lldp_interface.py b/tests/unit/modules/network/onyx/test_onyx_lldp_interface.py index b550418503..ac47a0c07b 100644 --- a/tests/unit/modules/network/onyx/test_onyx_lldp_interface.py +++ b/tests/unit/modules/network/onyx/test_onyx_lldp_interface.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_lldp_interface from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxLldpInterfaceModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_magp.py b/tests/unit/modules/network/onyx/test_onyx_magp.py index 6c320606b3..18fe23a76c 100644 --- a/tests/unit/modules/network/onyx/test_onyx_magp.py +++ b/tests/unit/modules/network/onyx/test_onyx_magp.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_magp from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxMagpModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_mlag_ipl.py b/tests/unit/modules/network/onyx/test_onyx_mlag_ipl.py index b0c2274c80..00d2e962b4 100644 --- a/tests/unit/modules/network/onyx/test_onyx_mlag_ipl.py +++ b/tests/unit/modules/network/onyx/test_onyx_mlag_ipl.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_mlag_ipl from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxMlagIplModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_mlag_vip.py b/tests/unit/modules/network/onyx/test_onyx_mlag_vip.py index ca9caf3f80..36260bf66e 100644 --- a/tests/unit/modules/network/onyx/test_onyx_mlag_vip.py +++ b/tests/unit/modules/network/onyx/test_onyx_mlag_vip.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_mlag_vip from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxMlagVipModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_ntp.py b/tests/unit/modules/network/onyx/test_onyx_ntp.py index 7e810989bb..60cd45e1be 100644 --- a/tests/unit/modules/network/onyx/test_onyx_ntp.py +++ b/tests/unit/modules/network/onyx/test_onyx_ntp.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_ntp from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxNTP(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_ntp_servers_peers.py b/tests/unit/modules/network/onyx/test_onyx_ntp_servers_peers.py index 150ff54e70..662edbff37 100644 --- a/tests/unit/modules/network/onyx/test_onyx_ntp_servers_peers.py +++ b/tests/unit/modules/network/onyx/test_onyx_ntp_servers_peers.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_ntp_servers_peers from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxNtpServersPeersModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_ospf.py b/tests/unit/modules/network/onyx/test_onyx_ospf.py index 206b2de002..a4a5aafcac 100644 --- a/tests/unit/modules/network/onyx/test_onyx_ospf.py +++ b/tests/unit/modules/network/onyx/test_onyx_ospf.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_ospf from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxOspfModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_pfc_interface.py b/tests/unit/modules/network/onyx/test_onyx_pfc_interface.py index dbaaf23f14..d961476a4a 100644 --- a/tests/unit/modules/network/onyx/test_onyx_pfc_interface.py +++ b/tests/unit/modules/network/onyx/test_onyx_pfc_interface.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_pfc_interface from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxPfcInterfaceModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_protocol.py b/tests/unit/modules/network/onyx/test_onyx_protocol.py index 6efc614f02..2a845bea52 100644 --- a/tests/unit/modules/network/onyx/test_onyx_protocol.py +++ b/tests/unit/modules/network/onyx/test_onyx_protocol.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_protocol from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxProtocolModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_ptp_global.py b/tests/unit/modules/network/onyx/test_onyx_ptp_global.py index f6e797a81a..c7642cf948 100644 --- a/tests/unit/modules/network/onyx/test_onyx_ptp_global.py +++ b/tests/unit/modules/network/onyx/test_onyx_ptp_global.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_ptp_global from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxPtpModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_ptp_interface.py b/tests/unit/modules/network/onyx/test_onyx_ptp_interface.py index c2a21b40a0..1805eb9ed7 100644 --- a/tests/unit/modules/network/onyx/test_onyx_ptp_interface.py +++ b/tests/unit/modules/network/onyx/test_onyx_ptp_interface.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_ptp_interface from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxPtpInterface(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_qos.py b/tests/unit/modules/network/onyx/test_onyx_qos.py index 0478b0b95d..8719befb44 100644 --- a/tests/unit/modules/network/onyx/test_onyx_qos.py +++ b/tests/unit/modules/network/onyx/test_onyx_qos.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_qos from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxQosModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_snmp.py b/tests/unit/modules/network/onyx/test_onyx_snmp.py index 5bcb7a1d51..7b20af14bb 100644 --- a/tests/unit/modules/network/onyx/test_onyx_snmp.py +++ b/tests/unit/modules/network/onyx/test_onyx_snmp.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_snmp from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxSNMPModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_snmp_hosts.py b/tests/unit/modules/network/onyx/test_onyx_snmp_hosts.py index 18bfde9d70..8a5ad66429 100644 --- a/tests/unit/modules/network/onyx/test_onyx_snmp_hosts.py +++ b/tests/unit/modules/network/onyx/test_onyx_snmp_hosts.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_snmp_hosts from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxSNMPHostsModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_snmp_users.py b/tests/unit/modules/network/onyx/test_onyx_snmp_users.py index 639959799c..5a6d470194 100644 --- a/tests/unit/modules/network/onyx/test_onyx_snmp_users.py +++ b/tests/unit/modules/network/onyx/test_onyx_snmp_users.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_snmp_users from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxSNMPUsersModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_syslog_files.py b/tests/unit/modules/network/onyx/test_onyx_syslog_files.py index 64e7c7605e..35b71bb0ca 100644 --- a/tests/unit/modules/network/onyx/test_onyx_syslog_files.py +++ b/tests/unit/modules/network/onyx/test_onyx_syslog_files.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_syslog_files from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxSyslogFilesModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_syslog_remote.py b/tests/unit/modules/network/onyx/test_onyx_syslog_remote.py index f7cb4253d4..fb42cce14d 100644 --- a/tests/unit/modules/network/onyx/test_onyx_syslog_remote.py +++ b/tests/unit/modules/network/onyx/test_onyx_syslog_remote.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_syslog_remote from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxSysLogRemoteModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_traffic_class.py b/tests/unit/modules/network/onyx/test_onyx_traffic_class.py index cda080748c..63cda50948 100644 --- a/tests/unit/modules/network/onyx/test_onyx_traffic_class.py +++ b/tests/unit/modules/network/onyx/test_onyx_traffic_class.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_traffic_class from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxTrafficClassModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_username.py b/tests/unit/modules/network/onyx/test_onyx_username.py index 6996e336c5..f21e785f80 100644 --- a/tests/unit/modules/network/onyx/test_onyx_username.py +++ b/tests/unit/modules/network/onyx/test_onyx_username.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_username from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxUsernameModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_vlan.py b/tests/unit/modules/network/onyx/test_onyx_vlan.py index 382c38ad3b..69ab1124e2 100644 --- a/tests/unit/modules/network/onyx/test_onyx_vlan.py +++ b/tests/unit/modules/network/onyx/test_onyx_vlan.py @@ -23,7 +23,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_vlan from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxVlanModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_vxlan.py b/tests/unit/modules/network/onyx/test_onyx_vxlan.py index a7789d0e7c..b5ce8bb5b1 100644 --- a/tests/unit/modules/network/onyx/test_onyx_vxlan.py +++ b/tests/unit/modules/network/onyx/test_onyx_vxlan.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_vxlan from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxVxlanModule(TestOnyxModule): diff --git a/tests/unit/modules/network/onyx/test_onyx_wjh.py b/tests/unit/modules/network/onyx/test_onyx_wjh.py index fb0dcbc071..f144bc4d70 100644 --- a/tests/unit/modules/network/onyx/test_onyx_wjh.py +++ b/tests/unit/modules/network/onyx/test_onyx_wjh.py @@ -9,7 +9,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.onyx import onyx_wjh from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..onyx_module import TestOnyxModule, load_fixture +from .onyx_module import TestOnyxModule, load_fixture class TestOnyxWJHModule(TestOnyxModule): diff --git a/tests/unit/modules/network/opx/test_opx_cps.py b/tests/unit/modules/network/opx/test_opx_cps.py index 90a0375d02..9a3ae75c1c 100644 --- a/tests/unit/modules/network/opx/test_opx_cps.py +++ b/tests/unit/modules/network/opx/test_opx_cps.py @@ -45,7 +45,7 @@ sys.modules['cps_utils'] = Mock() from ansible_collections.community.general.plugins.modules.network.opx import opx_cps from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..opx_module import TestOpxModule, load_fixture +from .opx_module import TestOpxModule, load_fixture class TestOpxCpsModule(TestOpxModule): diff --git a/tests/unit/modules/network/routeros/test_routeros_command.py b/tests/unit/modules/network/routeros/test_routeros_command.py index 7d49dfc9f7..af62f0c0f8 100644 --- a/tests/unit/modules/network/routeros/test_routeros_command.py +++ b/tests/unit/modules/network/routeros/test_routeros_command.py @@ -24,7 +24,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.routeros import routeros_command from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..routeros_module import TestRouterosModule, load_fixture +from .routeros_module import TestRouterosModule, load_fixture class TestRouterosCommandModule(TestRouterosModule): diff --git a/tests/unit/modules/network/routeros/test_routeros_facts.py b/tests/unit/modules/network/routeros/test_routeros_facts.py index 98d1ce5f28..72f99034af 100644 --- a/tests/unit/modules/network/routeros/test_routeros_facts.py +++ b/tests/unit/modules/network/routeros/test_routeros_facts.py @@ -20,7 +20,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.plugins.modules.network.routeros import routeros_facts from ansible_collections.community.general.tests.unit.modules.utils import set_module_args -from ..routeros_module import TestRouterosModule, load_fixture +from .routeros_module import TestRouterosModule, load_fixture class TestRouterosFactsModule(TestRouterosModule): diff --git a/tests/unit/modules/network/slxos/test_slxos_command.py b/tests/unit/modules/network/slxos/test_slxos_command.py index aa8ebf95c6..1ab9aac667 100644 --- a/tests/unit/modules/network/slxos/test_slxos_command.py +++ b/tests/unit/modules/network/slxos/test_slxos_command.py @@ -24,7 +24,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.modules.network.slxos import slxos_command -from ..slxos_module import TestSlxosModule, load_fixture +from .slxos_module import TestSlxosModule, load_fixture class TestSlxosCommandModule(TestSlxosModule): diff --git a/tests/unit/modules/network/slxos/test_slxos_config.py b/tests/unit/modules/network/slxos/test_slxos_config.py index cf85f47865..58c7cd1421 100644 --- a/tests/unit/modules/network/slxos/test_slxos_config.py +++ b/tests/unit/modules/network/slxos/test_slxos_config.py @@ -22,7 +22,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.modules.network.slxos import slxos_config -from ..slxos_module import TestSlxosModule, load_fixture +from .slxos_module import TestSlxosModule, load_fixture class TestSlxosConfigModule(TestSlxosModule): diff --git a/tests/unit/modules/network/slxos/test_slxos_facts.py b/tests/unit/modules/network/slxos/test_slxos_facts.py index 5b38b30aca..5f3356432b 100644 --- a/tests/unit/modules/network/slxos/test_slxos_facts.py +++ b/tests/unit/modules/network/slxos/test_slxos_facts.py @@ -22,7 +22,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.modules.network.slxos import slxos_facts -from ..slxos_module import TestSlxosModule, load_fixture +from .slxos_module import TestSlxosModule, load_fixture class TestSlxosFactsModule(TestSlxosModule): diff --git a/tests/unit/modules/network/slxos/test_slxos_interface.py b/tests/unit/modules/network/slxos/test_slxos_interface.py index 24423a8455..1bec01c5fb 100644 --- a/tests/unit/modules/network/slxos/test_slxos_interface.py +++ b/tests/unit/modules/network/slxos/test_slxos_interface.py @@ -24,7 +24,7 @@ import re from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.modules.network.slxos import slxos_interface -from ..slxos_module import TestSlxosModule, load_fixture +from .slxos_module import TestSlxosModule, load_fixture class TestSlxosInterfaceModule(TestSlxosModule): diff --git a/tests/unit/modules/network/slxos/test_slxos_l2_interface.py b/tests/unit/modules/network/slxos/test_slxos_l2_interface.py index a61c2a9dd5..cde2a2c9af 100644 --- a/tests/unit/modules/network/slxos/test_slxos_l2_interface.py +++ b/tests/unit/modules/network/slxos/test_slxos_l2_interface.py @@ -24,7 +24,7 @@ import re from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.modules.network.slxos import slxos_l2_interface -from ..slxos_module import TestSlxosModule, load_fixture +from .slxos_module import TestSlxosModule, load_fixture class TestSlxosL2InterfaceModule(TestSlxosModule): diff --git a/tests/unit/modules/network/slxos/test_slxos_l3_interface.py b/tests/unit/modules/network/slxos/test_slxos_l3_interface.py index 73448e6d24..798da29b8c 100644 --- a/tests/unit/modules/network/slxos/test_slxos_l3_interface.py +++ b/tests/unit/modules/network/slxos/test_slxos_l3_interface.py @@ -24,7 +24,7 @@ import re from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.modules.network.slxos import slxos_l3_interface -from ..slxos_module import TestSlxosModule, load_fixture +from .slxos_module import TestSlxosModule, load_fixture class TestSlxosL3InterfaceModule(TestSlxosModule): diff --git a/tests/unit/modules/network/slxos/test_slxos_linkagg.py b/tests/unit/modules/network/slxos/test_slxos_linkagg.py index 2990b6f3da..50cb4192b7 100644 --- a/tests/unit/modules/network/slxos/test_slxos_linkagg.py +++ b/tests/unit/modules/network/slxos/test_slxos_linkagg.py @@ -24,7 +24,7 @@ import re from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.modules.network.slxos import slxos_linkagg -from ..slxos_module import TestSlxosModule, load_fixture +from .slxos_module import TestSlxosModule, load_fixture class TestSlxosLinkaggModule(TestSlxosModule): diff --git a/tests/unit/modules/network/slxos/test_slxos_lldp.py b/tests/unit/modules/network/slxos/test_slxos_lldp.py index a0029adcc5..fc12977657 100644 --- a/tests/unit/modules/network/slxos/test_slxos_lldp.py +++ b/tests/unit/modules/network/slxos/test_slxos_lldp.py @@ -24,7 +24,7 @@ import re from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.modules.network.slxos import slxos_lldp -from ..slxos_module import TestSlxosModule, load_fixture +from .slxos_module import TestSlxosModule, load_fixture class TestSlxosLldpModule(TestSlxosModule): diff --git a/tests/unit/modules/network/slxos/test_slxos_vlan.py b/tests/unit/modules/network/slxos/test_slxos_vlan.py index 531daf6b86..5f85643647 100644 --- a/tests/unit/modules/network/slxos/test_slxos_vlan.py +++ b/tests/unit/modules/network/slxos/test_slxos_vlan.py @@ -24,7 +24,7 @@ import re from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.modules.network.slxos import slxos_vlan -from ..slxos_module import TestSlxosModule, load_fixture +from .slxos_module import TestSlxosModule, load_fixture class TestSlxosVlanModule(TestSlxosModule): diff --git a/tests/unit/modules/network/voss/test_voss_command.py b/tests/unit/modules/network/voss/test_voss_command.py index 1ee444bdaa..3295ad16c4 100644 --- a/tests/unit/modules/network/voss/test_voss_command.py +++ b/tests/unit/modules/network/voss/test_voss_command.py @@ -24,7 +24,7 @@ import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.modules.network.voss import voss_command -from ..voss_module import TestVossModule, load_fixture +from .voss_module import TestVossModule, load_fixture class TestVossCommandModule(TestVossModule): diff --git a/tests/unit/modules/network/voss/test_voss_config.py b/tests/unit/modules/network/voss/test_voss_config.py index 409f29aa78..1e98f7454a 100644 --- a/tests/unit/modules/network/voss/test_voss_config.py +++ b/tests/unit/modules/network/voss/test_voss_config.py @@ -24,7 +24,7 @@ from ansible_collections.community.general.tests.unit.compat.mock import patch, from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.modules.network.voss import voss_config from ansible_collections.community.general.plugins.cliconf.voss import Cliconf -from ..voss_module import TestVossModule, load_fixture +from .voss_module import TestVossModule, load_fixture class TestVossConfigModule(TestVossModule): diff --git a/tests/unit/modules/network/voss/test_voss_facts.py b/tests/unit/modules/network/voss/test_voss_facts.py index e990924189..91319af361 100644 --- a/tests/unit/modules/network/voss/test_voss_facts.py +++ b/tests/unit/modules/network/voss/test_voss_facts.py @@ -20,7 +20,7 @@ __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.modules.network.voss import voss_facts -from ..voss_module import TestVossModule, load_fixture +from .voss_module import TestVossModule, load_fixture class TestVossFactsModule(TestVossModule): diff --git a/tests/unit/modules/remote_management/oneview/hpe_test_utils.py b/tests/unit/modules/remote_management/oneview/hpe_test_utils.py index 1da6bac2df..104070d783 100644 --- a/tests/unit/modules/remote_management/oneview/hpe_test_utils.py +++ b/tests/unit/modules/remote_management/oneview/hpe_test_utils.py @@ -39,8 +39,8 @@ class OneViewBaseTest(object): resource_module_path_name = re.findall('[A-Z][^A-Z]*', resource_module_path_name) resource_module_path_name = 'oneview_' + str.join('_', resource_module_path_name).lower() - ansible = __import__('ansible') - oneview_module = ansible.modules.remote_management.oneview + ansible_collections = __import__('ansible_collections') + oneview_module = ansible_collections.community.general.plugins.modules.remote_management.oneview resource_module = getattr(oneview_module, resource_module_path_name) self.testing_class = getattr(resource_module, resource_name) testing_module = self.testing_class.__module__.split('.')[-1] @@ -143,9 +143,9 @@ class OneViewBaseTestCase(object): def __set_module_examples(self): # Load scenarios from module examples (Also checks if it is a valid yaml) - ansible = __import__('ansible') + ansible_collections = __import__('ansible_collections') testing_module = self.testing_class.__module__.split('.')[-1] - self.testing_module = getattr(ansible.modules.remote_management.oneview, testing_module) + self.testing_module = getattr(ansible_collections.community.general.plugins.modules.remote_management.oneview, testing_module) try: # Load scenarios from module examples (Also checks if it is a valid yaml) diff --git a/tests/unit/modules/source_control/gitlab/test_gitlab_deploy_key.py b/tests/unit/modules/source_control/gitlab/test_gitlab_deploy_key.py index 08c8b4d346..4c14f45bee 100644 --- a/tests/unit/modules/source_control/gitlab/test_gitlab_deploy_key.py +++ b/tests/unit/modules/source_control/gitlab/test_gitlab_deploy_key.py @@ -18,10 +18,10 @@ def _dummy(x): pytestmark = [] try: - from ..gitlab import (GitlabModuleTestCase, - python_version_match_requirement, - resp_get_project, resp_find_project_deploy_key, - resp_create_project_deploy_key, resp_delete_project_deploy_key) + from .gitlab import (GitlabModuleTestCase, + python_version_match_requirement, + resp_get_project, resp_find_project_deploy_key, + resp_create_project_deploy_key, resp_delete_project_deploy_key) # GitLab module requirements if python_version_match_requirement(): diff --git a/tests/unit/modules/source_control/gitlab/test_gitlab_group.py b/tests/unit/modules/source_control/gitlab/test_gitlab_group.py index bfa31156d1..4313ad1fc0 100644 --- a/tests/unit/modules/source_control/gitlab/test_gitlab_group.py +++ b/tests/unit/modules/source_control/gitlab/test_gitlab_group.py @@ -18,10 +18,10 @@ def _dummy(x): pytestmark = [] try: - from ..gitlab import (GitlabModuleTestCase, - python_version_match_requirement, - resp_get_group, resp_get_missing_group, resp_create_group, - resp_create_subgroup, resp_delete_group, resp_find_group_project) + from .gitlab import (GitlabModuleTestCase, + python_version_match_requirement, + resp_get_group, resp_get_missing_group, resp_create_group, + resp_create_subgroup, resp_delete_group, resp_find_group_project) # GitLab module requirements if python_version_match_requirement(): diff --git a/tests/unit/modules/source_control/gitlab/test_gitlab_hook.py b/tests/unit/modules/source_control/gitlab/test_gitlab_hook.py index 1002b62e22..fe6ab70f87 100644 --- a/tests/unit/modules/source_control/gitlab/test_gitlab_hook.py +++ b/tests/unit/modules/source_control/gitlab/test_gitlab_hook.py @@ -17,10 +17,10 @@ def _dummy(x): pytestmark = [] try: - from ..gitlab import (GitlabModuleTestCase, - python_version_match_requirement, - resp_get_project, resp_find_project_hook, - resp_create_project_hook, resp_delete_project_hook) + from .gitlab import (GitlabModuleTestCase, + python_version_match_requirement, + resp_get_project, resp_find_project_hook, + resp_create_project_hook, resp_delete_project_hook) # GitLab module requirements if python_version_match_requirement(): diff --git a/tests/unit/modules/source_control/gitlab/test_gitlab_project.py b/tests/unit/modules/source_control/gitlab/test_gitlab_project.py index e03e423452..79d1cb0d81 100644 --- a/tests/unit/modules/source_control/gitlab/test_gitlab_project.py +++ b/tests/unit/modules/source_control/gitlab/test_gitlab_project.py @@ -18,10 +18,10 @@ def _dummy(x): pytestmark = [] try: - from ..gitlab import (GitlabModuleTestCase, - python_version_match_requirement, - resp_get_group, resp_get_project_by_name, resp_create_project, - resp_get_project, resp_delete_project, resp_get_user) + from .gitlab import (GitlabModuleTestCase, + python_version_match_requirement, + resp_get_group, resp_get_project_by_name, resp_create_project, + resp_get_project, resp_delete_project, resp_get_user) # GitLab module requirements if python_version_match_requirement(): diff --git a/tests/unit/modules/source_control/gitlab/test_gitlab_runner.py b/tests/unit/modules/source_control/gitlab/test_gitlab_runner.py index 0ae8dfe260..2b265d7e37 100644 --- a/tests/unit/modules/source_control/gitlab/test_gitlab_runner.py +++ b/tests/unit/modules/source_control/gitlab/test_gitlab_runner.py @@ -18,10 +18,10 @@ def _dummy(x): pytestmark = [] try: - from ..gitlab import (GitlabModuleTestCase, - python_version_match_requirement, - resp_find_runners_list, resp_get_runner, - resp_create_runner, resp_delete_runner) + from .gitlab import (GitlabModuleTestCase, + python_version_match_requirement, + resp_find_runners_list, resp_get_runner, + resp_create_runner, resp_delete_runner) # GitLab module requirements if python_version_match_requirement(): diff --git a/tests/unit/modules/source_control/gitlab/test_gitlab_user.py b/tests/unit/modules/source_control/gitlab/test_gitlab_user.py index dfa3660c9d..0c5f9c6a69 100644 --- a/tests/unit/modules/source_control/gitlab/test_gitlab_user.py +++ b/tests/unit/modules/source_control/gitlab/test_gitlab_user.py @@ -18,12 +18,12 @@ def _dummy(x): pytestmark = [] try: - from ..gitlab import (GitlabModuleTestCase, - python_version_match_requirement, - resp_find_user, resp_get_user, resp_get_user_keys, - resp_create_user_keys, resp_create_user, resp_delete_user, - resp_get_member, resp_get_group, resp_add_member, - resp_update_member, resp_get_member) + from .gitlab import (GitlabModuleTestCase, + python_version_match_requirement, + resp_find_user, resp_get_user, resp_get_user_keys, + resp_create_user_keys, resp_create_user, resp_delete_user, + resp_get_member, resp_get_group, resp_add_member, + resp_update_member, resp_get_member) # GitLab module requirements if python_version_match_requirement(): diff --git a/tests/utils/shippable/shippable.sh b/tests/utils/shippable/shippable.sh index 82ca6def51..38681a2fd5 100755 --- a/tests/utils/shippable/shippable.sh +++ b/tests/utils/shippable/shippable.sh @@ -148,6 +148,8 @@ ansible-galaxy collection install google.cloud -p "${COLLECTION_DIR}" ansible-galaxy collection install community.kubernetes -p "${COLLECTION_DIR}" ansible-galaxy collection install f5networks.f5_modules -p "${COLLECTION_DIR}" +chmod -R a+rX "${COLLECTION_DIR}" + # END: HACK ansible-test env --dump --show --timeout "${timeout}" --color -v