In order to prevent unnecessary test code duplication it makes sense to use a test library which implements frequently repeated actions. Beakerlib Libraries allow to create and share modules, encapsulating common complex tasks such as configuring and starting a particular daemon in a single function. Also, the library takes care of installing all the necessary dependencies.
The default location for libraries is the beakerlib
project. Libraries stored there can be easily referenced using
the library(component/name)
notation in the require
attribute. It is recommended to create a separate git repository
for each library unless there are multiple libraries which are
very closely related. Note that you will be able to set up
collaborators for your library repository.
In order to create a git repository for a new library file a new issue in this project and specify the desired name.
As every change in the library can affect many tests which depend on it, it is strongly recommended to always use pull requests when developing new features and fixing bugs and require at least one review from collaborators before merging the code to production.
name | summary | contact |
---|---|---|
bind/bind-setup | setup functions for bind | Petr Sklenar [email protected] |
bind/bind-utils | Few helpers for working with DNS and DNSSEC in tests. | Petr Mensik [email protected] |
ControlFlow/Cleanup | Provides function to define cleanup stack which can do its work at any time | Dalibor Pospisil [email protected] |
ControlFlow/ConditionalPhases | Implements conditional phases. | Dalibor Pospíšil [email protected] |
ControlFlow/mcase | modal test case library | [email protected] |
ControlFlow/SessionControl | Sessions handling library | Dalibor Pospíšil [email protected] |
crypto/fips | A set of helpers for FIPS 140 testing | Ondrej Moris [email protected] |
database/mariadb | Set of basic functions for mariadb | Jakub Heger [email protected] |
database/mysql | Set of basic functions for mysql | Jakub Heger [email protected] |
database/postgresql | Set of basic functions for postgresql | Vaclav Danek [email protected] |
distribution/Cleanup | Cleanup library reference | Dalibor Pospíšil [email protected] |
distribution/ConditionalPhases | ConditionalPhases library reference | Dalibor Pospíšil [email protected] |
distribution/dpcommon | A meta library bringing other libraries | Dalibor Pospíšil [email protected] |
distribution/dump | Helpers for dumping files to log | Alois Mahdal [email protected] |
distribution/epel | epel library reference | Dalibor Pospíšil [email protected] |
distribution/Log | More fine-grade logging solution | Dalibor Pospíšil [email protected] |
distribution/mcase | mcase library reference | Martin Klusoň [email protected] |
distribution/opts | simplified interface to getopts processing | Dalibor Pospíšil [email protected] |
distribution/RpmSnapshot | RpmSnapshot library reference | Dalibor Pospíšil [email protected] |
distribution/static | static file checking | Alois Mahdal [email protected] |
distribution/sync | sync library reference | Ondrej Moris [email protected] |
distribution/tcf | Block style coding with ability of skipping parts | Dalibor Pospíšil [email protected] |
distribution/testUser | This library provides functions for maintaining test users. | Dalibor Pospisil [email protected] |
epel/epel | EPEL handling | Dalibor Pospíšil [email protected] |
example/file | Example of a beakerlib library | Petr Šplíchal [email protected] |
firewalld/main | Manage firewalld setup and cleanup | Tomas Dolezal [email protected] |
httpd/http | Basic library for httpd testing | Ondřej Pták [email protected] |
initscripts/basic | it contains nm handling and similation tools | Petr Sklenar [email protected] |
libraries/wrapper | a library wrapper helper | Dalibor Pospíšil [email protected] |
nginx/nginx | library for testing nginx | Ondrej Ptak [email protected] |
nvr/nvr | Library allows easily compare NVR of an installed package | Karel Srot [email protected] |
openssl/certgen | Library for creating X.509 certificates for any use | |
perl/subpackage | Library of functions regarding the perl subpackages | Martin Kyral [email protected] |
php/utils | Library with various utility functions for php tests | David Kutalek [email protected] |
rpm/snapshot | RpmSnapshot library | Dalibor Pospíšil [email protected] |
rsyslog/basic | basic functions to support rsyslog | Dalibor Pospíšil [email protected] |
selinux-policy/common | library(selinux-policy) wrapper | Dalibor Pospíšil [email protected] |
sos/utils | Library with various utility functions for sos tests | David Kutalek [email protected] |
squid/squid | Library for squid testing | Martin Kyral [email protected] |
sync/sync | A simple synchronization library for two hosts | Ondrej Moris [email protected] |
tuned/basic | Library for tuned | [email protected] |
wrapper | a library wrapper helper | Dalibor Pospíšil [email protected] |