functest.opnfv_tests.openstack.tempest.tempest module¶
Tempest testcases implementation.
-
class
functest.opnfv_tests.openstack.tempest.tempest.
TempestCommon
(**kwargs)¶ Bases:
functest.core.singlevm.VmReady2
TempestCommon testcases implementation class.
-
apply_tempest_blacklist
(black_list)¶ 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.
-
static
configure_tempest_update_params
(tempest_conf_file, image_id=None, flavor_id=None, compute_cnt=1, image_alt_id=None, flavor_alt_id=None, admin_role_name='admin', cidr='192.168.120.0/24', domain_id='default')¶ Add/update needed parameters into tempest.conf file
-
static
configure_verifier
(deployment_dir)¶ Execute rally verify configure-verifier, which generates tempest.conf
-
static
create_verifier
()¶ Create new verifier
-
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_deployment_dir
(verifier_id, deployment_id)¶ Returns Rally deployment directory for current verifier
-
static
get_verifier_id
()¶ Returns verifier id for current Tempest
-
static
get_verifier_repo_dir
(verifier_id)¶ Returns installed verifier repo directory for Tempest
-
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.
-
tempest_blacklist
= '/home/docs/checkouts/readthedocs.org/user_builds/functest-api/envs/stable-iruya/lib/python3.7/site-packages/functest/opnfv_tests/openstack/tempest/custom_tests/blacklist.yaml'¶
-
tempest_conf_yaml
= '/home/docs/checkouts/readthedocs.org/user_builds/functest-api/envs/stable-iruya/lib/python3.7/site-packages/functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf.yaml'¶
-
tempest_custom
= '/home/docs/checkouts/readthedocs.org/user_builds/functest-api/envs/stable-iruya/lib/python3.7/site-packages/functest/opnfv_tests/openstack/tempest/custom_tests/test_list.txt'¶
-
tempest_public_blacklist
= '/home/docs/checkouts/readthedocs.org/user_builds/functest-api/envs/stable-iruya/lib/python3.7/site-packages/functest/opnfv_tests/openstack/tempest/custom_tests/public_blacklist.yaml'¶
-
update_auth_section
()¶ Update auth section in tempest.conf
-
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_regex
(rally_conf='/etc/rally/rally.conf')¶ Set image name as tempest img_name_regex
-
update_scenario_section
()¶ Update scenario section in tempest.conf
-
static
update_tempest_conf_file
(conf_file, rconfig)¶ Update defined paramters into tempest config file
-
update_validation_section
()¶ Update validation section in tempest.conf
-
visibility
= 'public'¶
-
-
class
functest.opnfv_tests.openstack.tempest.tempest.
TempestHeat
(**kwargs)¶ Bases:
functest.opnfv_tests.openstack.tempest.tempest.TempestCommon
Tempest Heat testcase implementation class.
-
clean
()¶ Cleanup all OpenStack objects. Should be called on completion.
-
configure
(**kwargs)¶ Create all openstack resources for tempest-based testcases and write tempest.conf.
-
filename_alt
= '/home/opnfv/functest/images/Fedora-Cloud-Base-30-1.2.x86_64.qcow2'¶
-
flavor_alt_disk
= 4¶
-
flavor_alt_ram
= 512¶
-
flavor_alt_vcpus
= 1¶
-
-
class
functest.opnfv_tests.openstack.tempest.tempest.
TempestHorizon
(**kwargs)¶ Bases:
functest.opnfv_tests.openstack.tempest.tempest.TempestCommon
Tempest Horizon testcase implementation class.
-
configure
(**kwargs)¶ Create all openstack resources for tempest-based testcases and write tempest.conf.
-