mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Remove f5-sdk from bigip_log_destination (#48517)
This commit is contained in:
parent
94d04b7da4
commit
73ec37b6b6
2 changed files with 1146 additions and 128 deletions
File diff suppressed because it is too large
Load diff
|
@ -8,16 +8,12 @@ __metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
import pytest
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from nose.plugins.skip import SkipTest
|
from nose.plugins.skip import SkipTest
|
||||||
if sys.version_info < (2, 7):
|
if sys.version_info < (2, 7):
|
||||||
raise SkipTest("F5 Ansible modules require Python >= 2.7")
|
raise SkipTest("F5 Ansible modules require Python >= 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.basic import AnsibleModule
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -29,9 +25,13 @@ try:
|
||||||
from library.modules.bigip_log_destination import V1Manager
|
from library.modules.bigip_log_destination import V1Manager
|
||||||
from library.modules.bigip_log_destination import V2Manager
|
from library.modules.bigip_log_destination import V2Manager
|
||||||
from library.modules.bigip_log_destination import ArgumentSpec
|
from library.modules.bigip_log_destination import ArgumentSpec
|
||||||
from library.module_utils.network.f5.common import F5ModuleError
|
|
||||||
from library.module_utils.network.f5.common import iControlUnexpectedHTTPError
|
# In Ansible 2.8, Ansible changed import paths.
|
||||||
from test.unit.modules.utils import set_module_args
|
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:
|
except ImportError:
|
||||||
try:
|
try:
|
||||||
from ansible.modules.network.f5.bigip_log_destination import V1ApiParameters
|
from ansible.modules.network.f5.bigip_log_destination import V1ApiParameters
|
||||||
|
@ -42,8 +42,12 @@ except ImportError:
|
||||||
from ansible.modules.network.f5.bigip_log_destination import V1Manager
|
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 V2Manager
|
||||||
from ansible.modules.network.f5.bigip_log_destination import ArgumentSpec
|
from ansible.modules.network.f5.bigip_log_destination import ArgumentSpec
|
||||||
from ansible.module_utils.network.f5.common import F5ModuleError
|
|
||||||
from ansible.module_utils.network.f5.common import iControlUnexpectedHTTPError
|
# 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
|
from units.modules.utils import set_module_args
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise SkipTest("F5 Ansible modules require the f5-sdk Python library")
|
raise SkipTest("F5 Ansible modules require the f5-sdk Python library")
|
||||||
|
|
Loading…
Reference in a new issue