Add gating for RHEL 10

Resolves: RHEL-61809
This commit is contained in:
Barbora Simonova 2024-09-04 15:24:18 +02:00 committed by spichugi
parent afe0e4d8f6
commit 18b08c5ab5
2 changed files with 35 additions and 0 deletions

7
gating.yml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- rhel-10
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

28
tests/tests.yml Normal file
View File

@ -0,0 +1,28 @@
---
# Run python-ldap's unit test suite as gating tests.
#
# Note: Requires openldap-server from copr repo.
#
# 1minutetip rhel10
- hosts: localhost
tags:
- classic
pre_tasks:
- name: Download copr repo for openldap-servers
ansible.builtin.get_url:
url: https://copr.fedorainfracloud.org/coprs/g/389ds/cs10-openldap-servers/repo/centos-stream-10/group_389ds-cs10-openldap-servers-centos-stream-10.repo
dest: /etc/yum.repos.d/openldap-servers.repo
roles:
- role: standard-test-source
- role: standard-test-basic
required_packages:
- python3-ldap
- openldap-servers
- openldap-clients
tests:
- unittests:
dir: "source"
run: >-
python3 -m unittest discover -s Tests -p 't_*.py' -v