aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
AgeCommit message (Collapse)AuthorFilesLines
2017-09-07Mitigating for missing values in storage QPI.Taseer Ahmed1-2/+5
- Update unit tests Change-Id: I7bfe89dc6bbe1cafe13b2f3e4f9356a06a59c68b Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-08-30Keep tests/data consistent with repository structureYujun Zhang1-4/+4
- rename `benchmarks` in `tests/data` to `resources` - delete obsoleted contents JIRA: QTIP-258 Change-Id: I7f4ec1a1fc7b355922c7aee76851e7f0dd026f72 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-08-30Add score calculation module for storperfYujun Zhang1-0/+21
Change-Id: I469ee4d768e16a27c3bde660bc1029d5a3507b72 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-08-11Merge "Fix bug in apex inventory"Yujun Zhang2-11/+11
2017-08-09Refactor QPI moduleTaseer Ahmed1-17/+7
- Delete outdated code Change-Id: I0505d3ccc1ea76078f4d307f7d5ef66777ff6eb7 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-08-09Fix bug in apex inventoryYujun Zhang2-11/+11
The default user for overcloud should be heat-admin JIRA: QTIP-267 Change-Id: Ie868b1a925ca0eaa0292bdfb99d0e328e820f8aa Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-07-26Deprecate plan and metric loaderYujun Zhang7-278/+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.Taseer3-171/+6
- Migrate fixtures to conftest to be used by multiple files Change-Id: I9a705b93189ac1f2e6fd2fc4e3f05aec7af379f1 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-06-26Refactor output formatTaseer1-13/+15
- Merge scores and results in qpi.json - metrics: {} will be completely removed as a consequence - Make baseline the same format as spec Change-Id: Id0cc487002a38c51736de07f3759fd78d42a0b9c Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-06-06add system_info and condition to qpi reportzhihui wu1-3/+18
According to the part "system_info" and "condition" in spec, gather these data and add them to qpi report. Change-Id: I5efc996c2bfb34452e9aa323d8288c1dd2d8d276 Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
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-06-02Merge "metrics baseline in compute-baseline.json"zhihui wu1-7/+50
2017-06-01metrics baseline in compute-baseline.jsonzhihui wu1-7/+50
- Previously, metrics baseline are defined in the spec file. In this patch, move metrics baseline to compute-baseline.json. - you can get qpi based with baseline file given in calculate.yml - you can generate a customized baseline file when baseline file is not given in calculate.yml And baseline will be removed from the spec file. Change-Id: I123d28e28543cb153b60120b5076306fa2fa3873 Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
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-23use the git link to replace qtip_speczhihui wu1-2/+2
Change-Id: Iaee076c06d54754f2d761dd85eab58353ee32ae4 Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
2017-05-19Merge "Remove "plan" module. Replaced by "project""zhihui wu1-43/+0
2017-05-19Merge "Implement sunburst badge for QPI"Yujun Zhang1-8/+14
2017-05-18Remove "plan" module. Replaced by "project"Charlie Root1-43/+0
Change-Id: I5da2a3cf366e4e5a67b68e34db62219587d923e5 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-05-16delete unuse code in directory /qtipzhihui wu2-323/+0
Change-Id: I6732c7cf572d5b744c3a176ce266b9739e9233fd Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
2017-05-16Implement sunburst badge for QPIYujun Zhang1-8/+14
Change-Id: Iccdec7b0ac223a38c846f73adc6bd0e53db3723b Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-04-26Add support for result aggregationYujun Zhang1-0/+24
Change-Id: I678b765f3f430cb6a5d130d94960273b8eea85e7 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-04-25Add ssl aes metrics in qpi calculationYujun Zhang1-0/+7
Change-Id: Id568aa3942849e105ca24892babff2acaec21121 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-04-24Add support for render a justified output from list and dictYujun Zhang1-4/+10
Change-Id: I4411e62b3d1a067cfa8ae1296cf521877aedb830 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-04-20Merge "Set default width to 80 for justify filter"Yujun Zhang2-110/+22
2017-04-20fix apex integrationzhihui wu1-2/+2
I didnot find a right way to source Openstack rc file via ansible module python api. Without openstack rc fiel, openstack cli command can not be executed. So I move this part to ansible playbook. Change-Id: I44439560f8ffa1b41890c4e94c9657ab2cc43241 Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
2017-04-20Set default width to 80 for justify filterYujun Zhang2-110/+22
- 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-19Merge "Fix warnings on same name of host and group in Ansible 2.3"Yujun Zhang1-7/+1
2017-04-19Merge "Add unittests for testapi client"zhihui wu1-0/+116
2017-04-19Merge "Add E release development version."zhihui wu1-1/+2
2017-04-18Add unittests for testapi clientakhilbatra8981-0/+116
Change-Id: I33ffd6ca6110b5fb245a3fc31fc0c63e11588fb8 Signed-off-by: akhilbatra898 <akhil.batra@research.iiit.ac.in>
2017-04-18Fix warnings on same name of host and group in Ansible 2.3Yujun Zhang1-7/+1
Change-Id: Iedf0d609a62b956e1f0cd5e941a8fd27e1abc685 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-18Merge "apex integration"zhihui wu1-0/+30
2017-04-18apex integrationzhihui wu1-0/+30
Change-Id: Ief21554dfa7cd79e7ed0cb1615f6dbf079cb6077 Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
2017-04-17push results to testapiYujun Zhang1-1/+1
Change-Id: Ie6e231690f92971b776cd41af18b21acb43bb199 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-04-14Merge "User friendly messages for exceptions"zhihui wu3-0/+9
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-10Implement calculator PoCYujun Zhang1-0/+85
- use `mean` as default formula Change-Id: I236b46c1e52f3535fb6e954d324790b1421126bd Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-04-06Add ansible action plugin `collect`Yujun Zhang1-0/+36
- this plugin collects information or metrics from string - it is reworked from qtip.collector.parser.grep - the captured subgroups are always list even only one match found Change-Id: I1def3d7b40c7928b503fae1be531976a13e5d0be Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-04-06Add ansible module `fuel`Yujun Zhang1-0/+60
This module will be used to generate a dynamic inventory of fuel nodes for performance testing Change-Id: Idaa491c5fc3050abfb8ba36328f2113cf2885179 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-04-03Beautify compute reportTaseer2-71/+48
Change-Id: I0c4faa3720d980970f923697c879627ccbf22852 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-03-29Add jinja2 filter justifyYujun Zhang1-0/+19
It will be used in report template Change-Id: I69fd891db5e69b2dec441bd296836e6806461b78 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2017-03-24Merge "Integrate cli, runner and reporter."zhihui wu2-24/+40
2017-03-23Integrate cli, runner and reporter.Taseer2-24/+40
- 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-22Add unit tests for List and get in API.akhilbatra8984-0/+151
- refactor controllers - remove abspath and other irrelvant data in response - move fixtures - refactor decorators JIRA: QTIP-226 Change-Id: I5fac5b1bc998da198098992e7ddb47ba49685f31 Signed-off-by: akhilbatra898 <akhil.batra@research.iiit.ac.in>
2017-03-20Merge "Refactor reporter module"zhihui wu3-39/+157
2017-03-18Refactor reporter moduleTaseer3-39/+157
- 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>