summaryrefslogtreecommitdiffstats
path: root/tests/unit/test_environment.py
AgeCommit message (Collapse)AuthorFilesLines
2017-10-18Skip recreate Daisy server VM if it exists in pythonAlex Yang1-5/+11
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-12Mock sleep() to accelerate the unit testAlex Yang1-0/+6
Change-Id: I664ba714ab4094754fa3d71587da8536555a02ce Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-09-29Add more test function and case in test_utils.pyzhongjun1-16/+113
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.pyzhongjun1-15/+150
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 Yang1-1/+2
Change-Id: I82086b85da488e183589af7b4adbd6c80835c039 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-09-18Add the pytest file test_environment.pyzhongjun1-0/+385
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>