From ae543033a8c4af9c291261fec55859c2f1191a1a Mon Sep 17 00:00:00 2001 From: shangxdy Date: Tue, 13 Sep 2016 00:00:10 +0800 Subject: Add resources and outputs informantion in script Add debug information when run script in functest. Change-Id: I4e86d6fb4b2285d96c131163b8f72942eafa2563 Signed-off-by: shangxdy --- tests/functest_run.sh | 36 +++++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) (limited to 'tests') diff --git a/tests/functest_run.sh b/tests/functest_run.sh index 8bccef4..c3ce601 100755 --- a/tests/functest_run.sh +++ b/tests/functest_run.sh @@ -116,21 +116,21 @@ make_patch_for_provider_network() { # copy temp file echo " Patch provider network for input file:" - echo " Raw yaml file: ${VRNC_INPUT_TEMPLATE_RAW_FILE}" - echo " Patched yaml file: ${VRNC_INPUT_TEMPLATE_FILE}" + echo " Raw yaml file: ${VRNC_INPUT_TEMPLATE_RAW_FILE}" + echo " Patched yaml file: ${VRNC_INPUT_TEMPLATE_FILE}" cp ${VRNC_INPUT_TEMPLATE_RAW_FILE} ${VRNC_INPUT_TEMPLATE_FILE} echo "" # Delete the provider:network_type - echo " Patch provider:network_type..." + echo " Patching provider:network_type..." sed -i '/network_type:/d' ${VRNC_INPUT_TEMPLATE_FILE} # Delete the provider:segmentation_id - echo " Patch provider:segmentation_id..." + echo " Patching provider:segmentation_id..." sed -i '/segmentation_id:/d' ${VRNC_INPUT_TEMPLATE_FILE} # Delete the provider:physical_network - echo " Patch provider:physical_network..." + echo " Patching provider:physical_network..." sed -i '/physical_network:/d' ${VRNC_INPUT_TEMPLATE_FILE} echo "" @@ -140,7 +140,9 @@ make_patch_for_provider_network() { make_patch_for_translated_file() { # Replace the signal_transport - echo " Patch compute:signal_transport..." + echo " Patch yaml file: ${VRNC_OUTPUT_TEMPLATE_FILE}" + echo "" + echo " Patching compute:signal_transport:" sed -i '1,$s/HEAT_SIGNAL/NO_SIGNAL/g' ${VRNC_OUTPUT_TEMPLATE_FILE} } @@ -172,17 +174,29 @@ translator_and_deploy_vRNC() { echo "" # 5. Patch translated file - echo " Make patch for translated file..." + echo " Make patch for translated file:" make_patch_for_translated_file echo "" # 6. deploy vRNC echo " Deploy stack..." [[ "${PARSER_CI_DEBUG}" == "true" ]] && debug="--debug" || debug="" - openstack ${debug} stack create --timeout 30 --wait --enable-rollback \ + openstack ${debug} stack create --timeout 15 --wait --enable-rollback \ -t ${VRNC_OUTPUT_TEMPLATE_FILE} ${PARSER_STACK_NAME} - # 7. Validate the deploy result. + # 7. basic information. + echo " The basic information of deployment..." + openstack ${debug} stack show ${PARSER_STACK_NAME} + + # 8. deployed resources. + echo " The resources of deployment..." + openstack ${debug} stack resource list ${PARSER_STACK_NAME} + + # 9. deployed outputs. + echo " The outputs of deployment..." + openstack ${debug} stack output list ${PARSER_STACK_NAME} + + # 10. Validate the deploy result. echo " Checking the result of deployment..." openstack ${debug} stack show ${PARSER_STACK_NAME} | grep -qow "CREATE_COMPLETE" && { echo " Check the result of deployment successfully." @@ -262,7 +276,7 @@ reset_parser_test() { } echo "" - echo "======================= Parser functest end ==========================" + echo "======================={ Parser functest end }==========================" echo "" echo "" @@ -270,7 +284,7 @@ reset_parser_test() { echo "" echo "" -echo "======================= Parser functest begin ==========================" +echo "======================={ Parser functest begin }==========================" echo "" trap reset_parser_test EXIT -- cgit 1.2.3-korg