functest.opnfv_tests.openstack.tempest.tempest module¶
Tempest testcases implementation.
-
class
functest.opnfv_tests.openstack.tempest.tempest.TempestCommon(**kwargs)¶ Bases:
functest.core.singlevm.VmReady2TempestCommon testcases implementation class.
-
apply_tempest_blacklist()¶ Exclude blacklisted test cases.
-
static
backup_tempest_config(conf_file, res_dir)¶ Copy config file to tempest results directory
-
check_extensions()¶ Check the mandatory network extensions.
-
check_requirements()¶ Check the requirements of the test case.
It can be overriden on purpose.
-
check_services()¶ Check the mandatory services.
-
clean()¶ Cleanup all OpenStack objects. Should be called on completion.
-
static
clean_rally_conf(rally_conf='/etc/rally/rally.conf')¶ Clean Rally config
-
configure(**kwargs)¶ Create all openstack resources for tempest-based testcases and write tempest.conf.
-
filename_alt= '/home/opnfv/functest/images/cirros-0.4.0-x86_64-disk.img'¶
-
generate_test_list(**kwargs)¶ Generate test list based on the test mode.
-
static
get_verifier_result(verif_id)¶ Retrieve verification results.
-
is_successful()¶ The overall result of the test.
-
parse_verifier_result()¶ Parse and save test results.
-
static
read_file(filename)¶ Read file and return content as a stripped list.
-
run(**kwargs)¶ Boot the new VM
Here are the main actions: - publish the image - create the flavor
Returns: - TestCase.EX_OK - TestCase.EX_RUN_ERROR on error
-
run_verifier_tests(**kwargs)¶ Execute tempest test cases.
-
update_compute_section()¶ Update compute section in tempest.conf
-
update_default_role(rally_conf='/etc/rally/rally.conf')¶ Detect and update the default role if required
-
update_network_section()¶ Update network section in tempest.conf
-
update_rally_logs(rally_conf='/etc/rally/rally.conf')¶ Print rally logs in res dir
-
update_rally_regex(rally_conf='/etc/rally/rally.conf')¶ Set image name as tempest img_name_regex
-
update_scenario_section()¶ Update scenario section in tempest.conf
-
visibility= 'public'¶
-