Run heat api tests after upgrade
Change-Id: I0f5b7204c6dc3cf7bfe50acc5427590ee35d202f Closes-Bug: #1711282
This commit is contained in:
parent
9343400a6e
commit
5f5a96c669
|
@ -36,9 +36,11 @@ function _heat_set_user {
|
||||||
OS_PROJECT_DOMAIN_ID=$DEFAULT_DOMAIN
|
OS_PROJECT_DOMAIN_ID=$DEFAULT_DOMAIN
|
||||||
}
|
}
|
||||||
|
|
||||||
function create {
|
function _run_heat_api_tests {
|
||||||
# run heat_integrationtests instead of tempest smoke before create
|
local devstack_dir=$1
|
||||||
pushd $BASE_DEVSTACK_DIR/../tempest
|
|
||||||
|
pushd $devstack_dir/../tempest
|
||||||
|
sed -i -e '/group_regex/c\group_regex=heat_integrationtests\\.api\\.test_heat_api(?:\\.|_)([^_]+)' .testr.conf
|
||||||
conf_file=etc/tempest.conf
|
conf_file=etc/tempest.conf
|
||||||
iniset_multiline $conf_file service_available heat_plugin True
|
iniset_multiline $conf_file service_available heat_plugin True
|
||||||
iniset $conf_file heat_plugin username $OS_USERNAME
|
iniset $conf_file heat_plugin username $OS_USERNAME
|
||||||
|
@ -50,8 +52,14 @@ function create {
|
||||||
iniset $conf_file heat_plugin user_domain_name $OS_USER_DOMAIN_NAME
|
iniset $conf_file heat_plugin user_domain_name $OS_USER_DOMAIN_NAME
|
||||||
iniset $conf_file heat_plugin project_domain_name $OS_PROJECT_DOMAIN_NAME
|
iniset $conf_file heat_plugin project_domain_name $OS_PROJECT_DOMAIN_NAME
|
||||||
iniset $conf_file heat_plugin region $OS_REGION_NAME
|
iniset $conf_file heat_plugin region $OS_REGION_NAME
|
||||||
tempest run --regex '(test_create_update.CreateStackTest|test_create_update.UpdateStackTest)'
|
iniset $conf_file heat_plugin auth_version $OS_IDENTITY_API_VERSION
|
||||||
|
tempest run --regex heat_integrationtests.api
|
||||||
popd
|
popd
|
||||||
|
}
|
||||||
|
|
||||||
|
function create {
|
||||||
|
# run heat api tests instead of tempest smoke before create
|
||||||
|
_run_heat_api_tests $BASE_DEVSTACK_DIR
|
||||||
|
|
||||||
# creates a tenant for the server
|
# creates a tenant for the server
|
||||||
eval $(openstack project create -f shell -c id $HEAT_PROJECT)
|
eval $(openstack project create -f shell -c id $HEAT_PROJECT)
|
||||||
|
@ -84,6 +92,10 @@ function create {
|
||||||
|
|
||||||
function verify {
|
function verify {
|
||||||
_heat_set_user
|
_heat_set_user
|
||||||
|
local side="$1"
|
||||||
|
if [[ "$side" = "post-upgrade" ]]; then
|
||||||
|
_run_heat_api_tests $TARGET_DEVSTACK_DIR
|
||||||
|
fi
|
||||||
stack_name=$(resource_get heat stack_name)
|
stack_name=$(resource_get heat stack_name)
|
||||||
heat stack-show $stack_name
|
heat stack-show $stack_name
|
||||||
# TODO(sirushtim): Create more granular checks for Heat.
|
# TODO(sirushtim): Create more granular checks for Heat.
|
||||||
|
@ -115,7 +127,7 @@ case $1 in
|
||||||
verify_noapi
|
verify_noapi
|
||||||
;;
|
;;
|
||||||
"verify")
|
"verify")
|
||||||
verify
|
verify $2
|
||||||
;;
|
;;
|
||||||
"destroy")
|
"destroy")
|
||||||
destroy
|
destroy
|
||||||
|
|
Loading…
Reference in New Issue