aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/cli
AgeCommit message (Collapse)AuthorFilesLines
2017-08-09Refactor QPI moduleTaseer Ahmed1-17/+7
- Delete outdated code Change-Id: I0505d3ccc1ea76078f4d307f7d5ef66777ff6eb7 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-07-26Deprecate plan and metric loaderYujun Zhang1-46/+0
- qtip test plan is now automaticlly generated by `qtip create`. The original way of loading plans is no longer valid - metric specs are now embedded in qpi spec, no separated loader are required now JIRA: QTIP-258 Change-Id: I768d75b014163ce060faff00f415a1cdc437ce73 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-06-29Integrate Report with CLI.Taseer1-28/+6
- Migrate fixtures to conftest to be used by multiple files Change-Id: I9a705b93189ac1f2e6fd2fc4e3f05aec7af379f1 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-06-06Merge "Pass on unhandled options."zhihui wu1-0/+18
2017-06-02Pass on unhandled options.Taseer1-0/+18
- More robust testing Change-Id: Iaef21e9e244e1b5112ea5faa630e04424dc0b264 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-06-02Refactor CliTaseer1-4/+0
- Remove reduntant contexts - Remove verbose option - Use builtin help and version options Change-Id: Ifb66009b5f9ab95428ce87c90f739b5221ccdd6f Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-05-31Merge "Pass on all unhandled options"Yujun Zhang1-0/+37
2017-05-29Pass on all unhandled optionsTaseer Ahmed1-0/+37
Change-Id: Ic86002732c87d3b4ac5b5b3b664f116354d4bf9d Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-05-18Remove "plan" module. Replaced by "project"Charlie Root1-43/+0
Change-Id: I5da2a3cf366e4e5a67b68e34db62219587d923e5 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-04-20Merge "Set default width to 80 for justify filter"Yujun Zhang1-55/+11
2017-04-20Set default width to 80 for justify filterYujun Zhang1-55/+11
- 80 default screen width for most consoles - template content should not be part of console reporter test - remove fix width splitter in console report templates Change-Id: Ib060b447bd52c211a4bf1e4ded2f898a9201b6d8 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-04-18Add E release development version.Taseer1-1/+2
Change-Id: Icda9c44aa33e63d46da0c5187157132a49db0882 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-04-13User friendly messages for exceptionsTaseer3-0/+9
- Use colorama for color - Implement verbosity option in separate patch Change-Id: Ib2491d867e9bbf59cb00874d99a11f86ad7eea1b Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-04-03Beautify compute reportTaseer1-39/+25
Change-Id: I0c4faa3720d980970f923697c879627ccbf22852 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-03-23Integrate cli, runner and reporter.Taseer1-12/+20
- Execute runner via a shell command - Change format of qtip result directory to qtip-timestamp - Add path option in reporter to match with runner JIRA: QTIP-229 Change-Id: I7d8562fd7100b1f40cdc8d53b0daa6a06a55b495 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-03-20Merge "Refactor reporter module"zhihui wu2-23/+91
2017-03-18Refactor reporter moduleTaseer2-23/+91
- Create templates for report format specific to each metric. - Outputs the details of the specified metric across all the nodes in cluster. - Timeline to be covered in a separate patch JIRA: QTIP-199 Change-Id: Ic83749725b0c9cc5bd9a7f24f21b2cd113abe0e1 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-03-14Implement 'show' command.Taseer3-6/+10
- Render the description via templates JIRA: QTIP-205 Change-Id: I10523f85f80350e901a4a701bb65ca4833f8ff7c Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-03-10Implement 'list' command.Taseer3-8/+10
- Loads Qtip components from the default path. JIRA: QTIP-205 Change-Id: Id87993d65c5cd6a23c199cf1049d75a0971b6354 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-03-07Merge "Implement debug option"Yujun Zhang1-4/+5
2017-03-04Implement debug optionTaseer Ahmed1-4/+5
Show traceback only when debug flag specified. JIRA: QTIP-201 Change-Id: I9cc4b4ed5a2cb2d2efabd9c0eb3aac216321ebac Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-03-03Implement reporter module.Taseer Ahmed1-0/+23
- Add cli module - Implement timeline outline JIRA: QTIP-199 Signed-off-by: Taseer Ahmed <taseer94@gmail.com> Change-Id: I487b76123a785731c356143d1ae7f3123c11f398
2017-02-22Addition of detail viewing command.Taseer Ahmed3-3/+27
Change-Id: Ia9ad825f20b279db1852587540a2ad6cb3815e1d Signed-off-by:Taseer Ahmed <taseer94@gmail.com>
2017-02-19Clean up tests folderYujun Zhang5-0/+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-01-25Merge "Click's built in support for version option"zhihui wu1-1/+1
2017-01-25Merge "Small corrections"zhihui wu1-3/+6
2017-01-25Merge "Plan module draft"zhihui wu1-0/+31
2017-01-23Click's built in support for version optionTaseer Ahmed1-1/+1
Change-Id: I62ffde066fe2fcb5be7af9a29686a7d380353670 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-01-23Merge "QPI Module Outline"Yujun Zhang1-0/+31
2017-01-22Small correctionsTaseer Ahmed1-3/+6
JIRA: QTIP-188 Change-Id: I5820403527fe4df5e23472923e34660c72195d50 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-01-22Plan module draftTaseer Ahmed1-0/+31
JIRA: QTIP-205 JIRA: QTIP-188 Change-Id: Ia871191851d25e1986834f8a7efdbeb8a8d87ec3 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-01-21QPI Module OutlineTaseer Ahmed1-0/+31
Change-Id: I19b666dfdb3e3c10622397bda00460d6fb5c269d Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-01-17Metric module outlineTaseer Ahmed1-0/+28
Change-Id: Id95b07f1c0821ae0883c761fdf8f507afba4e5c0 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-01-06Rework Cli.Taseer Ahmed2-31/+32
Allows global arguments to be passed to each group. References: https://github.com/pallets/click/blob/master/examples/complex/complex/cli.py Change-Id: Ifed191add867b35ddfff92de0c7db4a03d67d091 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2016-12-28Delete Ansible module. No longer required.Taseer Ahmed1-1/+2
JIRA: QTIP-150 Change-Id: Idd357af309d01e5eece22521c12cd61ffd50db85 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2016-12-20All unit tests.Taseer2-31/+30
JIRA: QTIP-184 Change-Id: I577b8df85d2be63f9195ed2bb3c6bf497ce1fd96 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2016-12-15Unit Test for Ansible ModuleTaseer1-0/+31
JIRA: QTIP-188 Change-Id: I10b3fb979f52d10e8dedf956831f8320c04a36ea Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2016-11-21Architecture evolution skeletonYujun Zhang1-0/+0
- benchmarks will be driven by qtip.runner - qtip.runner is used by both qtip.cli and qtip.api - unit test for each module will be placed under tests/unit - functional tests will be moved to tests/functional - data as testing sample will be moved to tests/data NOTE: this patch moves files only, it may fails many tests. To be followed up in next step. JIRA: QTIP-148 Change-Id: I27e8169a74783970a1f7818456eb76a7311fb60c Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>