简体   繁体   English

Redhat OpenStack的测试用例?

[英]Test cases for Redhat OpenStack?

I am working in RedHat OpenStack project and I need to know good test cases for reliability, performance, and function test cases for RedHat OpenStack. 我正在RedHat OpenStack项目中工作,我需要了解有关RedHat OpenStack的可靠性,性能和功能测试用例的良好测试用例。 I already looked at the Tempest test . 我已经看过Tempest测试了 but I'm asking if there's any other test I can follow? 但我问是否还有其他可以参加的测试?

I realize that you mention that you've already looked at Tempest, but I would strongly encourage you to take a second look. 我知道您提到您已经看过Tempest,但是我强烈建议您再看一遍。 I understand that the documentation is a little underwhelming and tailoring the tempest configuration to your deployment can be a significant time investment. 据我了解,该文档有些不足,针对您的部署量身定制狂暴的配置可能是一笔可观的时间投资。 Beyond its documentation, it's a well-maintained OpenStack project and running sanity checks doesn't take too long to configure. 除了文档外,它还是一个维护良好的OpenStack项目,运行健全性检查无需花费太长时间即可配置。 The results can be truly revealing. 结果可以真正揭示出来。

Create a tempest workspace and conduct sanity checks with --smoke or -s 创建一个--smoke工作区并使用--smoke-s进行完整性检查

Create a workspace with tempest init myworkspace . tempest init myworkspace创建一个工作区。 This will create the directory structure for you based off of what exists in /etc/tempest. 这将基于/ etc / tempest中存在的内容为您创建目录结构。 If you've already configured your /etc/tempest, you're a step ahead, otherwise, you'll need to configure your myworkspace/etc/tempest.conf before running any test. 如果您已经配置了/ etc / tempest,那么您将处于领先地位,否则,您需要在运行任何测试之前配置myworkspace / etc / tempest.conf。

Once your workspace is configured for your deployment, execute tempest run --smoke from the workspace directory. 配置好工作区以进行部署后,从工作区目录中执行tempest run --smoke This will execute ~100 smoke tests for basic cloud functionality and sanity testing. 这将执行约100次烟雾测试,以进行基本的云功能和完整性测试。 With my modest deployment, this doesn't take more than 3-5 minutes to get some worthwhile results. 通过我的适度部署,这不会花费超过3-5分钟的时间来获得一些有价值的结果。

Results from --subunit --subunit结果

Continuing with the myworkspace directory, running your smoketests with the --subunit flag ( tempest run --smoke --subunit ) produces the html-exportable subunit docs at workspace/.stestr/$iteration where $iteration is a 0-indexed iteration of tempest run you've executed. 继续myworkspace目录,使用--subunit标志( tempest run --smoke --subunittempest run --smoke --subunit会在workspace/.stestr/$iteration生成html- workspace/.stestr/$iteration子单元文档,其中$iteration是0索引的迭代您执行过的tempest run

For example, after your first iteration, run subunit2html .stestr/0 to generate a well-formatted results.html for your review. 例如,你的第一个循环之后,运行subunit2html .stestr/0产生一个格式良好的results.html为您的评论。

Beyond Smoketesting 超越烟雾测试

If you start here and iterate, I think it naturally progresses into running the full gamut of tests. 如果您从这里开始并进行迭代,我认为它自然会发展为运行全部测试。 The workflow is a bit different from the smoke testing: 工作流程与烟雾测试有点不同:

  1. Generally start with tempest cleanup --init-saved-state which will produce a pre-test state of your cloud, a veritable snapshot of the resources you do not want to cleanup in post. 一般先从tempest cleanup --init-saved-state ,这将产生你的云的测试前的状态,你不想在清理后的资源名副其实的快照。 The state is stored at saved_state.json. 状态存储在save_state.json中。
  2. Run your tests with options tailored to your deployment, most basically tempest run . 使用针对您的部署量身定制的选项来运行测试,基本上是最tempest run
  3. After analyzing your results, a run of tempest cleanup will destroy resources that do not exists in the saved_state.json file. 在分析了您的结果之后,进行一次tempest cleanup将破坏save_state.json文件中不存在的资源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM