diff options
author | 2016-09-09 01:03:26 +0800 | |
---|---|---|
committer | 2016-09-12 14:55:18 +0000 | |
commit | cdb61e542f9e8984831fb034cdd41b781469ae8d (patch) | |
tree | 05611f53ec8b4b7916469f93160ee2a3ecec1d1d /tests/functest_run.sh | |
parent | b16327d5e53a873d1b4bd473015dd201d167ae5e (diff) |
Replace test file from test_tosca_nfv_sample with vRNC
About parser test in funkiest, replace test case from
test_tosca_nfv_sample.yaml to vRNC.yaml, which include more VDUs, VLs
and CPs.
JIRA:PARSER-103
Change-Id: I7a1c5937f644f7269c0263e681b8778bf98a1406
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
(cherry picked from commit 945d0599fb5d120ca45e6489b95113f34d1b3517)
Diffstat (limited to 'tests/functest_run.sh')
-rwxr-xr-x | tests/functest_run.sh | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/tests/functest_run.sh b/tests/functest_run.sh index 2b45089..8bccef4 100755 --- a/tests/functest_run.sh +++ b/tests/functest_run.sh @@ -17,14 +17,15 @@ PARSER_CI_DEBUG=${CI_DEBUG:-false} debug="" } -PARSER_IMAGE_URL_FILE=cirros-0.3.0-x86_64-disk.img -PARSER_IMAGE_URL=https://launchpad.net/cirros/trunk/0.3.0/+download/${PARSER_IMAGE_URL_FILE} -PARSER_IMAGE_NAME=rhel-6.5-test-image +# PARSER_IMAGE_URL_FILE=cirros-0.3.0-x86_64-disk.img +PARSER_IMAGE_URL_FILE=cirros-0.3.2-x86_64-disk.img +# PARSER_IMAGE_URL=https://launchpad.net/cirros/trunk/0.3.0/+download/${PARSER_IMAGE_URL_FILE} +PARSER_IMAGE_URL=http://download.cirros-cloud.net/0.3.2/${PARSER_IMAGE_URL_FILE} +# PARSER_IMAGE_NAME=rhel-6.5-test-image +PARSER_IMAGE_NAME=cirros-0.3.2-x86_64-uec PARSER_IMAGE_FILE="${PARSER_IMAGE_NAME}.img" PARSER_IMAGE_FORMAT=qcow2 -PARSER_VM_FLAVOR=m1.tiny - PARSER_USER=parser PARSER_PASSWORD=parser PARSER_EMAIL='shang.xiaodong@zte.com.cn' @@ -36,8 +37,9 @@ PARSER_ROLE=admin PARSER_STACK_NAME=vRNC_Stack # VRNC_INPUT_TEMPLATE_FILE=../tosca2heat/tosca-parser/toscaparser/extensions/nfv/tests/data/vRNC/Definitions/vRNC.yaml -VRNC_INPUT_TEMPLATE_RAW_FILE=../tosca2heat/heat-translator/translator/tests/data/test_tosca_nfv_sample.yaml -VRNC_OUTPUT_TEMPLATE_FILE=./vRNC_Hot_Template.yaml +# VRNC_INPUT_TEMPLATE_RAW_FILE=../tosca2heat/heat-translator/translator/tests/data/test_tosca_nfv_sample.yaml +VRNC_INPUT_TEMPLATE_RAW_FILE=../tosca2heat/heat-translator/translator/tests/data/vRNC/Definitions/vRNC.yaml +VRNC_OUTPUT_TEMPLATE_FILE=../tosca2heat/heat-translator/translator/tests/data/vRNC/vRNC_Hot_Template.yaml VRNC_INPUT_TEMPLATE_FILE=${VRNC_INPUT_TEMPLATE_RAW_FILE%.*}_patch.yaml @@ -135,6 +137,14 @@ make_patch_for_provider_network() { } +make_patch_for_translated_file() { + + # Replace the signal_transport + echo " Patch compute:signal_transport..." + sed -i '1,$s/HEAT_SIGNAL/NO_SIGNAL/g' ${VRNC_OUTPUT_TEMPLATE_FILE} + +} + translator_and_deploy_vRNC() { @@ -161,13 +171,18 @@ translator_and_deploy_vRNC() { --output-file ${VRNC_OUTPUT_TEMPLATE_FILE} echo "" - # 5. deploy vRNC + # 5. Patch 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 \ -t ${VRNC_OUTPUT_TEMPLATE_FILE} ${PARSER_STACK_NAME} - # 6. Validate the deploy result. + # 7. 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." |