diff options
Diffstat (limited to 'test/units/modules/network/f5/test_bigip_node.py')
-rw-r--r-- | test/units/modules/network/f5/test_bigip_node.py | 55 |
1 files changed, 35 insertions, 20 deletions
diff --git a/test/units/modules/network/f5/test_bigip_node.py b/test/units/modules/network/f5/test_bigip_node.py index ef47e736ea..90cb425376 100644 --- a/test/units/modules/network/f5/test_bigip_node.py +++ b/test/units/modules/network/f5/test_bigip_node.py @@ -98,14 +98,17 @@ class TestManager(unittest.TestCase): ], partition='Common', 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 ) mm = ModuleManager(module=module) @@ -126,16 +129,19 @@ class TestManager(unittest.TestCase): ], partition='Common', state='present', - password='password', - server='localhost', - user='admin' + provider=dict( + server='localhost', + password='password', + user='admin' + ) )) current = ApiParameters(params=load_fixture('load_ltm_node_3.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 ) mm = ModuleManager(module=module) @@ -156,14 +162,17 @@ class TestManager(unittest.TestCase): ], partition='Common', 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 ) mm = ModuleManager(module=module) @@ -185,15 +194,18 @@ class TestManager(unittest.TestCase): ], partition='Common', state='present', - password='password', - server='localhost', - user='admin' + provider=dict( + server='localhost', + password='password', + user='admin' + ) )) current = ApiParameters(params=load_fixture('load_ltm_node_2.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 ) mm = ModuleManager(module=module) @@ -217,15 +229,18 @@ class TestManager(unittest.TestCase): ], partition='Common', state='present', - password='password', - server='localhost', - user='admin' + provider=dict( + server='localhost', + password='password', + user='admin' + ) )) current = ApiParameters(params=load_fixture('load_ltm_node_2.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 ) mm = ModuleManager(module=module) |