|
|
|
|
@ -17,12 +17,12 @@ if sys.version_info < (2, 7):
|
|
|
|
|
from ansible.module_utils.basic import AnsibleModule
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
from library.modules.bigip_asm_policy import V1Parameters
|
|
|
|
|
from library.modules.bigip_asm_policy import V2Parameters
|
|
|
|
|
from library.modules.bigip_asm_policy import ModuleManager
|
|
|
|
|
from library.modules.bigip_asm_policy import V1Manager
|
|
|
|
|
from library.modules.bigip_asm_policy import V2Manager
|
|
|
|
|
from library.modules.bigip_asm_policy import ArgumentSpec
|
|
|
|
|
from library.modules._bigip_asm_policy import V1Parameters
|
|
|
|
|
from library.modules._bigip_asm_policy import V2Parameters
|
|
|
|
|
from library.modules._bigip_asm_policy import ModuleManager
|
|
|
|
|
from library.modules._bigip_asm_policy import V1Manager
|
|
|
|
|
from library.modules._bigip_asm_policy import V2Manager
|
|
|
|
|
from library.modules._bigip_asm_policy import ArgumentSpec
|
|
|
|
|
|
|
|
|
|
from library.module_utils.network.f5.common import F5ModuleError
|
|
|
|
|
|
|
|
|
|
@ -33,12 +33,12 @@ try:
|
|
|
|
|
|
|
|
|
|
from test.units.modules.utils import set_module_args
|
|
|
|
|
except ImportError:
|
|
|
|
|
from ansible.modules.network.f5.bigip_asm_policy import V1Parameters
|
|
|
|
|
from ansible.modules.network.f5.bigip_asm_policy import V2Parameters
|
|
|
|
|
from ansible.modules.network.f5.bigip_asm_policy import ModuleManager
|
|
|
|
|
from ansible.modules.network.f5.bigip_asm_policy import V1Manager
|
|
|
|
|
from ansible.modules.network.f5.bigip_asm_policy import V2Manager
|
|
|
|
|
from ansible.modules.network.f5.bigip_asm_policy import ArgumentSpec
|
|
|
|
|
from ansible.modules.network.f5._bigip_asm_policy import V1Parameters
|
|
|
|
|
from ansible.modules.network.f5._bigip_asm_policy import V2Parameters
|
|
|
|
|
from ansible.modules.network.f5._bigip_asm_policy import ModuleManager
|
|
|
|
|
from ansible.modules.network.f5._bigip_asm_policy import V1Manager
|
|
|
|
|
from ansible.modules.network.f5._bigip_asm_policy import V2Manager
|
|
|
|
|
from ansible.modules.network.f5._bigip_asm_policy import ArgumentSpec
|
|
|
|
|
|
|
|
|
|
from ansible.module_utils.network.f5.common import F5ModuleError
|
|
|
|
|
|
|
|
|
|
@ -99,11 +99,11 @@ class TestManager(unittest.TestCase):
|
|
|
|
|
self.patcher1.start()
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
self.p1 = patch('library.modules.bigip_asm_policy.module_provisioned')
|
|
|
|
|
self.p1 = patch('library.modules._bigip_asm_policy.module_provisioned')
|
|
|
|
|
self.m1 = self.p1.start()
|
|
|
|
|
self.m1.return_value = True
|
|
|
|
|
except Exception:
|
|
|
|
|
self.p1 = patch('ansible.modules.network.f5.bigip_asm_policy.module_provisioned')
|
|
|
|
|
self.p1 = patch('ansible.modules.network.f5._bigip_asm_policy.module_provisioned')
|
|
|
|
|
self.m1 = self.p1.start()
|
|
|
|
|
self.m1.return_value = True
|
|
|
|
|
|
|
|
|
|
|