Jump to: navigation, search

Difference between revisions of "StarlingX/NFV/VIM Automated Testing"

< StarlingX‎ | NFV
Line 19: Line 19:
  
 
Finally, look at the README file for instructions on running the tests. Please note:
 
Finally, look at the README file for instructions on running the tests. Please note:
 +
* The tests must be run as the root user.
 
* The tests using default-data use a guest without heartbeating enabled. Always run these (do not run the default-data-guest tests).
 
* The tests using default-data use a guest without heartbeating enabled. Always run these (do not run the default-data-guest tests).
 
* To disable specific tests, edit the data/tests/submission-tests.template file.
 
* To disable specific tests, edit the data/tests/submission-tests.template file.

Revision as of 11:34, 26 April 2019

The VIM has a set of automated testcases. To run these, the following minimum configuration is required:

  • 2 controller hosts
  • 2 compute hosts

The testing can be done in either Virtual Box or on real hardware. Note that when running on Virtual Box, some testcases may fail due to high CPU occupancy, depending on the host being used for Virtual Box.

The automated testcases assume that the system has been configured to the point where the compute hosts are unlocked and online. To do this, follow the instructions at StarlingX/Containers#Installing_and_Configuring_StarlingX_with_Containers and stop after creating the network segment ranges - do not do the Tenant Networking Setup.

Once your test system has been configured, copy the scenario tests from git to the active controller:

scp -r stx-nfv/nfv/nfv-tests/nfv_scenario_tests wrsroot@<controller-0 IP>:~

Then on the active controller, copy the scenario tests to the site-packages directory and enter that directory:

sudo cp -r /home/wrsroot/nfv_scenario_tests /usr/lib64/python2.7/site-packages
cd /usr/lib64/python2.7/site-packages/nfv_scenario_tests

Finally, look at the README file for instructions on running the tests. Please note:

  • The tests must be run as the root user.
  • The tests using default-data use a guest without heartbeating enabled. Always run these (do not run the default-data-guest tests).
  • To disable specific tests, edit the data/tests/submission-tests.template file.