summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-02-22Merge "bugfix for grep"zhihui wu1-2/+2
2017-02-22Merge "Cover also tests folder"Yujun Zhang1-0/+1
2017-02-22Merge "Add Api Basic framework skeleton"Yujun Zhang4-3/+21
2017-02-22bugfix for grepwu.zhihui1-2/+2
Change-Id: I1474a4e4f5884f17cbf3e6d62fae7e743921aae1 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-02-22Add Api Basic framework skeletonAkhil Batra4-3/+21
- Requirements updated to remove flask and include connexion - Api specifications will be added to specs file in swagger/ - controllers module will handle all requests and responses JIRA: QTIP-213 Change-Id: Icfec15ddeff7d53c53ce64910ae2bddd4fc0f260 Signed-off-by: Akhil Batra <akhil.batra@research.iiit.ac.in>
2017-02-22Merge "Refactoring qtip.base.error"Yujun Zhang10-26/+121
2017-02-21Merge "Implement the collector regex for system info logfile."zhihui wu2-1/+47
2017-02-21Merge "Include third party script for license checking and amending"Yujun Zhang3-0/+201
2017-02-21Refactoring qtip.base.errorYujun Zhang10-26/+121
- 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-02-21Cover also tests folderYujun Zhang1-0/+1
This is to ensure all test code is reached to detect bugs like #28955 [1]. The loop of in the tests were not reached before the fix. [1]: https://gerrit.opnfv.org/gerrit/#/c/28955/ Change-Id: I2f9e52cf7df1b94c9412f6edb6ce6f9e137d9b54 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-02-21Merge "Move coverage config to .coveragerc"Yujun Zhang2-1/+28
2017-02-21Implement the collector regex for system info logfile.wu.zhihui2-1/+47
I commented sone lines. Because these part can't be supported well by grep_in_file(). Change-Id: Ifc0ab1b6f40180e40c150b2c80eeaa6c72274ac9 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-02-21Move coverage config to .coveragercYujun Zhang2-1/+28
.coveragerc will be used by tox, pytest, PyCharm and etc Change-Id: I1f128231cda5f3ebffff9e99b1de9134c78fcc00 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-02-21support multi-line search in grep parserwu.zhihui2-3/+6
use finditer with multiline mode JIRA: QTIP-211 Change-Id: Ib8854f749a0258f6b6775be9b80573f6ac8e47db Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-02-21Include third party script for license checking and amendingYujun Zhang3-0/+201
The following commit message are generated automatically by git-subrepo ----------------------------------------------------------------------------- git subrepo clone git@github.com:openzero-zte/License.git third-party/License subrepo: subdir: "third-party/License" merged: "61489da" upstream: origin: "git@github.com:openzero-zte/License.git" branch: "master" commit: "61489da" git-subrepo: version: "0.3.0" origin: "https://github.com/ingydotnet/git-subrepo" commit: "988f8c8" ----------------------------------------------------------------------------- Change-Id: I8eab86a8ce3f26995af3e3535f31f361b4826a8b Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-02-21Add licence header according to OPNFV contribution guidelines[1] by script[2]Yujun Zhang91-0/+739
[1]: https://wiki.opnfv.org/display/DEV/Contribution+Guidelines [2]: https://github.com/Justin-chi/Lab/blob/master/add_license.sh Change-Id: I5b77394a104857bb4ee9addbe973ed239b7a59f3 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-02-21Merge "Migrate to Danube document guide"Yujun Zhang26-0/+0
2017-02-21Merge "Fix error in loader test"Yujun Zhang3-10/+6
2017-02-21Merge "Clean up tests folder"Yujun Zhang10-18/+0
2017-02-21Merge "Move api server to legacy code."zhihui wu4-2/+2
2017-02-20Merge "Deprecate options not sourceable to environment via Python. JIRA: ↵Yujun Zhang1-4/+1
QTIP-205"
2017-02-20Merge "code refactor: ansible playbook about system info"zhihui wu10-43/+595
2017-02-20code refactor: ansible playbook about system infowu.zhihui10-43/+595
- use module yum and apt instead of shell command - break sys_info_pbook.yaml into some small playbooks Change-Id: I33b36fa826c0e668e4a74846ad4da7f4a245a33f Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-02-19Move api server to legacy code.Akhil Batra4-2/+2
Change-Id: Idda8a48bc8cecac5aff4a1f99b8e4e0b58855fff Signed-off-by: Akhil Batra <akhil.batra@research.iiit.ac.in>
2017-02-19Fix error in loader testYujun Zhang3-10/+6
Change-Id: Idac7d0ec77941974a5f93108fd5f450eef05a5ad Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-02-19Clean up tests folderYujun Zhang10-18/+0
- remove __init__.py as recommended in pytest docs[1] - rename cli test files for a consistent naming style - remove empty test files [1]: http://docs.pytest.org/en/latest/goodpractices.html#choosing-a-test-layout-import-rules Change-Id: Idfb5d8a8fb7a590ef988a761991b8e313089e9bc Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-02-18Migrate to Danube document guideYujun Zhang26-0/+0
https://wiki.opnfv.org/display/DOC Change-Id: I85535f158022fe0aeb7c888273dc81fbbf4ddeda Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-02-16Deprecate options not sourceable to environment via Python.Taseer Ahmed1-4/+1
JIRA: QTIP-205 Change-Id: I991ba64e95227fd61b5809393439ef5e7fe05be2 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-02-15Implement logfile collector and grep parserYujun Zhang22-96/+250
JIRA: QTIP-207 JIRA: QTIP-208 Change-Id: Icc14d3097fb305e59df716636ef87504490c9d1b Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-02-15Refactoring collector initialization in plan loaderYujun Zhang8-36/+67
- move ClassProps to module - collectors should be array in plan definition Change-Id: I37d85dbc977c91aa1bb81de45b5e1c41660e6d1f Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-02-15Add test for yaml_file loaderYujun Zhang7-18/+49
Change-Id: I997ceeed17bd35889f6b0f3465bbe75df256b71e Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-02-14Merge "Add test coverage to contributing guide"Yujun Zhang1-0/+9
2017-02-07Add unit test for BaseTransformerYujun Zhang2-0/+15
Change-Id: Ia379af759d9442f5b53f5052682e6218acef8a1b Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-02-06Add test coverage to contributing guideYujun Zhang1-0/+9
JIRA: QTIP-204 Change-Id: I0ff8a00f287544d82628e940ee530b5e9150a1e0 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-02-05Add test coverageYujun Zhang2-2/+5
Change-Id: I9bff5fb1be3edc57d27cfe44f210a2814efd2274 JIRA: QTIP-204 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-02-05Fix bug that metric test is not collectedYujun Zhang3-4/+9
Change-Id: I2e05891a89745712274757ba9af928b03fb5edf6 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-02-05Add missing dependenency for testYujun Zhang1-0/+1
Change-Id: I2c27fe3f852dbaf3cf7daa926228a14f039bbe67 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-02-05Merge "Removed unused deps"Yujun Zhang3-14/+15
2017-02-01Removed unused depsYujun Zhang3-14/+15
Change-Id: I7215c0c3f2957e88b2a048c45a5b99739707f15b Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-01-29Refactor loader classesYujun Zhang11-69/+132
- rename BaseLoader to YamlFileLoader as base class of QTIP specs loader - create an abstract BaseLoader - create FileLoader for logfile collector Change-Id: I0c992cd847fc0dce4fdd73a13c1cdbc406c84532 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-01-26Merge "Code refactoring about doctor QPI"Yujun Zhang19-26/+42
2017-01-25Merge "refactor useful legacy code about preparing test enviroment"Yujun Zhang3-1/+138
2017-01-25Merge "Click's built in support for version option"zhihui wu2-8/+3
2017-01-25Merge "Small corrections"zhihui wu2-4/+8
2017-01-25Merge "Plan module draft"zhihui wu2-22/+54
2017-01-25Merge "Formalize constants for property names"zhihui wu8-53/+78
2017-01-23Click's built in support for version optionTaseer Ahmed2-8/+3
Change-Id: I62ffde066fe2fcb5be7af9a29686a7d380353670 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-01-23Merge "QPI Module Outline"Yujun Zhang3-54/+66
2017-01-23Code refactoring about doctor QPIYujun Zhang19-26/+42
- Move sample log files to test data - Move configuration from plugin to plan Change-Id: Iaaf36ab3ce29c2eafe2d75f3524e7a302cc3836d Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-01-23Formalize constants for property namesYujun Zhang8-53/+78
Change-Id: I68560b2299c2a815219bc0d0399124e0c269a2c0 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>