TestFM is a test suite which exercises foreman-maintain tool.
Project description
TestFM
=========
.. image:: https://api.travis-ci.org/SatelliteQE/testfm.svg?branch=master
:target: https://travis-ci.org/SatelliteQE/testfm
.. image:: https://img.shields.io/pypi/pyversions/testfm.svg
:target: https://pypi-hypernode.com/project/robottelo
.. image:: https://img.shields.io/pypi/l/testfm.svg
:target: https://pypi-hypernode.com/project/robottelo
`TestFM`_ is a test suite based on `pytest-ansible
<https://github.com/ansible/pytest-ansible>`_ that exercises The Foreman maintenance tool
Quickstart
-----------------
The following is only a brief setup guide for TestFM.
The section on Running the Tests provides a more comprehensive guide to using
TestFM.
TestFM requires SSH access to the server system under test, and this SSH access
is implemented by pytest-ansible.
Get the source code and install dependencies::
git clone https://github.com/SatelliteQE/testfm.git
pip3 install -r requirements.txt
That’s it! You can now go ahead and start testing The Foreman Maintain.
However, there are a few other things you need to do before continuing:
- Make sure ssh-key is copied to the test system.
- Make sure foreman maintain is installed on foreman/satellite server.
Running the Tests
-----------------
Before running any tests, you must add foreman or satellite hostname to the
`testfm/inventory` file (first copy it from`testfm/inventory.sample`).
That done, you can run tests using pytest ::
pytest --ansible-host-pattern satellite --ansible-user=root --ansible-inventory testfm/inventory
tests/
It is possible to run a specific subset of 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
Want to contribute?
-----------------
Thank you for considering contributing to TestFM! If you have any
question or concerns, feel free to reach out to the team.
Recommended
-----------------
- Import modules in alphabetical order.
- Every method and function will have a properly formatted docstring.
In order to ensure you are able to pass the Travis CI build,
it is recommended that you run the following commands in the base of your
testfm directory ::
flake8
flake8 will ensure that the changes you made are not in violation of PEP8
standards. If the command gives no output, then you have passed. If not, then
address any corrections recommended.
If you have something great, please submit a pull request anyway!
Licensing
-----------------
TestFM is licensed under GNU General Public License v3.0.
=========
.. image:: https://api.travis-ci.org/SatelliteQE/testfm.svg?branch=master
:target: https://travis-ci.org/SatelliteQE/testfm
.. image:: https://img.shields.io/pypi/pyversions/testfm.svg
:target: https://pypi-hypernode.com/project/robottelo
.. image:: https://img.shields.io/pypi/l/testfm.svg
:target: https://pypi-hypernode.com/project/robottelo
`TestFM`_ is a test suite based on `pytest-ansible
<https://github.com/ansible/pytest-ansible>`_ that exercises The Foreman maintenance tool
Quickstart
-----------------
The following is only a brief setup guide for TestFM.
The section on Running the Tests provides a more comprehensive guide to using
TestFM.
TestFM requires SSH access to the server system under test, and this SSH access
is implemented by pytest-ansible.
Get the source code and install dependencies::
git clone https://github.com/SatelliteQE/testfm.git
pip3 install -r requirements.txt
That’s it! You can now go ahead and start testing The Foreman Maintain.
However, there are a few other things you need to do before continuing:
- Make sure ssh-key is copied to the test system.
- Make sure foreman maintain is installed on foreman/satellite server.
Running the Tests
-----------------
Before running any tests, you must add foreman or satellite hostname to the
`testfm/inventory` file (first copy it from`testfm/inventory.sample`).
That done, you can run tests using pytest ::
pytest --ansible-host-pattern satellite --ansible-user=root --ansible-inventory testfm/inventory
tests/
It is possible to run a specific subset of 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
Want to contribute?
-----------------
Thank you for considering contributing to TestFM! If you have any
question or concerns, feel free to reach out to the team.
Recommended
-----------------
- Import modules in alphabetical order.
- Every method and function will have a properly formatted docstring.
In order to ensure you are able to pass the Travis CI build,
it is recommended that you run the following commands in the base of your
testfm directory ::
flake8
flake8 will ensure that the changes you made are not in violation of PEP8
standards. If the command gives no output, then you have passed. If not, then
address any corrections recommended.
If you have something great, please submit a pull request anyway!
Licensing
-----------------
TestFM is licensed under GNU General Public License v3.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
testfm-0.1.3.tar.gz
(12.4 kB
view details)
Built Distribution
testfm-0.1.3-py3-none-any.whl
(31.1 kB
view details)
File details
Details for the file testfm-0.1.3.tar.gz
.
File metadata
- Download URL: testfm-0.1.3.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff6f83acd6200aef3aa5109c10b077d85a6ee50c5228d1b3d304cf02b60286f7 |
|
MD5 | 9ed50d8092d032985553323df3cc2449 |
|
BLAKE2b-256 | a8d014ca2811dbd87b51a63552b467f3db6f333ce8368855a77c4046219e3a86 |
File details
Details for the file testfm-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: testfm-0.1.3-py3-none-any.whl
- Upload date:
- Size: 31.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8582193ed9842ec7f8c7d55cd2a80acd0e3a27108f8eb699ecfbeb5e9920f919 |
|
MD5 | e4ac816568e269dde8f3243168aade86 |
|
BLAKE2b-256 | c8a328059b7019c3a21219cbd985ece541aff8d54606b1e2b1ac0b97b46cd53d |