Forum Discussion

wayney_128269's avatar
wayney_128269
Icon for Nimbostratus rankNimbostratus
Apr 02, 2008

unit 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
  • Don_MacVittie_1's avatar
    Don_MacVittie_1
    Historic F5 Account
    Hey 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.
  • 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_12's avatar
    Colin_Walker_12
    Historic F5 Account
    That 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