aboutsummaryrefslogtreecommitdiffstats
path: root/functest/cli
AgeCommit message (Collapse)AuthorFilesLines
2017-05-23Call fetch_os_creds.sh from $PATHLinda Wang1-3/+2
Now it's defined as script in releng/modules' setup.py [1] [1] https://gerrit.opnfv.org/gerrit/#/c/35183/ Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Depends-On: Ic77f4e46d6d3396f9891b73105a0eb7aa037754f JIRA: FUNCTEST-829 Change-Id: Ief821b7326e0a6c2bbcab31bb21629455e4bc9ea Signed-off-by: Linda Wang <wangwulin@huawei.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-18Replace CONST.* by getattribute/setattr for cliLinda Wang4-27/+34
Directories affected: - functest/cli/commands and respective unit test JIRA: FUNCTEST-796 Change-Id: I2ad721819d4b8f97098c589c3b5ed3dcc945409d Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-05-04Delete functest.utils.functest_loggerCédric Ollivier1-1/+5
It deletes functest.utils.functest_logger and the related unit tests. Then it modifies all functest modules to get all loggers via logging.getLogger(). __name__ is mainly used as getLogger arg as proposed by logging [1]. All loggers and handlers are now defined via functest/ci/logging.ini instead of a dict loaded by an external json file. Now only warn messages and info messages from ci and core packages are printed in console. [1] https://docs.python.org/2/library/logging.html Change-Id: Ic192855e0f9bf94825d8f7ec73549a0f3b8d44c5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-02-23Use new-style classes which inherit from objectLinda Wang4-4/+4
JIRA: FUNCTEST-707 Change-Id: Ieaa888375136eddbbe003a24b32bf09fd0f92923 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2016-12-25Add a flag in the CLI to report results to DBjose.lausuch3-18/+30
Change-Id: I155a7a8bc5457d013677f8b6e437fe27c31896ae Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-12-23bugfix: get git branch failed when only 'git fetch' is providedSerenaFeng1-4/+8
File "/usr/local/lib/python2.7/dist-packages/functest/cli/commands/cli_env.py", line 58, in show branch = repo.head.reference File "/usr/local/lib/python2.7/dist-packages/git/refs/symbolic.py", line 258, in _get_reference raise TypeError("%s is a detached symbolic reference as it points to %r" % (self, sha)) TypeError: HEAD is a detached symbolic reference as it points to '2632ba86dd920267455ee10154b9e2ce4695a889' JIRA: FUNCTEST-673 Change-Id: I2306dde254710d7d0e8a3529a19e3d8fdb6e5b02 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-12-22refactor cli module using new constants providerSerenaFeng4-81/+67
JIRA: FUNCTEST-673 Change-Id: I643fb16c694a8d7df45a13237f34b19a02906881 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-12-19Allow executing several testcases with the CLIjose.lausuch1-7/+9
By naming the test cases separated by "," The CLI will call run_tests.py for each test case. This is needed for example for the 3rd party CI. Change-Id: I2fa5c68ebb292b462153853879630c0cbc5ef0a2 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-12-05Fix Pep8 issues related to \Morgan Richomme1-4/+5
JIRA: FUNCTEST-630 Change-Id: I2b6d3bec67c6fe290fb2ad795a54a2dd2e3c7a0b Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-11-24Extracted all global parameters into functest_constants.pyhelenyao5-54/+44
JIRA: FUNCTEST-533 1. Extracted all global variables into functest_constants.py and updated all affected areas accordingly 2. Used os.path.join to replace '/' to come up with the path for better cross-platform support and improve the path accuracy 3. Removed unused variables 4. Updated the hardcoded path in Dockerfile by using variable reference 5. Removed "/" ending from all path variables 6. Updated the unit test Change-Id: Ib30a81d1f0c83fbaef042d63c187c27bd18301bb Signed-off-by: helenyao <yaohelan@huawei.com>
2016-11-11Fix path in CLI after directory restructurejose.lausuch2-4/+4
Change-Id: If71f3eb77371274b5215f274a77d5aa9976744fa Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-11-10change path for python ci filesMorgan Richomme2-2/+3
JIRA: FUNCTEST-525 Change-Id: I6b09eaec55e42a3ee1474b21bc7ed87a71118e60 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-11-09Repo structure modificationMorgan Richomme9-0/+531
- create functest subdirectory - rename unit tests - adapt path in exec and config files JIRA: FUNCTEST-525 Change-Id: Ifd5c6edfb5bda1b09f82848e2269ad5fbeb84d0a Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>