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

TestFM is a test suite based on 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.

Licensing

TestFM is licensed under GNU General Public License v3.0.

Metadata

Release files for testfm 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for testfm 0.1.4
File Size Uploaded
testfm-0.1.4.tar.gz 12.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for testfm 0.1.4
File Interpreter ABI Platform
testfm-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 43.7 kB

Release files / testfm-0.1.4.tar.gz

Download URL testfm-0.1.4.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
03124676626556af1f51f31dc3a05dddeca02c29d12971eb59b5a6d65e502f13
BLAKE2b-256 checksum
How to use checksums
34564555f45b87d7904546d2c615ffb8b7846450157fcc4b4c8abc20cb1757dc
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / testfm-0.1.4-py3-none-any.whl

Download URL testfm-0.1.4-py3-none-any.whl
Size 31.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f95e6a334eeca1dc198d130573c4992b8a5a5214e35e9671feb4663e24b0ffbb
BLAKE2b-256 checksum
How to use checksums
60827168ac45e558794134c9e9f47b41df21c6a51ba50eaf0e6d47951955d4e7
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page