testfm是一个测试套件,用于练习foreman维护工具。

testfm的Python项目详细描述


https://api.travis-ci.org/SatelliteQE/testfm.svg?branch=masterhttps://img.shields.io/pypi/pyversions/testfm.svghttps://img.shields.io/pypi/l/testfm.svghttps://img.shields.io/pypi/v/testfm.svghttps://requires.io/github/SatelliteQE/testfm/requirements.svg?branch=master

TestFM是一个基于pytest-ansible的测试套件,它使用foreman维护工具

快速启动

以下只是testfm的简要设置指南。 运行测试一节提供了更全面的使用指南 测试调频。

testfm需要对被测服务器系统的ssh访问,而这个ssh访问 由pytest ansible实现。

获取源代码并安装依赖项:

git clone https://github.com/SatelliteQE/testfm.git
pip3 install -r requirements.txt

就这样!你现在可以开始测试工头维修。 但是,在继续之前,您还需要做一些其他事情:

  • 确保将ssh密钥复制到测试系统。
  • 确保工头维护安装在工头/卫星服务器上。

运行测试

在运行任何测试之前,必须将foreman或satellite主机名添加到 testfm/inventory文件(首先从“testfm/inventory.sample”复制)。

完成后,您可以使用pytest运行测试

pytest --ansible-host-pattern satellite --ansible-user=root  --ansible-inventory testfm/inventory
tests/

可以运行特定的测试子集:

pytest --ansible-host-pattern satellite --ansible-user=root --ansible-inventory testfm/inventory
tests/test_case.py

pytest --ansible-host-pattern satellite --ansible-user=root  --ansible-inventory testfm/inventory
tests/test_case.py::test_case_name

想做贡献吗?

感谢您考虑为testfm做贡献!如果你有 有问题或顾虑,请随时与团队联系。

许可

testfm在gnu通用公共许可v3.0下获得许可。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
未检测到“空格”的java ASCII码   音频如何在Java中设置SourceDataLine的音量   java MyBatissSpringBoot无法使用作为bean注入的数据源   Java字谜递归列表<List<String>>仅存储空列表<Strings>   java显示30px高的JPanel,然后用minecraft填充剩余空间   java JOGL平滑度   Java:按完整与否对1d对象数组进行排序   arraylist仅当java结构不存在时才将对象添加到java结构中   无法初始化java渲染库在安卓 studio 4.1.1上出现错误   java SpringBoot ClassCastException   java解析文本文件,基于字数   java=运算符引发异常   java使点可拖动并存储新坐标JavaFx   JavaWebSphereApplicationServer:EJB模块和JMS路由器