python-ldap/tests/tests.yml
Kaleemullah Siddiqui 964c7f70c2 Add gating definition for RHEL 9
Related: rhbz#1947473

Signed-off-by: Kaleemullah Siddiqui <ksiddiqu@redhat.com>
2021-06-08 21:03:30 +05:30

32 lines
761 B
YAML

---
# Run python-ldap's unit test suite as gating tests.
#
# Note: Requires openldap-server from RHEL build root.
#
# 1minutetip --buildroot rhel9
- hosts: localhost
tags:
- classic
pre_tasks:
- name: Enable rhel-buildroot-latest for openldap-servers on 1minutetip
ini_file:
path: /etc/yum.repos.d/rhel-latest.repo
section: rhel-buildroot-latest
option: enabled
value: "1"
create: no
ignore_errors: yes
roles:
- role: standard-test-source
- role: standard-test-basic
required_packages:
- python3-ldap
- openldap-servers
- openldap-clients
tests:
- unittests:
dir: "source/python3"
run: >-
python3 -m unittest discover -s Tests -p 't_*.py' -v