summaryrefslogtreecommitdiff
path: root/test/units/modules/network/f5
diff options
context:
space:
mode:
authorWojciech Wypior <w.wypior@f5.com>2019-03-30 22:52:55 +0100
committerTim Rupp <caphrim007@gmail.com>2019-03-30 14:52:55 -0700
commit6a27e308dd6f40accb5dd0c1d64aea79d4fe391a (patch)
tree9d3ce166da58f7eed8a27590998915c4c4ba7e9e /test/units/modules/network/f5
parentb36c0832ae8d0fd75f686387ea9ebaeb7871e9fc (diff)
downloadansible-6a27e308dd6f40accb5dd0c1d64aea79d4fe391a.tar.gz
BIGIP: deprecates TMOS v11.x support for GTM modules (#54543)
* deprecates TMOS v11 support for GTM modules * correct version * correct version
Diffstat (limited to 'test/units/modules/network/f5')
-rw-r--r--test/units/modules/network/f5/test_bigip_gtm_pool.py6
-rw-r--r--test/units/modules/network/f5/test_bigip_gtm_wide_ip.py7
2 files changed, 13 insertions, 0 deletions
diff --git a/test/units/modules/network/f5/test_bigip_gtm_pool.py b/test/units/modules/network/f5/test_bigip_gtm_pool.py
index bd2a111ca9..4f01b0ee9f 100644
--- a/test/units/modules/network/f5/test_bigip_gtm_pool.py
+++ b/test/units/modules/network/f5/test_bigip_gtm_pool.py
@@ -162,6 +162,7 @@ class TestUntypedManager(unittest.TestCase):
tm = UntypedManager(module=module)
tm.exists = Mock(side_effect=[False, True])
tm.create_on_device = Mock(return_value=True)
+ tm.version_is_less_than_12 = Mock(return_value=True)
# Override methods to force specific logic in the module to happen
mm = ModuleManager(module=module)
@@ -200,6 +201,7 @@ class TestUntypedManager(unittest.TestCase):
tm = UntypedManager(module=module)
tm.exists = Mock(side_effect=[True, True])
tm.update_on_device = Mock(return_value=True)
+ tm.version_is_less_than_12 = Mock(return_value=True)
tm.read_current_from_device = Mock(return_value=current)
# Override methods to force specific logic in the module to happen
@@ -236,6 +238,7 @@ class TestUntypedManager(unittest.TestCase):
# Override methods in the specific type of manager
tm = UntypedManager(module=module)
tm.exists = Mock(side_effect=[True, False])
+ tm.version_is_less_than_12 = Mock(return_value=True)
tm.remove_from_device = Mock(return_value=True)
# Override methods to force specific logic in the module to happen
@@ -289,6 +292,7 @@ class TestTypedManager(unittest.TestCase):
tm = TypedManager(module=module)
tm.exists = Mock(side_effect=[False, True])
tm.create_on_device = Mock(return_value=True)
+ tm.version_is_less_than_12 = Mock(return_value=False)
# Override methods to force specific logic in the module to happen
mm = ModuleManager(module=module)
@@ -328,6 +332,7 @@ class TestTypedManager(unittest.TestCase):
tm = TypedManager(module=module)
tm.exists = Mock(side_effect=[True, True])
tm.update_on_device = Mock(return_value=True)
+ tm.version_is_less_than_12 = Mock(return_value=False)
tm.read_current_from_device = Mock(return_value=current)
# Override methods to force specific logic in the module to happen
@@ -365,6 +370,7 @@ class TestTypedManager(unittest.TestCase):
# Override methods in the specific type of manager
tm = TypedManager(module=module)
tm.exists = Mock(side_effect=[True, False])
+ tm.version_is_less_than_12 = Mock(return_value=False)
tm.remove_from_device = Mock(return_value=True)
# Override methods to force specific logic in the module to happen
diff --git a/test/units/modules/network/f5/test_bigip_gtm_wide_ip.py b/test/units/modules/network/f5/test_bigip_gtm_wide_ip.py
index 774202f659..4f872f91cc 100644
--- a/test/units/modules/network/f5/test_bigip_gtm_wide_ip.py
+++ b/test/units/modules/network/f5/test_bigip_gtm_wide_ip.py
@@ -159,6 +159,7 @@ class TestUntypedManager(unittest.TestCase):
tm = UntypedManager(module=module, params=module.params)
tm.exists = Mock(return_value=False)
tm.create_on_device = Mock(return_value=True)
+ tm.version_is_less_than_12 = Mock(return_value=True)
# Override methods to force specific logic in the module to happen
mm = ModuleManager(module=module)
@@ -210,6 +211,7 @@ class TestTypedManager(unittest.TestCase):
tm = TypedManager(module=module, params=module.params)
tm.exists = Mock(return_value=False)
tm.create_on_device = Mock(return_value=True)
+ tm.version_is_less_than_12 = Mock(return_value=False)
# Override methods to force specific logic in the module to happen
mm = ModuleManager(module=module)
@@ -244,6 +246,7 @@ class TestTypedManager(unittest.TestCase):
tm = TypedManager(module=module, params=module.params)
tm.exists = Mock(return_value=False)
tm.create_on_device = Mock(return_value=True)
+ tm.version_is_less_than_12 = Mock(return_value=False)
# Override methods to force specific logic in the module to happen
mm = ModuleManager(module=module)
@@ -278,6 +281,7 @@ class TestTypedManager(unittest.TestCase):
tm = TypedManager(module=module, params=module.params)
tm.exists = Mock(return_value=False)
tm.create_on_device = Mock(return_value=True)
+ tm.version_is_less_than_12 = Mock(return_value=False)
# Override methods to force specific logic in the module to happen
mm = ModuleManager(module=module)
@@ -318,6 +322,7 @@ class TestTypedManager(unittest.TestCase):
tm = TypedManager(module=module, params=module.params)
tm.exists = Mock(return_value=False)
tm.create_on_device = Mock(return_value=True)
+ tm.version_is_less_than_12 = Mock(return_value=False)
# Override methods to force specific logic in the module to happen
mm = ModuleManager(module=module)
@@ -359,6 +364,7 @@ class TestTypedManager(unittest.TestCase):
tm = TypedManager(module=module, params=module.params)
tm.exists = Mock(return_value=True)
tm.read_current_from_device = Mock(return_value=current)
+ tm.version_is_less_than_12 = Mock(return_value=False)
# Override methods to force specific logic in the module to happen
mm = ModuleManager(module=module)
@@ -402,6 +408,7 @@ class TestTypedManager(unittest.TestCase):
tm.exists = Mock(return_value=True)
tm.read_current_from_device = Mock(return_value=current)
tm.update_on_device = Mock(return_value=True)
+ tm.version_is_less_than_12 = Mock(return_value=False)
# Override methods to force specific logic in the module to happen
mm = ModuleManager(module=module)