conftest Module

This module contains generator functions for variable injecting of py.test framework.

Some of them are cached, some not. I don’t know how to make multi-level dependency yet. Update 2013-08-19: Cahnged to newer styled fixtures. Dependency now should work O.K. :)

conftest.PATH()[source]

PATH environment variable

Returns:List of directories in $PATH
Return type:list
conftest.audreyvars()[source]

Setups variables for testing

Returns:All Audrey-relevant environment variables.
Return type:dict
conftest.chkconfig_list()[source]

Returns list of all services with enablement in each runlevel

Returns:All services.
Return type:dict
conftest.ec2_deployment()[source]

Setups cached variable whether it’s ec2 deployment or not.

Returns:Whether is this EC2 deployment (cached).
Return type:bool
conftest.gpgcheck_enabled()[source]

Whether is GPG check enabled in yum

Returns:GPG check status
Return type:bool
conftest.is_rhev_deployment()[source]

Setups cached variable whether it’s RHEV deployment or not.

Returns:Whether is this RHEV deployment (cached).
Return type:bool
conftest.is_systemd()[source]

Checks for systemd presence

conftest.is_vsphere_deployment()[source]

Setups cached variable whether it’s vsphere deployment or not.

Returns:Whether is this vsphere deployment (cached).
Return type:bool
conftest.katello_discoverable(request)[source]

Returns boolean (True of False) to indicate whether the provided katello server is accessible

Parameters:request – py.test.request
Returns:Accesibility of Katello server
Return type:bool
conftest.rhel_release()[source]

Returns RHEL version

Returns:RHEL version
Return type:tuple
conftest.rpm_package_list()[source]

Returns list of all installed packages in computer.

Returns:List of all installed packages in computer.
Return type:list
conftest.rpm_package_list_names()[source]

Returns list of all installed packages in computer.

Returns:List of all installed packages in computer.
Return type:list
conftest.selinux_enabled()[source]

Detects whether is SElinux enabled or not

Returns:SElinux status
Return type:bool
conftest.selinux_getenforce()[source]

Returns current enforcing mode of SELinux

Returns:SElinux enforcing status
Return type:str
conftest.selinux_getenforce_conf()[source]

Returns current enforcing mode of SELinux from config file

Returns:SElinux enforcing status
Return type:str
conftest.selinux_type()[source]

Returns current SELINUX type from config file

Returns:SElinux type
Return type:str
conftest.service_check()[source]

Produces service-checking fixture

conftest.subscription_manager_version()[source]

Setups cached variable of version of sub-man

Returns:SM version from cache
Return type:2-tuple
conftest.system_groups()[source]

Determine applicable system groups for the current system

Returns:All Audrey-relevant environment variables.
Return type:dict
conftest.system_uuid()[source]

Returns system UUID from subscription-manager

Returns:System UUID
Return type:str
conftest.tunnel_requested(request)[source]

Determines whether setting up SSH tunnel is requested

Parameters:request – py.test request.
Returns:Whether was tunnel requested.
Return type:bool

Previous topic

common Package

Next topic

test_01_BASH_HISTORY Module

This Page