The client pushes traffic to the server for a duration specified by the user in the configuration file for Iperf3.
-These files can be found in the "test_cases/{POD}/network/" directory.
+These files can be found in the "test_plan/{POD}/network/" directory.
The bandwidth is limited by the physical link layer speed connecting the two compute nodes.
The result file includes the b/s bandwidth and the CPU usage for both the client and server.
The QTIP directory has been sectioned off into multiple folders to facilitate
segmenting information into relevant categories. The folders that concern
- the end user are `test_cases/` and `benchmarks/suite/`.
+ the end user are `test_plan/` and `benchmarks/suite/`.
-**test_cases/:**
+**test_plan/:**
This folder is used to store all the config files which are used to setup the
environment prior to a test. This folder is further divided into opnfv pods
The structure of the directory for the user appears as follows
::
- test_cases/default/compute
- test_cases/default/network
- test_cases/default/storage
+ test_plan/default/compute
+ test_plan/default/network
+ test_plan/default/storage
The benchmarks that are part of the QTIP framework are listed under these
folders. An example of the compute folder is shown below.
------------------------------
In order to start QTIP on the default lab please use the following commands (asssuming your installer
-is 'fuel' or 'compass', you use the config files in the test_cases/default/ directory and listed the
+is 'fuel' or 'compass', you use the config files in the test_plan/default/ directory and listed the
intended suite in the benchmarks/suite/<RELEVANT-SUITE-FILE>):
First step is to export the necessary information to the environment and generate QTIP key pair.
if case_type == 'all' else benchmark_list[case_type]
-def get_files_in_test_case(lab, suite_name, case_type='all'):
- test_case_all = os.listdir('./test_cases/{0}/{1}'.format(lab, suite_name))
+def get_files_in_test_plan(lab, suite_name, case_type='all'):
+ test_case_all = os.listdir('./test_plan/{0}/{1}'.format(lab, suite_name))
return test_case_all if case_type == 'all' else \
filter(lambda x: case_type in x, test_case_all)
def get_benchmark_path(lab, suit, benchmark):
- return './test_cases/{0}/{1}/{2}'.format(lab, suit, benchmark)
+ return './test_plan/{0}/{1}/{2}'.format(lab, suit, benchmark)
def check_suite(suite_name):
def check_lab_name(lab_name):
- return True if os.path.isdir('test_cases/' + lab_name) else False
+ return True if os.path.isdir('test_plan/' + lab_name) else False
def check_benchmark_name(lab, file, benchmark):
- return os.path.isfile('test_cases/' + lab + '/' + file + '/' + benchmark)
+ return os.path.isfile('test_plan/' + lab + '/' + file + '/' + benchmark)
def _get_f_name(test_case_path):
parser = argparse.ArgumentParser()
parser.add_argument('-l ', '--lab', required=True, help='Name of Lab '
'on which being tested, These can'
- 'be found in the test_cases/ directory. Please '
+ 'be found in the test_plan/ directory. Please '
'ensure that you have edited the respective files '
'before using them. For testing other than through Jenkins'
' The user should list default after -l . all the fields in'
sys.exit(1)
if not args_handler.check_lab_name(args.lab):
- logger.error("You have specified a lab that is not present under test_cases/.\
+ logger.error("You have specified a lab that is not present under test_plan/.\
Please enter correct file. If unsure how to proceed, use -l default.")
sys.exit(1)
suite = args.file
benchmarks = args_handler.get_files_in_suite(suite)
- test_cases = args_handler.get_files_in_test_case(args.lab, suite)
+ test_cases = args_handler.get_files_in_test_plan(args.lab, suite)
benchmarks_list = filter(lambda x: x in test_cases, benchmarks)
if args.benchmark:
class TestClass:
@pytest.mark.parametrize("test_input, expected", [
- (['fuel', '/home', './test_cases/default/network/iperf_bm.yaml'],
+ (['fuel', '/home', './test_plan/default/network/iperf_bm.yaml'],
['fuel', '/home', "iperf",
[('1-server', ['10.20.0.23']), ('2-host', ['10.20.0.24'])],
"iperf_bm.yaml",
(['-l',
'zte',
'-f',
- 'compute'], "You have specified a lab that is not present in test_cases"),
+ 'compute'], "You have specified a lab that is not present in test_plan"),
(['-l',
'default',
'-f',
(['-l',
'default',
'-f',
- 'storage'], [('fuel', '/home', './test_cases/default/storage/fio_bm.yaml'),
- ('fuel', '/home', './test_cases/default/storage/fio_vm.yaml')])
+ 'storage'], [('fuel', '/home', './test_plan/default/storage/fio_bm.yaml'),
+ ('fuel', '/home', './test_plan/default/storage/fio_vm.yaml')])
])
@mock.patch('func.cli.args_handler.prepare_and_run_benchmark')
def test_cli_successful(self, mock_args_handler, test_input, expected):