2021-06-08 15:33:30 +00:00
|
|
|
---
|
|
|
|
# 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:
|
2021-06-23 05:45:31 +00:00
|
|
|
path: /etc/yum.repos.d/rhel.repo
|
|
|
|
section: rhel-buildroot
|
2021-06-08 15:33:30 +00:00
|
|
|
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:
|
2021-06-23 05:45:31 +00:00
|
|
|
dir: "source"
|
2021-06-08 15:33:30 +00:00
|
|
|
run: >-
|
|
|
|
python3 -m unittest discover -s Tests -p 't_*.py' -v
|