summaryrefslogtreecommitdiffstats
path: root/qtip/util
AgeCommit message (Collapse)AuthorFilesLines
2017-03-21correct a mistake for os.getenv()wu.zhihui1-1/+1
os.getenv returns a string not a boolean. Although you set environment variable 'CI_DEBUG=false', the cleanup will not be executed. Change-Id: I077b602069f026a4b9ef6019869ac6c29c401c21 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn> (cherry picked from commit b07a423d0fb1b6bfbdb851195097d6fda38bc20e)
2017-03-21mistaken delete usefuel public keywu.zhihui1-6/+12
Previously, cleanup_creds.sh will delete public keys which of comment info is "root@$hostname". It could delete useful keys by accident. In this patch, cleanup_creds.sh will only delete the key which matches the key's content. JIRA: QTIP-228 Change-Id: I1095de656570b816b7e170688acd01c27b98e74c Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn> (cherry picked from commit eaa225cf0c9b8b7bc63b35acdeef75dbacb8b905)
2017-03-15Merge "optimize console info" into stable/danubeYujun Zhang1-19/+18
2017-03-15optimize console infowu.zhihui1-20/+19
- use QtipLogger instead of print - delete useless print Change-Id: I1e08382a5d78ce53cf455496363bce3762b81dd2 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn> (cherry picked from commit 3391a3c6ab4f6b33e2f6d74e858a7bad573695b1)
2017-03-15add the cleanup step in runner.pywu.zhihui1-7/+11
Add the cleanup step in runner.py Change-Id: I0016986485eab5d7ab45d4a7a393bea5fb6f96b5 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn> (cherry picked from commit 57ec2e7a9757cbb1da8a1f73f0c55e8a5cb67bec)
2017-03-11env cleanupwu.zhihui1-0/+17
If IF_DEBUG is True, there is not cleanup step. If IF_DEBUG is False, host file and keypair will be deleted on local and public key will be removed from remote nodes in the end of test. Change-Id: I4a88acc2d428e41e4abaedacb011e27468b2cb57 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn> (cherry picked from commit d37dad746e504e833abcf2ae058f2b81e2a9d365)
2017-03-04rework env.pywu.zhihui1-45/+132
Create a new class AnsibleEnvSetup for setuping test environment for ansible driver. Change-Id: I5d2385b33e5666acb7bbac1a6d960a805d846a32 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-02-28refactor code related with setup envwu.zhihui1-95/+58
- modify env.py and scripts - add unit test Change-Id: I416cd517bdddfeb907675705009d83ecada7f87c Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-02-23Merge "refactor logger to make unittest possible"zhihui wu1-5/+4
2017-02-22refactor logger to make unittest possibleSerenaFeng1-5/+4
Change-Id: Ibb630ea34701e454aabf78821f4c40781d2607ed Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-02-21Refactoring qtip.base.errorYujun Zhang2-3/+20
- move method make_tbd to qtip.util.dev - add suffix Error to follow the Python naming convention - rename arguments of NotFoundError to make it generic Change-Id: I81e406b7fa10c3b40004434f6a9c2e7bbf7603ee Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-01-23refactor useful legacy code about preparing test enviromentwu.zhihui1-0/+137
- move useful scripts to qtip/scripts - refactor some functions which belong to env_setup.py and add them to qtip/runner/env.py Change-Id: Ibf6c27103dfc45016920f4b602cd72d703c1f636 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-01-11Reorganize the project foldersYujun Zhang3-0/+97
Code from Brahmaputra is no longer maintained, including: - docker - playbooks - scripts - utils They are moved to legacy folder to avoid unnecessary confusion to new developers. Change-Id: Ia50383ca5c3bd82571eb7b2184e7f83e264ff8a7 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>