summaryrefslogtreecommitdiffstats
path: root/tests/functest_run.sh
AgeCommit message (Collapse)AuthorFilesLines
2018-03-28[p/parser] Add aarch64 download optionCharalampos Kominos1-18/+42
Hardcoded values within the parser project create problems for opnfv-armband. In this patch we : 1) Add aarch64 image download conditional 2) Fix typos and comments JIRA: ARMBAND-369 JIRA: PARSER-175 Change-Id: I001087a8783fef66336e9bddc8d67342f6810a1f Signed-off-by: Charalampos Kominos <charalampos.kominos@enea.com>
2018-03-20Handle flavor before imageshangxdy1-6/+14
JIRA: PARSER-174 Change-Id: I891398e634846db617081b0baed9adf0662743b7 Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2018-02-02Add default flavorshangxdy1-3/+14
Add default falvor since there is not any flavor for some installers. JIRA: PARSER-172 Change-Id: I5fb0fdc4857a35840399c8cec8f051055a3a4eac Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2018-01-03Replace relative path with absolute path for functest scriptshangxdy1-4/+4
urrent parser script for functest is supposed that functest enterns the tests directory of parser firstly, and then call functest_parser.sh; it need to use absolute path instead of relative path as work directory. This modification is from functest patch: https://gerrit.opnfv.org/gerrit/#/c/49649/ JIRA: PARSER-171 Change-Id: I55b3ce882e6ddd48edf9f43eb8fae8334c5458aa Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2017-10-10Fix integration error when no role of heat_stack_ownershangxdy1-1/+1
If there is no role of heat_stack_owner in openstack, integration will be error, the patch will fix it. JIRA: PARSER-162 Change-Id: I74d4e70153a312c1a64c75e0ff956b7ab2219adf Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2017-10-09Fix test for apexshangxdy1-3/+3
Currently the test in apex is error, the patch will fix it. JIRA: PARSER-160 Change-Id: I0c290f7819468e1f400f1610fc87bceb72086b92 Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2017-09-27Fix user role list bugshangxdy1-1/+1
Currently the query misses a option of --user, the patch will fix it. JIRA: PARSER-158 Change-Id: I324d843b00271f7fb333b02c5372cb061d09ae70 Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2017-09-23Fix heat_stack_owner bugshangxdy1-4/+7
In env installed by apex, there is no role of heat_stack_owner, so it need to separate the condition in script. JIRA:PARSER-157 Change-Id: Ie40715268a1124b57f0bf36ddc566bbcdbed964b Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn> (cherry picked from commit 51a4cb9a4026037147da64b2353ec44002c7a7a7)
2017-09-14Fix functest_run script for role of heat_stack_ownershangxdy1-1/+3
When update openstack to ocata and run test in functest, the following error happends: ERROR: Missing required credential: roles ['heat_stack_owner'] It need to add role heat_stack_owner to parser user JIRA: PARSER-156 Change-Id: Ie0417c53c7dbd28efe8d9c4eb3fda23de8e1f841 Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2017-09-06Stop installing librairies during testsCédric Ollivier1-10/+1
Functest is in charge of installing libraries and it's forbidden by tests. No syslog service is provided in the container too. Change-Id: I4de16e091a4eea1b4fad1cb11fcff9abb62f82cd Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-07-26Merge install and test scriptshangxdy1-4/+23
Merge installation and test script because functest will not called the script of parser_install.sh, and only call the script of functest_run.sh. JIRA: PARSER-130 Change-Id: I452010f0d635dfbd9fb802743f3b858d66b72b32 Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2017-07-17Update cirros image to 0.3.5jose.lausuch1-2/+1
The image that is offered by Functest in the container is 0.3.5 This changes avoids downloading 0.3.2 in Functest. See [1] [1] https://gerrit.opnfv.org/gerrit/#/c/37393/6/functest/ci/download_images.sh Change-Id: I04ecc9bbed77fb39774460dfb466c32db49b8d98 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-07-13Make use of existing cirros image in the Functest containerjose.lausuch1-2/+6
Once [1] is merged, the image needed for this test case will be available in /home/opnfv/functest/images/ So, no need to download again. [1] https://gerrit.opnfv.org/gerrit/#/c/37393/ Change-Id: I219fc38cdf5e929ecdba1631d6315f6d076ae5d0 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-02-27Fix heat-translator after sync codeshangxdy1-0/+3
Fix heat-translator after sync code from upstream JIRA:PARSER-120 Change-Id: I033fa7c09fea716d7568613f72643f1e4bf8cd19 Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2016-09-19Delete not used property from vRNCshangxdy1-1/+1
Delete not used property from vRNC,such as activestatus and id. Change-Id: I14b4563663d220c241440dff0244ccbadff7912b Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2016-09-13Add resources and outputs informantion in scriptshangxdy1-11/+25
Add debug information when run script in functest. Change-Id: I4e86d6fb4b2285d96c131163b8f72942eafa2563 Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2016-09-09Replace test file from test_tosca_nfv_sample with vRNCshangxdy1-9/+24
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>
2016-08-25Make patch for provider network when run in functestshangxdy1-9/+52
When run parser in functest, we don't know the provider network about Openstack, if use vxlan or vlan or gre as default, it may be error. So it's necessary to path the provider network definition in yaml, and select it in runtime. JIRA:PARSER-99 Change-Id: I20ae6b213870b18cee094d43ce2ba958f53b111e Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2016-08-25Modify the test script for reducing the test timeshangxdy1-73/+65
Currently in functest, when deploy a template use parser, the timeout is a constant value of 3min, It can be set according to the actual running time. Additionally, its necessary to add more debug information. JIRA:PARSER-98 Change-Id: I11b667247644dbd64ecd6e8b0b1015240301279d Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2016-08-17Fix bug: authentication error when deploy vRNC with nfv tosca templateshangxdy1-32/+42
When deploy vRNC, the follow errors occured: openstack stack create -t ./vRNC_Hot_Template.yaml vRNC_Stack The request you have made requires authentication. (HTTP 401) (Request-ID: req-d0ddd5bd-5291-4b2f-ab92-95618881647a) The reason is that creating user is before creating project, and the order will be reverse. JIRA:PARSER-90 Change-Id: I890be71bfe7b2ec5f393f235c4c79c705340dfaa Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2016-08-11Merge "Add heat stack validation in integration with functest about vRNC"shangxdy1-3/+35
2016-08-11Add heat stack validation in integration with functest about vRNCshangxdy1-3/+35
As a tester; I want to known the functest result of vRNC deploy; So i add stack validation about vRNC. JIRA:PARSER-81 Change-Id: I97cb76d8f0a5dcd3ea104023149ed0a282d688c6 Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2016-08-10Add parser install script for functestshangxdy1-3/+7
As a tester; I want functest prepare the test env for parser; So it 's necessary to create parser_install.sh script for functest when building docker image. JIRA:PARSER-84 Change-Id: I3cc2cbba4d90b676ca362e54242f52afc3387e72 Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2016-08-09Check the user, role and project existence when reset test env.shangxdy1-34/+38
Currently when deploying stack is error in functest, it will call reset_parser_test automatically, but when the reset_parser_test itself is error, the reset of user/project/role will error again, so t's necessary to check the user, role and project existence when reset test env. JIRA:PARSER-83 Change-Id: If22ba162691ab3e4e7581e381524ac1a09dca2f5 Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2016-08-09Replace -f to --template-file in heat-translator and fix errorsshangxdy1-10/+21
1. Replace -f to --template-file in heat-translator; 2. Replace heat-translator with openstack template translate later; 3. Modify echo infomations. JIRA:PARSER-82 Change-Id: I545cb4a38bcdb107c1992b6e02810a46ac9ef201 Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2016-08-01Clear the test env when it is finishedshangxdy1-18/+41
As a tester; I want to return the initial state of a test case; So i will clear the env when a testcase is finished. Change-Id: Ibeaa24d7fc29bab03d87719239fce965ef4dea26 JIRA:PARSER-71 Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
2016-07-23Parser integration with functest.shangxdy1-0/+161
As a nfs tosca template designer; I want to known wether the parse and translation template is correct. So i use functest project to deploy the template and validate the output template file. Change-Id: Ic2d1dba14cf6bd9544d7a57c83256248630f2047 JIRA:PARSER-69 Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>