Leverage logging config and refactor the logger 95/26695/17
authorhelenyao <yaohelan@huawei.com>
Thu, 5 Jan 2017 06:57:01 +0000 (01:57 -0500)
committerhelenyao <yaohelan@huawei.com>
Thu, 19 Jan 2017 09:36:48 +0000 (04:36 -0500)
commit168502f9fa58d9c348adb563b705d17c5ec4dcf7
tree2469a15f448beacbc7059eb719a4225d06623da0
parent34aab533f4a6c20676eb2a2b6843d5980ea3ac17
Leverage logging config and refactor the logger

JIRA: FUNCTEST-690

The detailed benefits are listed in the JIRA description.

1. Refactored the functest_logger to make use of configuration file
2. Avoided configuring the logging every time a logger is initialized
3. Applied separate logging configuration fo unit test by removing
saving log to file

Change-Id: I6e27eaba727ae6d704f0301f15359dc3ea7b2f97
Signed-off-by: helenyao <yaohelan@huawei.com>
functest/ci/config_functest.yaml
functest/ci/logging.json [new file with mode: 0644]
functest/tests/unit/cli/commands/test_cli_env.py
functest/tests/unit/core/test_testcase_base.py [changed mode: 0644->0755]
functest/tests/unit/odl/test_odl.py
functest/tests/unit/test_logging.ini [new file with mode: 0644]
functest/tests/unit/utils/test_functest_utils.py
functest/utils/functest_logger.py [changed mode: 0644->0755]
run_unit_tests.sh