mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Change port to allow strings too (#48899)
The port technically supports an asterisk, but the argument spec was requiring integers only.
This commit is contained in:
parent
03f448f329
commit
e6d586f703
33 changed files with 185 additions and 223 deletions
|
@ -614,7 +614,7 @@ class ArgumentSpec(object):
|
||||||
name=dict(required=True),
|
name=dict(required=True),
|
||||||
parent=dict(default='/Common/bigip'),
|
parent=dict(default='/Common/bigip'),
|
||||||
ip=dict(),
|
ip=dict(),
|
||||||
port=dict(type='int'),
|
port=dict(),
|
||||||
interval=dict(type='int'),
|
interval=dict(type='int'),
|
||||||
timeout=dict(type='int'),
|
timeout=dict(type='int'),
|
||||||
ignore_down_response=dict(type='bool'),
|
ignore_down_response=dict(type='bool'),
|
||||||
|
|
|
@ -659,7 +659,7 @@ class ArgumentSpec(object):
|
||||||
parent=dict(default='/Common/external'),
|
parent=dict(default='/Common/external'),
|
||||||
arguments=dict(),
|
arguments=dict(),
|
||||||
ip=dict(),
|
ip=dict(),
|
||||||
port=dict(type='int'),
|
port=dict(),
|
||||||
external_program=dict(),
|
external_program=dict(),
|
||||||
interval=dict(type='int'),
|
interval=dict(type='int'),
|
||||||
timeout=dict(type='int'),
|
timeout=dict(type='int'),
|
||||||
|
|
|
@ -733,7 +733,7 @@ class ArgumentSpec(object):
|
||||||
name=dict(required=True),
|
name=dict(required=True),
|
||||||
parent=dict(default='/Common/firepass_gtm'),
|
parent=dict(default='/Common/firepass_gtm'),
|
||||||
ip=dict(),
|
ip=dict(),
|
||||||
port=dict(type='int'),
|
port=dict(),
|
||||||
interval=dict(type='int'),
|
interval=dict(type='int'),
|
||||||
timeout=dict(type='int'),
|
timeout=dict(type='int'),
|
||||||
ignore_down_response=dict(type='bool'),
|
ignore_down_response=dict(type='bool'),
|
||||||
|
|
|
@ -779,7 +779,7 @@ class ArgumentSpec(object):
|
||||||
send=dict(),
|
send=dict(),
|
||||||
receive=dict(),
|
receive=dict(),
|
||||||
ip=dict(),
|
ip=dict(),
|
||||||
port=dict(type='int'),
|
port=dict(),
|
||||||
interval=dict(type='int'),
|
interval=dict(type='int'),
|
||||||
timeout=dict(type='int'),
|
timeout=dict(type='int'),
|
||||||
ignore_down_response=dict(type='bool'),
|
ignore_down_response=dict(type='bool'),
|
||||||
|
|
|
@ -895,7 +895,7 @@ class ArgumentSpec(object):
|
||||||
send=dict(),
|
send=dict(),
|
||||||
receive=dict(),
|
receive=dict(),
|
||||||
ip=dict(),
|
ip=dict(),
|
||||||
port=dict(type='int'),
|
port=dict(),
|
||||||
interval=dict(type='int'),
|
interval=dict(type='int'),
|
||||||
timeout=dict(type='int'),
|
timeout=dict(type='int'),
|
||||||
ignore_down_response=dict(type='bool'),
|
ignore_down_response=dict(type='bool'),
|
||||||
|
|
|
@ -747,7 +747,7 @@ class ArgumentSpec(object):
|
||||||
send=dict(),
|
send=dict(),
|
||||||
receive=dict(),
|
receive=dict(),
|
||||||
ip=dict(),
|
ip=dict(),
|
||||||
port=dict(type='int'),
|
port=dict(),
|
||||||
interval=dict(type='int'),
|
interval=dict(type='int'),
|
||||||
timeout=dict(type='int'),
|
timeout=dict(type='int'),
|
||||||
ignore_down_response=dict(type='bool'),
|
ignore_down_response=dict(type='bool'),
|
||||||
|
|
|
@ -654,7 +654,7 @@ class ArgumentSpec(object):
|
||||||
name=dict(required=True),
|
name=dict(required=True),
|
||||||
parent=dict(default='/Common/tcp_half_open'),
|
parent=dict(default='/Common/tcp_half_open'),
|
||||||
ip=dict(),
|
ip=dict(),
|
||||||
port=dict(type='int'),
|
port=dict(),
|
||||||
interval=dict(type='int'),
|
interval=dict(type='int'),
|
||||||
timeout=dict(type='int'),
|
timeout=dict(type='int'),
|
||||||
probe_interval=dict(type='int'),
|
probe_interval=dict(type='int'),
|
||||||
|
|
|
@ -960,7 +960,7 @@ class ArgumentSpec(object):
|
||||||
receive=dict(),
|
receive=dict(),
|
||||||
ip=dict(),
|
ip=dict(),
|
||||||
description=dict(),
|
description=dict(),
|
||||||
port=dict(type='int'),
|
port=dict(),
|
||||||
interval=dict(type='int'),
|
interval=dict(type='int'),
|
||||||
timeout=dict(type='int'),
|
timeout=dict(type='int'),
|
||||||
manual_resume=dict(type='bool'),
|
manual_resume=dict(type='bool'),
|
||||||
|
|
|
@ -696,7 +696,7 @@ class ArgumentSpec(object):
|
||||||
description=dict(),
|
description=dict(),
|
||||||
arguments=dict(),
|
arguments=dict(),
|
||||||
ip=dict(),
|
ip=dict(),
|
||||||
port=dict(type='int'),
|
port=dict(),
|
||||||
external_program=dict(),
|
external_program=dict(),
|
||||||
interval=dict(type='int'),
|
interval=dict(type='int'),
|
||||||
timeout=dict(type='int'),
|
timeout=dict(type='int'),
|
||||||
|
|
|
@ -698,7 +698,7 @@ class ArgumentSpec(object):
|
||||||
receive=dict(),
|
receive=dict(),
|
||||||
receive_disable=dict(required=False),
|
receive_disable=dict(required=False),
|
||||||
ip=dict(),
|
ip=dict(),
|
||||||
port=dict(type='int'),
|
port=dict(),
|
||||||
interval=dict(type='int'),
|
interval=dict(type='int'),
|
||||||
reverse=dict(type='bool'),
|
reverse=dict(type='bool'),
|
||||||
timeout=dict(type='int'),
|
timeout=dict(type='int'),
|
||||||
|
|
|
@ -56,7 +56,7 @@ options:
|
||||||
- Port address part of the IP/port definition. If this parameter is not
|
- Port address part of the IP/port definition. If this parameter is not
|
||||||
provided when creating a new monitor, then the default value will be
|
provided when creating a new monitor, then the default value will be
|
||||||
'*'. Note that if specifying an IP address, a value between 1 and 65535
|
'*'. Note that if specifying an IP address, a value between 1 and 65535
|
||||||
must be specified
|
must be specified.
|
||||||
interval:
|
interval:
|
||||||
description:
|
description:
|
||||||
- The interval specifying how frequently the monitor instance of this
|
- The interval specifying how frequently the monitor instance of this
|
||||||
|
@ -667,7 +667,7 @@ class ArgumentSpec(object):
|
||||||
receive=dict(),
|
receive=dict(),
|
||||||
receive_disable=dict(required=False),
|
receive_disable=dict(required=False),
|
||||||
ip=dict(),
|
ip=dict(),
|
||||||
port=dict(type='int'),
|
port=dict(),
|
||||||
interval=dict(type='int'),
|
interval=dict(type='int'),
|
||||||
timeout=dict(type='int'),
|
timeout=dict(type='int'),
|
||||||
time_until_up=dict(type='int'),
|
time_until_up=dict(type='int'),
|
||||||
|
|
|
@ -756,7 +756,7 @@ class ArgumentSpec(object):
|
||||||
parent=dict(default='/Common/ldap'),
|
parent=dict(default='/Common/ldap'),
|
||||||
ip=dict(),
|
ip=dict(),
|
||||||
description=dict(),
|
description=dict(),
|
||||||
port=dict(type='int'),
|
port=dict(),
|
||||||
interval=dict(type='int'),
|
interval=dict(type='int'),
|
||||||
timeout=dict(type='int'),
|
timeout=dict(type='int'),
|
||||||
target_username=dict(),
|
target_username=dict(),
|
||||||
|
|
|
@ -621,7 +621,7 @@ class ArgumentSpec(object):
|
||||||
send=dict(),
|
send=dict(),
|
||||||
receive=dict(),
|
receive=dict(),
|
||||||
ip=dict(),
|
ip=dict(),
|
||||||
port=dict(type='int'),
|
port=dict(),
|
||||||
interval=dict(type='int'),
|
interval=dict(type='int'),
|
||||||
timeout=dict(type='int'),
|
timeout=dict(type='int'),
|
||||||
time_until_up=dict(type='int'),
|
time_until_up=dict(type='int'),
|
||||||
|
|
|
@ -38,8 +38,6 @@ options:
|
||||||
- IP address part of the IP/port definition. If this parameter is not
|
- IP address part of the IP/port definition. If this parameter is not
|
||||||
provided when creating a new monitor, then the default value will be
|
provided when creating a new monitor, then the default value will be
|
||||||
'*'.
|
'*'.
|
||||||
- If this value is an IP address, and the C(type) is C(tcp) (the default),
|
|
||||||
then a C(port) number must be specified.
|
|
||||||
interval:
|
interval:
|
||||||
description:
|
description:
|
||||||
- The interval specifying how frequently the monitor instance of this
|
- The interval specifying how frequently the monitor instance of this
|
||||||
|
|
|
@ -606,7 +606,7 @@ class ArgumentSpec(object):
|
||||||
parent=dict(default='/Common/tcp_half_open'),
|
parent=dict(default='/Common/tcp_half_open'),
|
||||||
description=dict(),
|
description=dict(),
|
||||||
ip=dict(),
|
ip=dict(),
|
||||||
port=dict(type='int'),
|
port=dict(),
|
||||||
interval=dict(type='int'),
|
interval=dict(type='int'),
|
||||||
timeout=dict(type='int'),
|
timeout=dict(type='int'),
|
||||||
time_until_up=dict(type='int'),
|
time_until_up=dict(type='int'),
|
||||||
|
|
|
@ -616,7 +616,7 @@ class ArgumentSpec(object):
|
||||||
receive=dict(),
|
receive=dict(),
|
||||||
receive_disable=dict(required=False),
|
receive_disable=dict(required=False),
|
||||||
ip=dict(),
|
ip=dict(),
|
||||||
port=dict(type='int'),
|
port=dict(),
|
||||||
interval=dict(type='int'),
|
interval=dict(type='int'),
|
||||||
timeout=dict(type='int'),
|
timeout=dict(type='int'),
|
||||||
time_until_up=dict(type='int'),
|
time_until_up=dict(type='int'),
|
||||||
|
|
|
@ -29,20 +29,18 @@ try:
|
||||||
|
|
||||||
from test.units.modules.utils import set_module_args
|
from test.units.modules.utils import set_module_args
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
from ansible.modules.network.f5.bigip_gtm_monitor_bigip import ApiParameters
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_bigip import ApiParameters
|
from ansible.modules.network.f5.bigip_gtm_monitor_bigip import ModuleParameters
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_bigip import ModuleParameters
|
from ansible.modules.network.f5.bigip_gtm_monitor_bigip import ModuleManager
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_bigip import ModuleManager
|
from ansible.modules.network.f5.bigip_gtm_monitor_bigip import ArgumentSpec
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_bigip import ArgumentSpec
|
|
||||||
|
|
||||||
# Ansible 2.8 imports
|
# Ansible 2.8 imports
|
||||||
from units.compat import unittest
|
from units.compat import unittest
|
||||||
from units.compat.mock import Mock
|
from units.compat.mock import Mock
|
||||||
from units.compat.mock import patch
|
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_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||||
fixture_data = {}
|
fixture_data = {}
|
||||||
|
|
|
@ -29,20 +29,18 @@ try:
|
||||||
|
|
||||||
from test.units.modules.utils import set_module_args
|
from test.units.modules.utils import set_module_args
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
from ansible.modules.network.f5.bigip_gtm_monitor_external import ApiParameters
|
||||||
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 ModuleParameters
|
from ansible.modules.network.f5.bigip_gtm_monitor_external import ModuleManager
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_external import ModuleManager
|
from ansible.modules.network.f5.bigip_gtm_monitor_external import ArgumentSpec
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_external import ArgumentSpec
|
|
||||||
|
|
||||||
# Ansible 2.8 imports
|
# Ansible 2.8 imports
|
||||||
from units.compat import unittest
|
from units.compat import unittest
|
||||||
from units.compat.mock import Mock
|
from units.compat.mock import Mock
|
||||||
from units.compat.mock import patch
|
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_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||||
fixture_data = {}
|
fixture_data = {}
|
||||||
|
|
|
@ -29,20 +29,18 @@ try:
|
||||||
|
|
||||||
from test.units.modules.utils import set_module_args
|
from test.units.modules.utils import set_module_args
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
from ansible.modules.network.f5.bigip_gtm_monitor_firepass import ApiParameters
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_firepass import ApiParameters
|
from ansible.modules.network.f5.bigip_gtm_monitor_firepass import ModuleParameters
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_firepass import ModuleParameters
|
from ansible.modules.network.f5.bigip_gtm_monitor_firepass import ModuleManager
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_firepass import ModuleManager
|
from ansible.modules.network.f5.bigip_gtm_monitor_firepass import ArgumentSpec
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_firepass import ArgumentSpec
|
|
||||||
|
|
||||||
# Ansible 2.8 imports
|
# Ansible 2.8 imports
|
||||||
from units.compat import unittest
|
from units.compat import unittest
|
||||||
from units.compat.mock import Mock
|
from units.compat.mock import Mock
|
||||||
from units.compat.mock import patch
|
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_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||||
fixture_data = {}
|
fixture_data = {}
|
||||||
|
|
|
@ -29,20 +29,18 @@ try:
|
||||||
|
|
||||||
from test.units.modules.utils import set_module_args
|
from test.units.modules.utils import set_module_args
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
from ansible.modules.network.f5.bigip_gtm_monitor_http import ApiParameters
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_http import ApiParameters
|
from ansible.modules.network.f5.bigip_gtm_monitor_http import ModuleParameters
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_http import ModuleParameters
|
from ansible.modules.network.f5.bigip_gtm_monitor_http import ModuleManager
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_http import ModuleManager
|
from ansible.modules.network.f5.bigip_gtm_monitor_http import ArgumentSpec
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_http import ArgumentSpec
|
|
||||||
|
|
||||||
# Ansible 2.8 imports
|
# Ansible 2.8 imports
|
||||||
from units.compat import unittest
|
from units.compat import unittest
|
||||||
from units.compat.mock import Mock
|
from units.compat.mock import Mock
|
||||||
from units.compat.mock import patch
|
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_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||||
fixture_data = {}
|
fixture_data = {}
|
||||||
|
|
|
@ -29,20 +29,18 @@ try:
|
||||||
|
|
||||||
from test.units.modules.utils import set_module_args
|
from test.units.modules.utils import set_module_args
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
from ansible.modules.network.f5.bigip_gtm_monitor_https import ApiParameters
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_https import ApiParameters
|
from ansible.modules.network.f5.bigip_gtm_monitor_https import ModuleParameters
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_https import ModuleParameters
|
from ansible.modules.network.f5.bigip_gtm_monitor_https import ModuleManager
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_https import ModuleManager
|
from ansible.modules.network.f5.bigip_gtm_monitor_https import ArgumentSpec
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_https import ArgumentSpec
|
|
||||||
|
|
||||||
# Ansible 2.8 imports
|
# Ansible 2.8 imports
|
||||||
from units.compat import unittest
|
from units.compat import unittest
|
||||||
from units.compat.mock import Mock
|
from units.compat.mock import Mock
|
||||||
from units.compat.mock import patch
|
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_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||||
fixture_data = {}
|
fixture_data = {}
|
||||||
|
|
|
@ -29,20 +29,18 @@ try:
|
||||||
|
|
||||||
from test.units.modules.utils import set_module_args
|
from test.units.modules.utils import set_module_args
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
from ansible.modules.network.f5.bigip_gtm_monitor_tcp import ApiParameters
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_tcp import ApiParameters
|
from ansible.modules.network.f5.bigip_gtm_monitor_tcp import ModuleParameters
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_tcp import ModuleParameters
|
from ansible.modules.network.f5.bigip_gtm_monitor_tcp import ModuleManager
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_tcp import ModuleManager
|
from ansible.modules.network.f5.bigip_gtm_monitor_tcp import ArgumentSpec
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_tcp import ArgumentSpec
|
|
||||||
|
|
||||||
# Ansible 2.8 imports
|
# Ansible 2.8 imports
|
||||||
from units.compat import unittest
|
from units.compat import unittest
|
||||||
from units.compat.mock import Mock
|
from units.compat.mock import Mock
|
||||||
from units.compat.mock import patch
|
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_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||||
fixture_data = {}
|
fixture_data = {}
|
||||||
|
|
|
@ -29,20 +29,18 @@ try:
|
||||||
|
|
||||||
from test.units.modules.utils import set_module_args
|
from test.units.modules.utils import set_module_args
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
from ansible.modules.network.f5.bigip_gtm_monitor_tcp_half_open import ApiParameters
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_tcp_half_open import ApiParameters
|
from ansible.modules.network.f5.bigip_gtm_monitor_tcp_half_open import ModuleParameters
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_tcp_half_open import ModuleParameters
|
from ansible.modules.network.f5.bigip_gtm_monitor_tcp_half_open import ModuleManager
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_tcp_half_open import ModuleManager
|
from ansible.modules.network.f5.bigip_gtm_monitor_tcp_half_open import ArgumentSpec
|
||||||
from ansible.modules.network.f5.bigip_gtm_monitor_tcp_half_open import ArgumentSpec
|
|
||||||
|
|
||||||
# Ansible 2.8 imports
|
# Ansible 2.8 imports
|
||||||
from units.compat import unittest
|
from units.compat import unittest
|
||||||
from units.compat.mock import Mock
|
from units.compat.mock import Mock
|
||||||
from units.compat.mock import patch
|
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_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||||
fixture_data = {}
|
fixture_data = {}
|
||||||
|
|
|
@ -29,20 +29,18 @@ try:
|
||||||
|
|
||||||
from test.units.modules.utils import set_module_args
|
from test.units.modules.utils import set_module_args
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
from ansible.modules.network.f5.bigip_monitor_dns import ApiParameters
|
||||||
from ansible.modules.network.f5.bigip_monitor_dns import ApiParameters
|
from ansible.modules.network.f5.bigip_monitor_dns import ModuleParameters
|
||||||
from ansible.modules.network.f5.bigip_monitor_dns import ModuleParameters
|
from ansible.modules.network.f5.bigip_monitor_dns import ModuleManager
|
||||||
from ansible.modules.network.f5.bigip_monitor_dns import ModuleManager
|
from ansible.modules.network.f5.bigip_monitor_dns import ArgumentSpec
|
||||||
from ansible.modules.network.f5.bigip_monitor_dns import ArgumentSpec
|
|
||||||
|
|
||||||
# Ansible 2.8 imports
|
# Ansible 2.8 imports
|
||||||
from units.compat import unittest
|
from units.compat import unittest
|
||||||
from units.compat.mock import Mock
|
from units.compat.mock import Mock
|
||||||
from units.compat.mock import patch
|
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_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||||
fixture_data = {}
|
fixture_data = {}
|
||||||
|
|
|
@ -29,20 +29,18 @@ try:
|
||||||
|
|
||||||
from test.units.modules.utils import set_module_args
|
from test.units.modules.utils import set_module_args
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
from ansible.modules.network.f5.bigip_monitor_external import ApiParameters
|
||||||
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 ModuleParameters
|
from ansible.modules.network.f5.bigip_monitor_external import ModuleManager
|
||||||
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 ArgumentSpec
|
|
||||||
|
|
||||||
# Ansible 2.8 imports
|
# Ansible 2.8 imports
|
||||||
from units.compat import unittest
|
from units.compat import unittest
|
||||||
from units.compat.mock import Mock
|
from units.compat.mock import Mock
|
||||||
from units.compat.mock import patch
|
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_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||||
fixture_data = {}
|
fixture_data = {}
|
||||||
|
@ -89,8 +87,6 @@ class TestParameters(unittest.TestCase):
|
||||||
assert p.timeout == 30
|
assert p.timeout == 30
|
||||||
|
|
||||||
|
|
||||||
@patch('ansible.module_utils.f5_utils.AnsibleF5Client._get_mgmt_root',
|
|
||||||
return_value=True)
|
|
||||||
class TestManager(unittest.TestCase):
|
class TestManager(unittest.TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
|
|
@ -31,21 +31,19 @@ try:
|
||||||
|
|
||||||
from test.units.modules.utils import set_module_args
|
from test.units.modules.utils import set_module_args
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
from ansible.modules.network.f5.bigip_monitor_http import Parameters
|
||||||
from ansible.modules.network.f5.bigip_monitor_http import Parameters
|
from ansible.modules.network.f5.bigip_monitor_http import ModuleManager
|
||||||
from ansible.modules.network.f5.bigip_monitor_http import ModuleManager
|
from ansible.modules.network.f5.bigip_monitor_http import ArgumentSpec
|
||||||
from ansible.modules.network.f5.bigip_monitor_http import ArgumentSpec
|
|
||||||
|
|
||||||
from ansible.module_utils.network.f5.common import F5ModuleError
|
from ansible.module_utils.network.f5.common import F5ModuleError
|
||||||
|
|
||||||
# Ansible 2.8 imports
|
# Ansible 2.8 imports
|
||||||
from units.compat import unittest
|
from units.compat import unittest
|
||||||
from units.compat.mock import Mock
|
from units.compat.mock import Mock
|
||||||
from units.compat.mock import patch
|
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_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||||
fixture_data = {}
|
fixture_data = {}
|
||||||
|
|
|
@ -31,21 +31,19 @@ try:
|
||||||
|
|
||||||
from test.units.modules.utils import set_module_args
|
from test.units.modules.utils import set_module_args
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
from ansible.modules.network.f5.bigip_monitor_https import Parameters
|
||||||
from ansible.modules.network.f5.bigip_monitor_https import Parameters
|
from ansible.modules.network.f5.bigip_monitor_https import ModuleManager
|
||||||
from ansible.modules.network.f5.bigip_monitor_https import ModuleManager
|
from ansible.modules.network.f5.bigip_monitor_https import ArgumentSpec
|
||||||
from ansible.modules.network.f5.bigip_monitor_https import ArgumentSpec
|
|
||||||
|
|
||||||
from ansible.module_utils.network.f5.common import F5ModuleError
|
from ansible.module_utils.network.f5.common import F5ModuleError
|
||||||
|
|
||||||
# Ansible 2.8 imports
|
# Ansible 2.8 imports
|
||||||
from units.compat import unittest
|
from units.compat import unittest
|
||||||
from units.compat.mock import Mock
|
from units.compat.mock import Mock
|
||||||
from units.compat.mock import patch
|
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_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||||
fixture_data = {}
|
fixture_data = {}
|
||||||
|
|
|
@ -29,20 +29,18 @@ try:
|
||||||
|
|
||||||
from test.units.modules.utils import set_module_args
|
from test.units.modules.utils import set_module_args
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
from ansible.modules.network.f5.bigip_monitor_ldap import ApiParameters
|
||||||
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 ModuleParameters
|
from ansible.modules.network.f5.bigip_monitor_ldap import ModuleManager
|
||||||
from ansible.modules.network.f5.bigip_monitor_ldap import ModuleManager
|
from ansible.modules.network.f5.bigip_monitor_ldap import ArgumentSpec
|
||||||
from ansible.modules.network.f5.bigip_monitor_ldap import ArgumentSpec
|
|
||||||
|
|
||||||
# Ansible 2.8 imports
|
# Ansible 2.8 imports
|
||||||
from units.compat import unittest
|
from units.compat import unittest
|
||||||
from units.compat.mock import Mock
|
from units.compat.mock import Mock
|
||||||
from units.compat.mock import patch
|
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_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||||
fixture_data = {}
|
fixture_data = {}
|
||||||
|
|
|
@ -28,19 +28,17 @@ try:
|
||||||
|
|
||||||
from test.units.modules.utils import set_module_args
|
from test.units.modules.utils import set_module_args
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
from ansible.modules.network.f5.bigip_monitor_snmp_dca import Parameters
|
||||||
from ansible.modules.network.f5.bigip_monitor_snmp_dca import Parameters
|
from ansible.modules.network.f5.bigip_monitor_snmp_dca import ModuleManager
|
||||||
from ansible.modules.network.f5.bigip_monitor_snmp_dca import ModuleManager
|
from ansible.modules.network.f5.bigip_monitor_snmp_dca import ArgumentSpec
|
||||||
from ansible.modules.network.f5.bigip_monitor_snmp_dca import ArgumentSpec
|
|
||||||
|
|
||||||
# Ansible 2.8 imports
|
# Ansible 2.8 imports
|
||||||
from units.compat import unittest
|
from units.compat import unittest
|
||||||
from units.compat.mock import Mock
|
from units.compat.mock import Mock
|
||||||
from units.compat.mock import patch
|
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_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||||
fixture_data = {}
|
fixture_data = {}
|
||||||
|
|
|
@ -31,21 +31,19 @@ try:
|
||||||
|
|
||||||
from test.units.modules.utils import set_module_args
|
from test.units.modules.utils import set_module_args
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
from ansible.modules.network.f5.bigip_monitor_tcp import Parameters
|
||||||
from ansible.modules.network.f5.bigip_monitor_tcp import Parameters
|
from ansible.modules.network.f5.bigip_monitor_tcp import ModuleManager
|
||||||
from ansible.modules.network.f5.bigip_monitor_tcp import ModuleManager
|
from ansible.modules.network.f5.bigip_monitor_tcp import ArgumentSpec
|
||||||
from ansible.modules.network.f5.bigip_monitor_tcp import ArgumentSpec
|
|
||||||
|
|
||||||
from ansible.module_utils.network.f5.common import F5ModuleError
|
from ansible.module_utils.network.f5.common import F5ModuleError
|
||||||
|
|
||||||
# Ansible 2.8 imports
|
# Ansible 2.8 imports
|
||||||
from units.compat import unittest
|
from units.compat import unittest
|
||||||
from units.compat.mock import Mock
|
from units.compat.mock import Mock
|
||||||
from units.compat.mock import patch
|
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_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||||
fixture_data = {}
|
fixture_data = {}
|
||||||
|
|
|
@ -31,21 +31,19 @@ try:
|
||||||
|
|
||||||
from test.units.modules.utils import set_module_args
|
from test.units.modules.utils import set_module_args
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
from ansible.modules.network.f5.bigip_monitor_tcp_echo import Parameters
|
||||||
from ansible.modules.network.f5.bigip_monitor_tcp_echo import Parameters
|
from ansible.modules.network.f5.bigip_monitor_tcp_echo import ModuleManager
|
||||||
from ansible.modules.network.f5.bigip_monitor_tcp_echo import ModuleManager
|
from ansible.modules.network.f5.bigip_monitor_tcp_echo import ArgumentSpec
|
||||||
from ansible.modules.network.f5.bigip_monitor_tcp_echo import ArgumentSpec
|
|
||||||
|
|
||||||
from ansible.module_utils.network.f5.common import F5ModuleError
|
from ansible.module_utils.network.f5.common import F5ModuleError
|
||||||
|
|
||||||
# Ansible 2.8 imports
|
# Ansible 2.8 imports
|
||||||
from units.compat import unittest
|
from units.compat import unittest
|
||||||
from units.compat.mock import Mock
|
from units.compat.mock import Mock
|
||||||
from units.compat.mock import patch
|
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_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||||
fixture_data = {}
|
fixture_data = {}
|
||||||
|
|
|
@ -31,21 +31,19 @@ try:
|
||||||
|
|
||||||
from test.units.modules.utils import set_module_args
|
from test.units.modules.utils import set_module_args
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
from ansible.modules.network.f5.bigip_monitor_tcp_half_open import Parameters
|
||||||
from ansible.modules.network.f5.bigip_monitor_tcp_half_open import Parameters
|
from ansible.modules.network.f5.bigip_monitor_tcp_half_open import ModuleManager
|
||||||
from ansible.modules.network.f5.bigip_monitor_tcp_half_open import ModuleManager
|
from ansible.modules.network.f5.bigip_monitor_tcp_half_open import ArgumentSpec
|
||||||
from ansible.modules.network.f5.bigip_monitor_tcp_half_open import ArgumentSpec
|
|
||||||
|
|
||||||
from ansible.module_utils.network.f5.common import F5ModuleError
|
from ansible.module_utils.network.f5.common import F5ModuleError
|
||||||
|
|
||||||
# Ansible 2.8 imports
|
# Ansible 2.8 imports
|
||||||
from units.compat import unittest
|
from units.compat import unittest
|
||||||
from units.compat.mock import Mock
|
from units.compat.mock import Mock
|
||||||
from units.compat.mock import patch
|
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_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||||
fixture_data = {}
|
fixture_data = {}
|
||||||
|
|
|
@ -31,21 +31,19 @@ try:
|
||||||
|
|
||||||
from test.units.modules.utils import set_module_args
|
from test.units.modules.utils import set_module_args
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
from ansible.modules.network.f5.bigip_monitor_udp import Parameters
|
||||||
from ansible.modules.network.f5.bigip_monitor_udp import Parameters
|
from ansible.modules.network.f5.bigip_monitor_udp import ModuleManager
|
||||||
from ansible.modules.network.f5.bigip_monitor_udp import ModuleManager
|
from ansible.modules.network.f5.bigip_monitor_udp import ArgumentSpec
|
||||||
from ansible.modules.network.f5.bigip_monitor_udp import ArgumentSpec
|
|
||||||
|
|
||||||
from ansible.module_utils.network.f5.common import F5ModuleError
|
from ansible.module_utils.network.f5.common import F5ModuleError
|
||||||
|
|
||||||
# Ansible 2.8 imports
|
# Ansible 2.8 imports
|
||||||
from units.compat import unittest
|
from units.compat import unittest
|
||||||
from units.compat.mock import Mock
|
from units.compat.mock import Mock
|
||||||
from units.compat.mock import patch
|
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_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||||
fixture_data = {}
|
fixture_data = {}
|
||||||
|
|
Loading…
Reference in a new issue