|
|
|
@ -29,20 +29,18 @@ try:
|
|
|
|
|
|
|
|
|
|
from test.units.modules.utils import set_module_args
|
|
|
|
|
except ImportError:
|
|
|
|
|
try:
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
# Ansible 2.8 imports
|
|
|
|
|
from units.compat import unittest
|
|
|
|
|
from units.compat.mock import Mock
|
|
|
|
|
from units.compat.mock import patch
|
|
|
|
|
|
|
|
|
|
# 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:
|
|
|
|
|
raise SkipTest("F5 Ansible modules require the f5-sdk Python library")
|
|
|
|
|
|
|
|
|
|
fixture_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
|
|
|
|
fixture_data = {}
|
|
|
|
@ -89,8 +87,6 @@ class TestParameters(unittest.TestCase):
|
|
|
|
|
assert p.timeout == 30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@patch('ansible.module_utils.f5_utils.AnsibleF5Client._get_mgmt_root',
|
|
|
|
|
return_value=True)
|
|
|
|
|
class TestManager(unittest.TestCase):
|
|
|
|
|
|
|
|
|
|
def setUp(self):
|
|
|
|
|