aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2016-09-21Merge "Run benchmark test in restful server post api"Yujun Zhang1-18/+37
2016-09-20Run benchmark test in restful server post apizhifeng.jiang1-18/+37
modification: Call ansible async in restful server post api Set the job state 'finished' when finish benchmark test Terminate the next benchmark in restful server delete api job result will be in next commit JIRA:QTIP-97 Change-Id: I252482dddd9b35ba33f992e8ea19037d8919fad6 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-09-15Bugfix:iperf benchmark run failed "privateip1 is undefined"zhifeng.jiang2-7/+6
modification: get privatedip1 var when role is '2-host' run on localhost once instead of twice Change-Id: I4155f2d0c45208c4a2a0e2844fdf87acb5c8575e Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-09-14Merge "Fix test cases yaml schema unit test problem,now host ip allow empty."zhifeng.jiang1-0/+1
2016-09-11ansible playbook bugfixwu.zhihui1-0/+2
According the qtip ci results, make these bugfixs. 1. skipping: no hosts matched This used to work in Ansible 1.9.x with 127.0.0.1;But does not work in Asible 2.x solved: add 127.0.0.1 as localhost in ./data/hosts 2. Using bare variables is deprecated. solved: update playbook 3. use git module 4. To save time, turning Off Facts on localhost. Since https://gerrit.opnfv.org/gerrit/#/c/20661/ is under codereview, for qtip ci job, I temporarily modify function write_to_file() in env_setup.py. Change-Id: I71a08ebf87cd8c8d851a3f8f760e29e8725f0e0f Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-09-10Fix test cases yaml schema unit test problem,now host ip allow empty.zhifeng.jiang1-0/+1
Change-Id: I71b9a76c8ec470cce2af3ae47ae1fe232d1e3a22 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-09-08Remove os environment in driver.py so that it can be called by restful serverzhifeng.jiang3-17/+23
modification: Change os environments to parameters in driver.py Pass the parameters in cli.py and arg_handler.py JIRA:QTIP-97 Change-Id: Id67acb7e0ac46fa9e0e32481e947055b6d37dd95 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-09-04Call ansible playbook by ansible api instead of os.systemzhifeng.jiang1-9/+6
JIRA:QTIP-99 Change-Id: Ife53a48d4af1fd3c60efc0673611321b3bc487a7 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-08-24Merge "Add some state change functions in db.py."Yujun Zhang1-3/+3
2016-08-24Merge "Add ansible_api so that python call ansible playbook by api."Yujun Zhang3-0/+25
2016-08-23Add some state change functions in db.py.zhifeng.jiang1-3/+3
modification: Add some functions in db.py Unit test will be added after functions called by restful server. Rename 'deadline' to 'max-minutes' JIRA:QTIP-99 Change-Id: I74ed93df3f2dd91fa154fa0fcb52605983ee2719 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-08-21Code refactoring cli.py so that it can be reused by restful server.zhifeng.jiang2-0/+49
modification: Move function in cli.py to args_handler.py Add unit test for args_handler.py Add unit test for cli.py Delete print in driver.py to pass unit test JIRA:QTIP-99 Change-Id: Ib670d7dff494f3e04cdbe1de5c247d382b1052c1 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-08-21Add ansible_api so that python call ansible playbook by api.zhifeng.jiang3-0/+25
modification: Add ansible_api so that we can get ansible running results easily. Add UT for ansible_api.py JIRA:QTIP-99 Change-Id: I6e7b0b97e4d9ef184978833c61c17e944c1eb20c Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-08-21Merge "Code refactoring driver so that it can call ansible playbook by api."Yujun Zhang1-31/+44
2016-08-19Merge "Fetch all compute ips via installer Fuel."Yujun Zhang1-0/+49
2016-08-18Fetch all compute ips via installer Fuel.wu.zhihui1-0/+49
1. Fetch all compute ips via installer Fuel. 2. check the machines' ip. if unassigned, assign one of compute's ip to it. if assigned by test case yaml, check the validation. JIRA: QTIP-98 Change-Id: I5517916c594a14055087134d20c1fe4320b6d707 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2016-08-18Fix unit test 'test_cli_error' always 'pass' problem.zhifeng.jiang1-2/+2
Change-Id: Iabb4ca83f4f4167471b57411f78520d284a38b3c Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-08-18Code refactoring driver so that it can call ansible playbook by api.zhifeng.jiang1-31/+44
JIRA:QTIP-99 Change-Id: Id182e586955bd5bc34cef787e71e1b6375c36dc9 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-08-14Merge "Add restful server API in QTIP which can be called by Yardstick."Yujun Zhang1-0/+78
2016-08-13Add restful server API in QTIP which can be called by Yardstick.zhifeng.jiang1-0/+78
modification: Add restful server API. Include needed packages in requirement file. Add unit tests for restful server api. JIRA:QTIP-97 Change-Id: I5306d5dd76ee818fef46d0e7b7392f2df2982552 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-07-28Solving the facing problems when enable unit testzhifeng.jiang1-1/+13
modification: Delete and let git ignore the files which are generated by Qtip running time every time. Add the one more UT for the code "Use local QTIP CentOS.qcow2 img file" Change-Id: Ida891c421306274241d1c4581dd5e274e3bdb0fe Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-07-13Merge "Add some UT test cases and fix pep8 errors for create_zone"Yujun Zhang1-0/+89
2016-07-12Add some UT test cases and fix pep8 errors for spawn_vmzhifeng.jiang1-0/+71
JIRA:QTIP-89 Change-Id: I2555a0a7a8ffaf6d19cfad88770cd8e378d154b2 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-07-12Merge "Add some UT test cases and fix pep8 errors for driver"Yujun Zhang1-0/+65
2016-07-10Add some UT test cases and fix pep8 errors for create_zonezhifeng.jiang1-0/+89
JIRA:QTIP-89 Change-Id: Ic5d88a7492f89dbffbed62ce15e3a4e04b4ef2cc Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-07-10Add some UT test cases and fix pep8 errors for driverzhifeng.jiang1-0/+65
JIRA:QTIP-89 Change-Id: I672ebaf733ec967307963a18f32ca0aa4afc672d Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-07-08Add some UT test cases and fix pep8 errors for fetchimgzhifeng.jiang1-0/+22
JIRA:QTIP-89 Change-Id: I623cd6e48d90996b0199f9b31f86c8844b4d5ceb Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-07-08Merge "Schema checking for yaml file in test_cases."Yujun Zhang3-0/+171
2016-07-06Schema checking for yaml file in test_cases.zhifeng.jiang3-0/+171
JIRA: QTIP-25 Change-Id: Ibc3d9d6f5f0606da6a876eae5d4b1c3edefb5b47 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-07-05Add some UT test cases and fix pep8 errors for cli and env_setup.zhifeng.jiang8-0/+273
JIRA:QTIP-89 Change-Id: I4a46898071001f679f1a032a560d605dffc8eb9f Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>