예제 #1
0
    def setUp(self):
        self.spec = ArgumentSpec()

        try:
            self.p1 = patch('library.modules.bigip_gtm_pool.module_provisioned')
            self.m1 = self.p1.start()
            self.m1.return_value = True
        except Exception:
            self.p1 = patch('ansible.modules.network.f5.bigip_gtm_pool.module_provisioned')
            self.m1 = self.p1.start()
            self.m1.return_value = True
예제 #2
0
    def setUp(self):
        self.spec = ArgumentSpec()

        try:
            self.p1 = patch('library.modules.bigip_gtm_pool.module_provisioned')
            self.m1 = self.p1.start()
            self.m1.return_value = True
        except Exception:
            self.p1 = patch('ansible_collections.misc.not_a_real_collection.plugins.modules.bigip_gtm_pool.module_provisioned')
            self.m1 = self.p1.start()
            self.m1.return_value = True
예제 #3
0
 def setUp(self):
     self.spec = ArgumentSpec()