summaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2018-04-19Calculate hugepage num accoding to host's memoryAlex Yang2-1/+16
Change-Id: I49cfa3265af776e3cdea5de59096ff3257f75fb0 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2018-03-30Fix unit test for number of hugepagesAlex Yang1-6/+6
Change-Id: I2c7c2a9d38ed0789710ef6af371cb6663d7433cc Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2018-03-19Fix Licence header missing issuesZhijiang Hu4-0/+35
Change-Id: I186f94b6e7580974a32a3c3c48fdc891b8445937 Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2018-01-16support dpdk001845321-7/+21
Change-Id: I30970093bab418d679d3a3396d16aaff257272f4 Signed-off-by: 00184532 <lu.yao135@zte.com.cn>
2018-01-04Fix security risks about shell=TrueAlex Yang1-11/+8
Change-Id: I2db012e2b6a4325c42d5422901dea52a5ab7f664 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-12-25Now SDL cluster use kolla_internal_vip_address as VIPZhijiang Hu1-1/+1
Change-Id: Id22c86d4d2c7c18bba36dc9b50cd56bf75d94053 Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2017-11-18password auth module seems can not accept region_name as argumentZhijiang Hu1-5/+3
Please see the error info at the end of [1]. [1] https://build.opnfv.org/ci/job/daisy-deploy-daily-master/815/console Change-Id: I309fd858ea10a8821c95d66a27b7840a7f70151c Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2017-11-08modify iterface to interface001845321-1/+1
Change-Id: I659906163ec7bb5156786269349cc819ea051754 Signed-off-by: 00184532 <lu.yao135@zte.com.cn>
2017-10-30Missing parameters in tempestAlex Yang1-1/+2
In patch 45763, client parameters were missed in some functions. Change-Id: Id311e9ee6c0f7b24fe81832e2de9787e4f5693d7 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-10-26Merge "Skip recreate Daisy server VM if it exists in python"Zhijiang Hu3-26/+38
2017-10-26Merge "Add the unit test file test_tempest.py"Zhijiang Hu3-0/+489
2017-10-19Add the unit test file test_tempest.pyzhongjun3-0/+489
1.Add the unit test file test_tempest.py and related test data file daisyrc_admin, test stub file daisyclient_stub.py for tempest.py 2.modify the tempest.py to adapt the unit test. Change-Id: Ice92ed5a01a049a1a828f7f9e13979bda4b026b7 Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
2017-10-19Merge "remove unused null value of assigned network"Zhijiang Hu1-12/+12
2017-10-18Skip recreate Daisy server VM if it exists in pythonAlex Yang3-26/+38
Do not recreate daisy server if it exists. Reference to the bash code in patch [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/40337/ Change-Id: If472c59ea180e550f358af4a3a9c7b42e575eddc Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-10-13remove unused null value of assigned networkzhouya1-12/+12
change 'map' reserved keyword of python to regular variable Change-Id: I077eca363c095d0596fcd06bbad2e442050cb264 Signed-off-by: zhouya <zhou.ya@zte.com.cn>
2017-10-12Support securelab dir param in python scriptAlex Yang1-19/+21
Change-Id: I39d6643aac190820ae30b945f71d21a0ea2e73c9 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-10-12Merge "Mock sleep() to accelerate the unit test"Zhijiang Hu2-0/+8
2017-10-12Merge "Add unit test file test_libvirt_utils.py"Zhijiang Hu1-0/+157
2017-10-12Mock sleep() to accelerate the unit testAlex Yang2-0/+8
Change-Id: I664ba714ab4094754fa3d71587da8536555a02ce Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-10-11Add unit test file test_libvirt_utils.pyzhongjun1-0/+157
Add the unit test file test_libvirt_utils.py Change-Id: Id5c44bd3683183367439486fbea8dba03ccb8bb7 Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
2017-09-29Add more test function and case in test_utils.pyzhongjun9-61/+584
Add more test functions and test case in test_utils.py, test_daisy_server.py and test_environment.py. Change-Id: I7e4ea6993205e1d2f7cc8202820a3ada99613910 Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
2017-09-27Add more test cases in test_deploy.pyzhongjun6-18/+349
Add more test cases in test_deploy.py and test_environment.py Change-Id: I6adf3f51aa7a436387c2da8a8dc8c67f6e5a70db Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
2017-09-26Fix unittestAlex Yang2-2/+3
Change-Id: I82086b85da488e183589af7b4adbd6c80835c039 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-09-21Add some unittest files such as test_nova.pyzhongjun8-8/+931
1.Add test_glance.py, test_neutron.py and test_nova.py unittest files, and modify the neutron.py to adapt the unittest. 2.Add some unittest functions in test_post_execute.py, test_deploy.py, test_keystoneauth.py. 3.rename test_prepare_execure.py to test_prepare_execute.py. Change-Id: Ie0640d133e27c558648416a6a5cf044a00ffa67f Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
2017-09-20Merge "Some optimizations about unit test"Alex Yang3-28/+26
2017-09-18Add the pytest file test_environment.pyzhongjun4-1/+771
1.Add the pytest file test_enviroment.py 2.Add the pytest file test_daisy_server.py Change-Id: If679c3a7279a915d078dd3008bcfc56be6dccc3e Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
2017-09-18Some optimizations about unit testAlex Yang3-28/+26
Remove some "if/else". Rename a variables and a file. Split a testcase in two cases. Change-Id: Ic107845ac8eff41ba20e1501c93925586d6cbde9 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-09-11Add the pytest file test_deploy.pyzhongjun5-7/+242
1.add the pytest file test_deploy.py 2.fix the tmpfile clearup issue. Change-Id: I3a7e0f9199f1bf518b332fd3e9884c8f084575ae Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
2017-09-06Eliminate hard coding about ipmi infoAlex Yang2-1/+42
1. Eliminate hard coding 2. Add ipmi info in schemas 3. Add unit test Change-Id: I4561bbc9454e02fd1de2106645db341a4129245b Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-08-31Add some unit test files test_netwrok.pyzhongjun5-0/+285
1.add the below unit test files: test_netwrok.py/test_schemas.py/test_query.py/test_utils.py 2.add the corresponding test conf file deploy_virtual_error.yml. Change-Id: I01292d4c94b9d6159597961a0cab515f57727ec3 Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
2017-08-30Add some test case in test_post_execute.pyzhongjun7-21/+163
1.add some test case in test_post_execute.py. 2.rename test_execute.py to test_prepare_execute.py and add clearup handle in test function. Change-Id: I1ed27ce6f0a5ba8bbd56544ae8d53e14f7daa9ea Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
2017-08-25Add the pytest files for post py fileszhongjun2-0/+117
1.add the test_keystoneauth.py and test_post_execute.py 2.modify the test-requirements.txt to update the dependent python package. Change-Id: I0957c723bd82faa9060c7d5ae021d46feaed05ae Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
2017-08-18Add pytest file for prepare/execute.pyzhongjun1-0/+55
1.Add pytest file test_execute.py for prepare/execute.py. 2.Change the makedirs mode from 0600 to 0700 for test env. Change-Id: Ie29e9e4b4210b170f448faf4df907e55bff1435f Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
2017-08-10Add more unit test case in test_get_conf.pyzhongjun3-41/+158
Add more unit test cases by pytest parametrize fixture. Change-Id: I208bcff9af79b73556638e20df96235c4ac60ee2 Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
2017-08-04Ignore oder in unit test of test_get_conf.pyAlex Yang1-2/+1
Since the result contains a list, so ignore_order should be True in the comparison. Change-Id: Iff4c655312015a55a69b91692ab6f9696715a143 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-08-04Fix the assert comparison error in test_get_conf.pyzhongjun1-31/+34
Because the list/dict parse can not ensure the element sequence in python, using == method to compare the dict content may cause the fault. we replace it with DeepDiff function. Change-Id: I1db52347e24a0b3968bcf645fd47c4fc5b768dc7 Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
2017-08-03Add the unit test by pytest for get_conf.pyzhongjun4-0/+181
Add the unit test cases by pytest way for get_conf.py, other python files will be added unit test cases gradually in the future. Change-Id: I2495645defcf7ee1b6014b27810ac956eec9f7de Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
2017-03-30add tox framework for pep8 and unittestSerenaFeng3-0/+2
Change-Id: If783d387c29dad7fa472578ead2bcd5a6d42ee70 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>