mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-19 14:50:21 -07:00
bigip tests now skipped if missing lib
This commit is contained in:
parent
e86b00b917
commit
745f72916f
6 changed files with 54 additions and 25 deletions
|
@ -42,9 +42,14 @@ try:
|
|||
from library.bigip_pool import ModuleManager
|
||||
from library.bigip_pool import ArgumentSpec
|
||||
except ImportError:
|
||||
from ansible.modules.network.f5.bigip_pool import Parameters
|
||||
from ansible.modules.network.f5.bigip_pool import ModuleManager
|
||||
from ansible.modules.network.f5.bigip_pool import ArgumentSpec
|
||||
try:
|
||||
from ansible.modules.network.f5.bigip_pool import Parameters
|
||||
from ansible.modules.network.f5.bigip_pool import ModuleManager
|
||||
from ansible.modules.network.f5.bigip_pool import ArgumentSpec
|
||||
except ImportError:
|
||||
from nose.plugins.skip import SkipTest
|
||||
raise SkipTest("%s requires the python modules for f5/bigip" % __file__)
|
||||
|
||||
|
||||
fixture_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||
fixture_data = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue