Forum Discussion
Testing f5 load balance api
Hi, I'm running tests for f5 load balancer. Using bigsuds.BIGIP(hostname=host, username=user, password=pwd) and calling LocalLB.get_member_v2 .
Running with python unitest it is all fine "python -m unittest discover" Running with nosetest it is failing "nosetests test_F5Api.py" same result with pycharm unitest vs nosetest
The error is: raise Connecti ('iControl call failed, possibly invalid ' Connecti : iControl call failed, possibly invalid credentials.
Any reason why I get these difference ?
Thx, Avihay
1 Reply
- Avihay_140840
Nimbostratus
Hi, I found the answer, The default log level is different, nosetest as default uses debug, and from some reason the debug message is getting stuck and time out exception throw. the error message was confusing. the workaround is adding to command-line --logging-level=INFO nosetests test_F5Api.py --logging-level=INFO
I do not have an answer why the log got stuck or how to solve this stuck.
Avihay
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com