Extra changes on Flavor Config
[snaps.git] / docs / how-to-use / Testing.rst
1 Running Unit Test Suite
2 =======================
3
4 Execute the tests
5 -----------------
6
7 ::
8
9     cd <path to repo>
10     python snaps/test_runner.py -e <path to RC file> -n <external network name>
11
12 | \* All Supported Arguments
13 | \* -e [required - The path to the OpenStack RC file]
14 | \* -n [required - The name of the external network to use for routers
15   and floating IPs]
16 | \* -p [optional - the proxy settings if required. Format :
17 | \* -s [optional - the proxy command used for SSH connections]
18 | \* -l [(default INFO) The log level]
19 | \* -u [optional - When set, the unit tests will be executed]
20 | \* -st [optional - When set, the staging tests will be executed]
21 | \* -c [optional - When set, the connection tests will be executed]
22 | \* -a [optional - When set, the API tests will be executed]
23 | \* -i [optional - When set, the integration tests will be executed]
24 | \* -k [optional - When set, tests project and user creation. Use only
25   if host running tests has access to the cloud's admin network]
26 | \* -f [optional - When set, will execute tests requiring Floating
27   IPS]
28 | \* -im [optional - File containing image endpoints to override
29 | \* -fm [optional - JSON string containing a dict(): - for flavor metadata default='{\"hw:mem_page_size\": \"any\"}'
30                                                       - for values of basic elements (e.g. ram, vcpu, disk, etc) could be added.
31                                                         As result the hard coded values of those elements will be overwritten by the new ones]
32 | \* -ci [optional - runs the tests required by SNAPS-OO CI]
33 | \* -r [optional with default value of '1' - The number of test iterations to execute]