Refactors main() function and module manager in multiple modules in line with recent changes (#53981)

Adds variable types to docs
Refactors unit tests to remove deprecated parameters
This commit is contained in:
Wojciech Wypior
2019-03-19 06:57:00 +01:00
committed by Tim Rupp
parent 739df1c348
commit 1a411e9c6b
40 changed files with 800 additions and 548 deletions

View File

@@ -81,9 +81,11 @@ class TestManager(unittest.TestCase):
def test_update_hostname(self, *args):
set_module_args(dict(
hostname='foo2.internal.com',
password='password',
server='localhost',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
# Configure the parameters that would be returned by querying the

View File

@@ -323,9 +323,11 @@ class TestManager(unittest.TestCase):
template='f5.http',
parameters=parameters,
state='present',
password='password',
server='localhost',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(
@@ -349,9 +351,11 @@ class TestManager(unittest.TestCase):
template='f5.http',
parameters=parameters,
state='present',
password='password',
server='localhost',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
# Configure the parameters that would be returned by querying the

View File

@@ -101,9 +101,11 @@ class TestManager(unittest.TestCase):
# Configure the arguments that would be sent to the Ansible module
set_module_args(dict(
content=load_fixture('basic-iapp.tmpl'),
password='password',
server='localhost',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(
@@ -124,9 +126,11 @@ class TestManager(unittest.TestCase):
# Configure the arguments that would be sent to the Ansible module
set_module_args(dict(
content=load_fixture('basic-iapp.tmpl'),
password='password',
server='localhost',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current1 = Parameters(params=load_fixture('load_sys_application_template_w_new_checksum.json'))
@@ -153,10 +157,12 @@ class TestManager(unittest.TestCase):
def test_delete_iapp_template(self, *args):
set_module_args(dict(
content=load_fixture('basic-iapp.tmpl'),
password='password',
server='localhost',
user='admin',
state='absent'
state='absent',
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(
@@ -176,10 +182,12 @@ class TestManager(unittest.TestCase):
def test_delete_iapp_template_idempotent(self, *args):
set_module_args(dict(
content=load_fixture('basic-iapp.tmpl'),
password='password',
server='localhost',
user='admin',
state='absent'
state='absent',
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(

View File

@@ -89,14 +89,18 @@ class TestUntypedManager(unittest.TestCase):
set_module_args(dict(
name='ike1',
version=['v1'],
password='password',
server='localhost',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(
argument_spec=self.spec.argument_spec,
supports_check_mode=self.spec.supports_check_mode
supports_check_mode=self.spec.supports_check_mode,
required_if=self.spec.required_if,
required_together=self.spec.required_together
)
# Override methods to force specific logic in the module to happen

View File

@@ -82,15 +82,20 @@ class TestManager(unittest.TestCase):
parents='router bgp 64664',
before='bfd slow-timer 2000',
match='exact',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = load_fixture('load_imish_output_1.json')
module = AnsibleModule(
argument_spec=self.spec.argument_spec,
supports_check_mode=self.spec.supports_check_mode
supports_check_mode=self.spec.supports_check_mode,
mutually_exclusive=self.spec.mutually_exclusive,
required_if=self.spec.required_if,
add_file_common_args=self.spec.add_file_common_args
)
# Override methods in the specific type of manager

View File

@@ -88,14 +88,17 @@ class TestUntypedManager(unittest.TestCase):
def test_create(self, *args):
set_module_args(dict(
name='ipsec1',
password='password',
server='localhost',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(
argument_spec=self.spec.argument_spec,
supports_check_mode=self.spec.supports_check_mode
supports_check_mode=self.spec.supports_check_mode,
required_if=self.spec.required_if
)
# Override methods to force specific logic in the module to happen

View File

@@ -140,9 +140,11 @@ class TestManager(unittest.TestCase):
module='ltm',
content='this is my content',
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(
@@ -171,9 +173,11 @@ class TestManager(unittest.TestCase):
module='gtm',
content='this is my content',
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(
@@ -202,9 +206,11 @@ class TestManager(unittest.TestCase):
module='gtm',
src='{0}/create_ltm_irule.tcl'.format(fixture_path),
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(
@@ -244,9 +250,11 @@ class TestManager(unittest.TestCase):
state='present',
src='/path/to/irules/foo.tcl',
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
with patch('ansible.module_utils.basic.AnsibleModule.fail_json', unsafe=True) as mo:

View File

@@ -80,9 +80,11 @@ class TestV1Parameters(unittest.TestCase):
forward_to='pool1',
syslog_format='rfc5424'
),
password='password',
server='localhost',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
)
p = V1ModuleParameters(params=args)
assert p.name == 'foo'
@@ -110,14 +112,17 @@ class TestV1Manager(unittest.TestCase):
forward_to='pool1',
),
state='present',
password='password',
server='localhost',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(
argument_spec=self.spec.argument_spec,
supports_check_mode=self.spec.supports_check_mode
supports_check_mode=self.spec.supports_check_mode,
mutually_exclusive=self.spec.mutually_exclusive
)
# Override methods in the specific type of manager

View File

@@ -73,9 +73,11 @@ class TestParameters(unittest.TestCase):
'dest1',
'dest2'
],
password='password',
server='localhost',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
)
p = ModuleParameters(params=args)
assert p.name == 'foo'
@@ -108,9 +110,11 @@ class TestManager(unittest.TestCase):
'dest2'
],
state='present',
password='password',
server='localhost',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(

View File

@@ -101,9 +101,11 @@ class TestManager(unittest.TestCase):
network='default',
description='my description',
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(

View File

@@ -107,9 +107,11 @@ class TestManager(unittest.TestCase):
interval=20,
timeout=30,
time_until_up=60,
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(
@@ -135,9 +137,11 @@ class TestManager(unittest.TestCase):
timeout=30,
time_until_up=60,
description='Important Description',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(

View File

@@ -106,9 +106,11 @@ class TestManager(unittest.TestCase):
interval=20,
timeout=30,
time_until_up=60,
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(
@@ -133,9 +135,11 @@ class TestManager(unittest.TestCase):
timeout=30,
time_until_up=60,
description='Important Description',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(

View File

@@ -164,9 +164,11 @@ class TestManager(unittest.TestCase):
timeout=30,
time_until_up=60,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(
@@ -196,9 +198,11 @@ class TestManager(unittest.TestCase):
timeout=16,
time_until_up=0,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_http.json'))
@@ -221,9 +225,11 @@ class TestManager(unittest.TestCase):
name='asdf',
port=800,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_http.json'))
@@ -248,9 +254,11 @@ class TestManager(unittest.TestCase):
name='foo',
interval=10,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_http.json'))
@@ -275,9 +283,11 @@ class TestManager(unittest.TestCase):
name='asdf',
interval=30,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_http.json'))
@@ -303,9 +313,11 @@ class TestManager(unittest.TestCase):
interval=10,
timeout=5,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_http.json'))
@@ -330,9 +342,11 @@ class TestManager(unittest.TestCase):
name='asdf',
send='this is another send string',
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_http.json'))
@@ -357,9 +371,11 @@ class TestManager(unittest.TestCase):
name='asdf',
receive='this is another receive string',
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_http.json'))
@@ -384,9 +400,11 @@ class TestManager(unittest.TestCase):
name='asdf',
timeout=300,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_http.json'))
@@ -411,9 +429,11 @@ class TestManager(unittest.TestCase):
name='asdf',
time_until_up=300,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_http.json'))

View File

@@ -164,9 +164,11 @@ class TestManager(unittest.TestCase):
timeout=30,
time_until_up=60,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(
@@ -196,9 +198,11 @@ class TestManager(unittest.TestCase):
timeout=16,
time_until_up=0,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_https.json'))
@@ -221,9 +225,11 @@ class TestManager(unittest.TestCase):
name='asdf',
port=800,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_https.json'))
@@ -248,9 +254,11 @@ class TestManager(unittest.TestCase):
name='foo',
interval=10,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_https.json'))
@@ -275,9 +283,11 @@ class TestManager(unittest.TestCase):
name='asdf',
interval=30,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_https.json'))
@@ -303,9 +313,11 @@ class TestManager(unittest.TestCase):
interval=10,
timeout=5,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_https.json'))
@@ -330,9 +342,11 @@ class TestManager(unittest.TestCase):
name='asdf',
send='this is another send string',
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_https.json'))
@@ -357,9 +371,11 @@ class TestManager(unittest.TestCase):
name='asdf',
receive='this is another receive string',
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_https.json'))
@@ -384,9 +400,11 @@ class TestManager(unittest.TestCase):
name='asdf',
timeout=300,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_https.json'))
@@ -411,9 +429,11 @@ class TestManager(unittest.TestCase):
name='asdf',
time_until_up=300,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_https.json'))

View File

@@ -92,9 +92,11 @@ class TestManager(unittest.TestCase):
interval=20,
timeout=30,
time_until_up=60,
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(

View File

@@ -155,9 +155,11 @@ class TestManager(unittest.TestCase):
interval=20,
timeout=30,
time_until_up=60,
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(

View File

@@ -166,9 +166,11 @@ class TestManager(unittest.TestCase):
timeout=30,
time_until_up=60,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(
@@ -198,9 +200,11 @@ class TestManager(unittest.TestCase):
timeout=30,
time_until_up=60,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp.json'))
@@ -223,9 +227,11 @@ class TestManager(unittest.TestCase):
name='foo',
port=800,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp.json'))
@@ -250,9 +256,11 @@ class TestManager(unittest.TestCase):
name='foo',
interval=10,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp.json'))
@@ -277,9 +285,11 @@ class TestManager(unittest.TestCase):
name='foo',
interval=30,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp.json'))
@@ -305,9 +315,11 @@ class TestManager(unittest.TestCase):
interval=10,
timeout=5,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp.json'))
@@ -332,9 +344,11 @@ class TestManager(unittest.TestCase):
name='foo',
send='this is another send string',
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp.json'))
@@ -359,9 +373,11 @@ class TestManager(unittest.TestCase):
name='foo',
receive='this is another receive string',
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp.json'))
@@ -386,9 +402,11 @@ class TestManager(unittest.TestCase):
name='foo',
timeout=300,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp.json'))
@@ -413,9 +431,11 @@ class TestManager(unittest.TestCase):
name='foo',
time_until_up=300,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp.json'))

View File

@@ -142,9 +142,11 @@ class TestManagerEcho(unittest.TestCase):
interval=20,
timeout=30,
time_until_up=60,
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(
@@ -168,9 +170,11 @@ class TestManagerEcho(unittest.TestCase):
interval=20,
timeout=30,
time_until_up=60,
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp_echo.json'))
@@ -192,9 +196,11 @@ class TestManagerEcho(unittest.TestCase):
set_module_args(dict(
name='foo',
interval=10,
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp_echo.json'))
@@ -218,9 +224,11 @@ class TestManagerEcho(unittest.TestCase):
set_module_args(dict(
name='foo',
interval=30,
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp_echo.json'))
@@ -245,9 +253,11 @@ class TestManagerEcho(unittest.TestCase):
name='foo',
interval=10,
timeout=5,
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp_echo.json'))
@@ -271,9 +281,11 @@ class TestManagerEcho(unittest.TestCase):
set_module_args(dict(
name='foo',
timeout=300,
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp_echo.json'))
@@ -296,9 +308,11 @@ class TestManagerEcho(unittest.TestCase):
set_module_args(dict(
name='foo',
time_until_up=300,
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp_echo.json'))

View File

@@ -148,9 +148,11 @@ class TestManager(unittest.TestCase):
interval=20,
timeout=30,
time_until_up=60,
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(
@@ -175,9 +177,11 @@ class TestManager(unittest.TestCase):
interval=20,
timeout=30,
time_until_up=60,
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp_half_open.json'))
@@ -199,9 +203,11 @@ class TestManager(unittest.TestCase):
set_module_args(dict(
name='foo',
interval=10,
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp_half_open.json'))
@@ -225,9 +231,11 @@ class TestManager(unittest.TestCase):
set_module_args(dict(
name='foo',
interval=30,
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp_half_open.json'))
@@ -252,9 +260,11 @@ class TestManager(unittest.TestCase):
name='foo',
interval=10,
timeout=5,
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp_half_open.json'))
@@ -278,9 +288,11 @@ class TestManager(unittest.TestCase):
set_module_args(dict(
name='foo',
timeout=300,
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp_half_open.json'))
@@ -303,9 +315,11 @@ class TestManager(unittest.TestCase):
set_module_args(dict(
name='foo',
time_until_up=300,
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_tcp_half_open.json'))

View File

@@ -164,9 +164,11 @@ class TestManager(unittest.TestCase):
timeout=30,
time_until_up=60,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
module = AnsibleModule(
@@ -196,9 +198,11 @@ class TestManager(unittest.TestCase):
timeout=16,
time_until_up=0,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_udp.json'))
@@ -221,9 +225,11 @@ class TestManager(unittest.TestCase):
name='asdf',
port=800,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_udp.json'))
@@ -248,9 +254,11 @@ class TestManager(unittest.TestCase):
name='foo',
interval=10,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_udp.json'))
@@ -275,9 +283,11 @@ class TestManager(unittest.TestCase):
name='asdf',
interval=30,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_udp.json'))
@@ -303,9 +313,11 @@ class TestManager(unittest.TestCase):
interval=10,
timeout=5,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_udp.json'))
@@ -330,9 +342,11 @@ class TestManager(unittest.TestCase):
name='asdf',
send='this is another send string',
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_udp.json'))
@@ -357,9 +371,11 @@ class TestManager(unittest.TestCase):
name='asdf',
receive='this is another receive string',
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_udp.json'))
@@ -384,9 +400,11 @@ class TestManager(unittest.TestCase):
name='asdf',
timeout=300,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_udp.json'))
@@ -411,9 +429,11 @@ class TestManager(unittest.TestCase):
name='asdf',
time_until_up=300,
partition='Common',
server='localhost',
password='password',
user='admin'
provider=dict(
server='localhost',
password='password',
user='admin'
)
))
current = Parameters(params=load_fixture('load_ltm_monitor_udp.json'))