Forum Discussion
wayney_128269
Nimbostratus
Apr 02, 2008unit tests
I want to create unit tests which call icontrol functions that run as part of a build process. Is there a way to mimic the functions of the BIGIP via some sort of exe\dll so that my unit tests do not have to be run against a live load balancer?
thanks
3 Replies
- Don_MacVittie_1Historic F5 AccountHey Wayney,
There is not such a thing at this time, and while there might be one day, I've never heard any mention of this type of thing in the works.
One thing you might do is run the tests and then (without calling save_config) reload the configuration - then you're modifying the load balancer but only for the length of the tests.
Another option is to create testing Virtuals, which is what I do on the BIG-IP I use for testing. It must be both test and production, so I have virtuals, pools, and nodes that are testing only and run all of my tests against them. That leaves me with only items that effect the entire BIG-IP having to be scheduled to test.
Don. - wayney_128269
Nimbostratus
The issue is that when you create unit tests for BVTs (Build Verification Tests) that run automatically on a daily basis, any network hiccup could cause the test to fail when connecting to live BIGIP. The optimal case is to have some kind of BIGIP emulator that can be loaded up when the unit tests are run. - Colin_Walker_12Historic F5 AccountThat does sound optimal, but as Don mentioned, it just isn't available right now. If it's something that would help you better leverage your systems, then I'd encourage you to mention that to your sales rep. If enough people mention it, it's easier for us to prioritize R&D to try and develop something that meets those needs.
Thanks!
Colin
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
