unittests: remove unused imports (#60404)

This commit is contained in:
Andrey Klychkov 2019-08-12 14:35:39 +03:00 committed by Sviatoslav Sydorenko
parent 8d3fa2251e
commit 3929dc00a1
119 changed files with 0 additions and 299 deletions

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -17,7 +17,6 @@ if sys.version_info < (2, 7):
from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_apm_policy_fetch import ApiParameters
from library.modules.bigip_apm_policy_fetch import ModuleParameters
from library.modules.bigip_apm_policy_fetch import ModuleManager
from library.modules.bigip_apm_policy_fetch import ArgumentSpec
@ -29,7 +28,6 @@ try:
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_apm_policy_fetch import ApiParameters
from ansible.modules.network.f5.bigip_apm_policy_fetch import ModuleParameters
from ansible.modules.network.f5.bigip_apm_policy_fetch import ModuleManager
from ansible.modules.network.f5.bigip_apm_policy_fetch import ArgumentSpec

View file

@ -17,7 +17,6 @@ if sys.version_info < (2, 7):
from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_apm_policy_import import ApiParameters
from library.modules.bigip_apm_policy_import import ModuleParameters
from library.modules.bigip_apm_policy_import import ModuleManager
from library.modules.bigip_apm_policy_import import ArgumentSpec
@ -29,7 +28,6 @@ try:
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_apm_policy_import import ApiParameters
from ansible.modules.network.f5.bigip_apm_policy_import import ModuleParameters
from ansible.modules.network.f5.bigip_apm_policy_import import ModuleManager
from ansible.modules.network.f5.bigip_apm_policy_import import ArgumentSpec

View file

@ -17,7 +17,6 @@ if sys.version_info < (2, 7):
from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_asm_policy_fetch import ApiParameters
from library.modules.bigip_asm_policy_fetch import ModuleParameters
from library.modules.bigip_asm_policy_fetch import ModuleManager
from library.modules.bigip_asm_policy_fetch import ArgumentSpec
@ -29,7 +28,6 @@ try:
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_asm_policy_fetch import ApiParameters
from ansible.modules.network.f5.bigip_asm_policy_fetch import ModuleParameters
from ansible.modules.network.f5.bigip_asm_policy_fetch import ModuleManager
from ansible.modules.network.f5.bigip_asm_policy_fetch import ArgumentSpec

View file

@ -17,7 +17,6 @@ if sys.version_info < (2, 7):
from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_asm_policy_import import ApiParameters
from library.modules.bigip_asm_policy_import import ModuleParameters
from library.modules.bigip_asm_policy_import import ModuleManager
from library.modules.bigip_asm_policy_import import ArgumentSpec
@ -29,7 +28,6 @@ try:
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_asm_policy_import import ApiParameters
from ansible.modules.network.f5.bigip_asm_policy_import import ModuleParameters
from ansible.modules.network.f5.bigip_asm_policy_import import ModuleManager
from ansible.modules.network.f5.bigip_asm_policy_import import ArgumentSpec

View file

@ -18,10 +18,8 @@ from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_asm_policy_manage import V1Parameters
from library.modules.bigip_asm_policy_manage import V2Parameters
from library.modules.bigip_asm_policy_manage import ModuleManager
from library.modules.bigip_asm_policy_manage import V1Manager
from library.modules.bigip_asm_policy_manage import V2Manager
from library.modules.bigip_asm_policy_manage import ArgumentSpec
from library.module_utils.network.f5.common import F5ModuleError
@ -34,10 +32,8 @@ try:
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_asm_policy_manage import V1Parameters
from ansible.modules.network.f5.bigip_asm_policy_manage import V2Parameters
from ansible.modules.network.f5.bigip_asm_policy_manage import ModuleManager
from ansible.modules.network.f5.bigip_asm_policy_manage import V1Manager
from ansible.modules.network.f5.bigip_asm_policy_manage import V2Manager
from ansible.modules.network.f5.bigip_asm_policy_manage import ArgumentSpec
from ansible.module_utils.network.f5.common import F5ModuleError

View file

@ -17,7 +17,6 @@ if sys.version_info < (2, 7):
from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_asm_policy_server_technology import ApiParameters
from library.modules.bigip_asm_policy_server_technology import ModuleParameters
from library.modules.bigip_asm_policy_server_technology import ModuleManager
from library.modules.bigip_asm_policy_server_technology import ArgumentSpec
@ -29,7 +28,6 @@ try:
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_asm_policy_server_technology import ApiParameters
from ansible.modules.network.f5.bigip_asm_policy_server_technology import ModuleParameters
from ansible.modules.network.f5.bigip_asm_policy_server_technology import ModuleManager
from ansible.modules.network.f5.bigip_asm_policy_server_technology import ArgumentSpec

View file

@ -17,7 +17,6 @@ if sys.version_info < (2, 7):
from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_asm_policy_signature_set import ApiParameters
from library.modules.bigip_asm_policy_signature_set import ModuleParameters
from library.modules.bigip_asm_policy_signature_set import ModuleManager
from library.modules.bigip_asm_policy_signature_set import ArgumentSpec
@ -29,7 +28,6 @@ try:
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_asm_policy_signature_set import ApiParameters
from ansible.modules.network.f5.bigip_asm_policy_signature_set import ModuleParameters
from ansible.modules.network.f5.bigip_asm_policy_signature_set import ModuleManager
from ansible.modules.network.f5.bigip_asm_policy_signature_set import ArgumentSpec

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -24,7 +24,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -35,7 +34,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -28,7 +28,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -43,7 +42,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -26,7 +26,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -39,7 +38,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -18,26 +18,22 @@ from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_device_auth_ldap import ApiParameters
from library.modules.bigip_device_auth_ldap import ModuleParameters
from library.modules.bigip_device_auth_ldap import ModuleManager
from library.modules.bigip_device_auth_ldap import ArgumentSpec
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_device_auth_ldap import ApiParameters
from ansible.modules.network.f5.bigip_device_auth_ldap import ModuleParameters
from ansible.modules.network.f5.bigip_device_auth_ldap import ModuleManager
from ansible.modules.network.f5.bigip_device_auth_ldap import ArgumentSpec
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -17,7 +17,6 @@ if sys.version_info < (2, 7):
from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_device_certificate import ApiParameters
from library.modules.bigip_device_certificate import ModuleParameters
from library.modules.bigip_device_certificate import ModuleManager
from library.modules.bigip_device_certificate import ArgumentSpec
@ -25,11 +24,9 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_device_certificate import ApiParameters
from ansible.modules.network.f5.bigip_device_certificate import ModuleParameters
from ansible.modules.network.f5.bigip_device_certificate import ModuleManager
from ansible.modules.network.f5.bigip_device_certificate import ArgumentSpec
@ -37,7 +34,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -27,7 +27,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -41,7 +40,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -24,7 +24,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -35,7 +34,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -24,7 +24,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -35,7 +34,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -17,7 +17,6 @@ if sys.version_info < (2, 7):
from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_device_ha_group import ApiParameters
from library.modules.bigip_device_ha_group import ModuleParameters
from library.modules.bigip_device_ha_group import ModuleManager
from library.modules.bigip_device_ha_group import ArgumentSpec
@ -29,7 +28,6 @@ try:
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_device_ha_group import ApiParameters
from ansible.modules.network.f5.bigip_device_ha_group import ModuleParameters
from ansible.modules.network.f5.bigip_device_ha_group import ModuleManager
from ansible.modules.network.f5.bigip_device_ha_group import ArgumentSpec

View file

@ -20,7 +20,6 @@ from ansible.module_utils.six import iteritems
try:
from library.modules.bigip_device_info import Parameters
from library.modules.bigip_device_info import VirtualAddressesFactManager
from library.modules.bigip_device_info import VirtualAddressesParameters
from library.modules.bigip_device_info import ArgumentSpec
from library.modules.bigip_device_info import ModuleManager
@ -33,7 +32,6 @@ try:
except ImportError:
from ansible.modules.network.f5.bigip_device_info import Parameters
from ansible.modules.network.f5.bigip_device_info import VirtualAddressesFactManager
from ansible.modules.network.f5.bigip_device_info import VirtualAddressesParameters
from ansible.modules.network.f5.bigip_device_info import ArgumentSpec
from ansible.modules.network.f5.bigip_device_info import ModuleManager

View file

@ -17,7 +17,6 @@ if sys.version_info < (2, 7):
from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_device_license import ApiParameters
from library.modules.bigip_device_license import ModuleParameters
from library.modules.bigip_device_license import ModuleManager
from library.modules.bigip_device_license import ArgumentSpec
@ -29,7 +28,6 @@ try:
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_device_license import ApiParameters
from ansible.modules.network.f5.bigip_device_license import ModuleParameters
from ansible.modules.network.f5.bigip_device_license import ModuleManager
from ansible.modules.network.f5.bigip_device_license import ArgumentSpec

View file

@ -24,7 +24,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -35,7 +34,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -24,7 +24,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -35,7 +34,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -26,7 +26,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -39,7 +38,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -17,7 +17,6 @@ if sys.version_info < (2, 7):
from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_firewall_dos_profile import ApiParameters
from library.modules.bigip_firewall_dos_profile import ModuleParameters
from library.modules.bigip_firewall_dos_profile import ModuleManager
from library.modules.bigip_firewall_dos_profile import ArgumentSpec
@ -25,11 +24,9 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_firewall_dos_profile import ApiParameters
from ansible.modules.network.f5.bigip_firewall_dos_profile import ModuleParameters
from ansible.modules.network.f5.bigip_firewall_dos_profile import ModuleManager
from ansible.modules.network.f5.bigip_firewall_dos_profile import ArgumentSpec
@ -37,7 +34,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -17,7 +17,6 @@ if sys.version_info < (2, 7):
from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_firewall_dos_vector import ApiParameters
from library.modules.bigip_firewall_dos_vector import ModuleParameters
from library.modules.bigip_firewall_dos_vector import ModuleManager
from library.modules.bigip_firewall_dos_vector import ArgumentSpec
@ -26,11 +25,9 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_firewall_dos_vector import ApiParameters
from ansible.modules.network.f5.bigip_firewall_dos_vector import ModuleParameters
from ansible.modules.network.f5.bigip_firewall_dos_vector import ModuleManager
from ansible.modules.network.f5.bigip_firewall_dos_vector import ArgumentSpec
@ -39,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -17,7 +17,6 @@ if sys.version_info < (2, 7):
from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_firewall_rule import ApiParameters
from library.modules.bigip_firewall_rule import ModuleParameters
from library.modules.bigip_firewall_rule import ModuleManager
from library.modules.bigip_firewall_rule import ArgumentSpec
@ -25,11 +24,9 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_firewall_rule import ApiParameters
from ansible.modules.network.f5.bigip_firewall_rule import ModuleParameters
from ansible.modules.network.f5.bigip_firewall_rule import ModuleManager
from ansible.modules.network.f5.bigip_firewall_rule import ArgumentSpec
@ -37,7 +34,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -18,26 +18,22 @@ from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_firewall_rule_list import ModuleParameters
from library.modules.bigip_firewall_rule_list import ApiParameters
from library.modules.bigip_firewall_rule_list import ModuleManager
from library.modules.bigip_firewall_rule_list import ArgumentSpec
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_firewall_rule_list import ModuleParameters
from ansible.modules.network.f5.bigip_firewall_rule_list import ApiParameters
from ansible.modules.network.f5.bigip_firewall_rule_list import ModuleManager
from ansible.modules.network.f5.bigip_firewall_rule_list import ArgumentSpec
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -19,46 +19,25 @@ if sys.version_info < (2, 7):
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.six import iteritems
try:
from library.modules.bigip_gtm_facts import Parameters
from library.modules.bigip_gtm_facts import ServerParameters
from library.modules.bigip_gtm_facts import PoolParameters
from library.modules.bigip_gtm_facts import WideIpParameters
from library.modules.bigip_gtm_facts import ModuleManager
from library.modules.bigip_gtm_facts import ServerFactManager
from library.modules.bigip_gtm_facts import PoolFactManager
from library.modules.bigip_gtm_facts import TypedPoolFactManager
from library.modules.bigip_gtm_facts import UntypedPoolFactManager
from library.modules.bigip_gtm_facts import WideIpFactManager
from library.modules.bigip_gtm_facts import TypedWideIpFactManager
from library.modules.bigip_gtm_facts import UntypedWideIpFactManager
from library.modules.bigip_gtm_facts import ArgumentSpec
from library.module_utils.network.f5.common import F5ModuleError
from library.module_utils.network.f5.common import iControlUnexpectedHTTPError
from f5.bigip.tm.gtm.pool import A
from f5.utils.responses.handlers import Stats
from test.unit.modules.utils import set_module_args
except ImportError:
try:
from ansible.modules.network.f5.bigip_gtm_pool import Parameters
from ansible.modules.network.f5.bigip_gtm_pool import ServerParameters
from ansible.modules.network.f5.bigip_gtm_pool import PoolParameters
from ansible.modules.network.f5.bigip_gtm_pool import WideIpParameters
from ansible.modules.network.f5.bigip_gtm_pool import ModuleManager
from ansible.modules.network.f5.bigip_gtm_pool import ServerFactManager
from ansible.modules.network.f5.bigip_gtm_pool import PoolFactManager
from ansible.modules.network.f5.bigip_gtm_pool import TypedPoolFactManager
from ansible.modules.network.f5.bigip_gtm_pool import UntypedPoolFactManager
from ansible.modules.network.f5.bigip_gtm_pool import WideIpFactManager
from ansible.modules.network.f5.bigip_gtm_pool import TypedWideIpFactManager
from ansible.modules.network.f5.bigip_gtm_pool import UntypedWideIpFactManager
from ansible.modules.network.f5.bigip_gtm_pool import ArgumentSpec
from ansible.module_utils.network.f5.common import F5ModuleError
from ansible.module_utils.network.f5.common import iControlUnexpectedHTTPError
from f5.bigip.tm.gtm.pool import A
from f5.utils.responses.handlers import Stats
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -17,7 +17,6 @@ if sys.version_info < (2, 7):
from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_gtm_monitor_external import ApiParameters
from library.modules.bigip_gtm_monitor_external import ModuleParameters
from library.modules.bigip_gtm_monitor_external import ModuleManager
from library.modules.bigip_gtm_monitor_external import ArgumentSpec
@ -29,7 +28,6 @@ try:
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_gtm_monitor_external import ApiParameters
from ansible.modules.network.f5.bigip_gtm_monitor_external import ModuleParameters
from ansible.modules.network.f5.bigip_gtm_monitor_external import ModuleManager
from ansible.modules.network.f5.bigip_gtm_monitor_external import ArgumentSpec

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -26,7 +26,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -39,7 +38,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -24,7 +24,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -35,7 +34,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -17,27 +17,21 @@ if sys.version_info < (2, 7):
from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_imish_config import ApiParameters
from library.modules.bigip_imish_config import ModuleParameters
from library.modules.bigip_imish_config import ModuleManager
from library.modules.bigip_imish_config import ArgumentSpec
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_imish_config import ApiParameters
from ansible.modules.network.f5.bigip_imish_config import ModuleParameters
from ansible.modules.network.f5.bigip_imish_config import ModuleManager
from ansible.modules.network.f5.bigip_imish_config import ArgumentSpec
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -18,34 +18,26 @@ from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_log_destination import V1ApiParameters
from library.modules.bigip_log_destination import V2ApiParameters
from library.modules.bigip_log_destination import V1ModuleParameters
from library.modules.bigip_log_destination import V2ModuleParameters
from library.modules.bigip_log_destination import ModuleManager
from library.modules.bigip_log_destination import V1Manager
from library.modules.bigip_log_destination import V2Manager
from library.modules.bigip_log_destination import ArgumentSpec
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_log_destination import V1ApiParameters
from ansible.modules.network.f5.bigip_log_destination import V2ApiParameters
from ansible.modules.network.f5.bigip_log_destination import V1ModuleParameters
from ansible.modules.network.f5.bigip_log_destination import V2ModuleParameters
from ansible.modules.network.f5.bigip_log_destination import ModuleManager
from ansible.modules.network.f5.bigip_log_destination import V1Manager
from ansible.modules.network.f5.bigip_log_destination import V2Manager
from ansible.modules.network.f5.bigip_log_destination import ArgumentSpec
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -26,7 +26,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -39,7 +38,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -26,7 +26,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -39,7 +38,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -26,7 +26,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -39,7 +38,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -26,7 +26,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -39,7 +38,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -17,7 +17,6 @@ if sys.version_info < (2, 7):
from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_monitor_external import ApiParameters
from library.modules.bigip_monitor_external import ModuleParameters
from library.modules.bigip_monitor_external import ModuleManager
from library.modules.bigip_monitor_external import ArgumentSpec
@ -25,11 +24,9 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_monitor_external import ApiParameters
from ansible.modules.network.f5.bigip_monitor_external import ModuleParameters
from ansible.modules.network.f5.bigip_monitor_external import ModuleManager
from ansible.modules.network.f5.bigip_monitor_external import ArgumentSpec
@ -37,7 +34,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -26,7 +26,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -39,7 +38,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -26,7 +26,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -39,7 +38,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -18,26 +18,22 @@ from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_monitor_ldap import ApiParameters
from library.modules.bigip_monitor_ldap import ModuleParameters
from library.modules.bigip_monitor_ldap import ModuleManager
from library.modules.bigip_monitor_ldap import ArgumentSpec
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_monitor_ldap import ApiParameters
from ansible.modules.network.f5.bigip_monitor_ldap import ModuleParameters
from ansible.modules.network.f5.bigip_monitor_ldap import ModuleManager
from ansible.modules.network.f5.bigip_monitor_ldap import ArgumentSpec
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -24,7 +24,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -35,7 +34,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -26,7 +26,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -39,7 +38,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -26,7 +26,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -39,7 +38,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -26,7 +26,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -39,7 +38,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -26,7 +26,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -39,7 +38,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -18,7 +18,6 @@ from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_node import Parameters
from library.modules.bigip_node import ModuleParameters
from library.modules.bigip_node import ApiParameters
from library.modules.bigip_node import ModuleManager
from library.modules.bigip_node import ArgumentSpec
@ -26,12 +25,10 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_node import Parameters
from ansible.modules.network.f5.bigip_node import ModuleParameters
from ansible.modules.network.f5.bigip_node import ApiParameters
from ansible.modules.network.f5.bigip_node import ModuleManager
from ansible.modules.network.f5.bigip_node import ArgumentSpec
@ -39,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -20,26 +20,22 @@ try:
from library.modules.bigip_policy import Parameters
from library.modules.bigip_policy import ModuleManager
from library.modules.bigip_policy import SimpleManager
from library.modules.bigip_policy import ComplexManager
from library.modules.bigip_policy import ArgumentSpec
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_policy import Parameters
from ansible.modules.network.f5.bigip_policy import ModuleManager
from ansible.modules.network.f5.bigip_policy import SimpleManager
from ansible.modules.network.f5.bigip_policy import ComplexManager
from ansible.modules.network.f5.bigip_policy import ArgumentSpec
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -17,7 +17,6 @@ if sys.version_info < (2, 7):
from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_policy_rule import Parameters
from library.modules.bigip_policy_rule import ModuleParameters
from library.modules.bigip_policy_rule import ApiParameters
from library.modules.bigip_policy_rule import ModuleManager
@ -26,11 +25,9 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_policy_rule import Parameters
from ansible.modules.network.f5.bigip_policy_rule import ModuleParameters
from ansible.modules.network.f5.bigip_policy_rule import ApiParameters
from ansible.modules.network.f5.bigip_policy_rule import ModuleManager
@ -39,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -27,7 +27,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -41,7 +40,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -26,7 +26,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -39,7 +38,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -17,7 +17,6 @@ if sys.version_info < (2, 7):
from ansible.module_utils.basic import AnsibleModule
try:
from library.modules.bigip_remote_syslog import ApiParameters
from library.modules.bigip_remote_syslog import ModuleParameters
from library.modules.bigip_remote_syslog import ModuleManager
from library.modules.bigip_remote_syslog import ArgumentSpec
@ -27,11 +26,9 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
from ansible.modules.network.f5.bigip_remote_syslog import ApiParameters
from ansible.modules.network.f5.bigip_remote_syslog import ModuleParameters
from ansible.modules.network.f5.bigip_remote_syslog import ModuleManager
from ansible.modules.network.f5.bigip_remote_syslog import ArgumentSpec
@ -41,7 +38,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -18,7 +18,6 @@ if sys.version_info < (2, 7):
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from ansible.module_utils.basic import AnsibleModule
try:
@ -26,8 +25,6 @@ try:
from library.modules.bigip_security_address_list import ModuleParameters
from library.modules.bigip_security_address_list import ModuleManager
from library.modules.bigip_security_address_list import ArgumentSpec
from library.module_utils.network.f5.common import F5ModuleError
from library.module_utils.network.f5.common import iControlUnexpectedHTTPError
from test.unit.modules.utils import set_module_args
except ImportError:
try:
@ -35,8 +32,6 @@ except ImportError:
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.module_utils.network.f5.common import F5ModuleError
from ansible.module_utils.network.f5.common import iControlUnexpectedHTTPError
from units.modules.utils import set_module_args
except ImportError:
pytestmark.append(pytest.mark.skip("F5 Ansible modules require the f5-sdk Python library"))

View file

@ -18,7 +18,6 @@ if sys.version_info < (2, 7):
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from ansible.module_utils.basic import AnsibleModule
try:
@ -26,8 +25,6 @@ try:
from library.modules.bigip_security_port_list import ModuleParameters
from library.modules.bigip_security_port_list import ModuleManager
from library.modules.bigip_security_port_list import ArgumentSpec
from library.module_utils.network.f5.common import F5ModuleError
from library.module_utils.network.f5.common import iControlUnexpectedHTTPError
from test.unit.modules.utils import set_module_args
except ImportError:
try:
@ -35,8 +32,6 @@ except ImportError:
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.module_utils.network.f5.common import F5ModuleError
from ansible.module_utils.network.f5.common import iControlUnexpectedHTTPError
from units.modules.utils import set_module_args
except ImportError:
pytestmark.append(pytest.mark.skip("F5 Ansible modules require the f5-sdk Python library"))

View file

@ -27,7 +27,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -41,7 +40,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

View file

@ -25,7 +25,6 @@ try:
# In Ansible 2.8, Ansible changed import paths.
from test.units.compat import unittest
from test.units.compat.mock import Mock
from test.units.compat.mock import patch
from test.units.modules.utils import set_module_args
except ImportError:
@ -37,7 +36,6 @@ except ImportError:
# Ansible 2.8 imports
from units.compat import unittest
from units.compat.mock import Mock
from units.compat.mock import patch
from units.modules.utils import set_module_args

Some files were not shown because too many files have changed in this diff Show more