From 964c7f70c20b0c622a44c634d8301906a55abf6e Mon Sep 17 00:00:00 2001 From: Kaleemullah Siddiqui Date: Tue, 8 Jun 2021 21:03:30 +0530 Subject: [PATCH] Add gating definition for RHEL 9 Related: rhbz#1947473 Signed-off-by: Kaleemullah Siddiqui --- gating.yaml | 7 +++++++ tests/tests.yml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 gating.yaml create mode 100644 tests/tests.yml diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..6f49862 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,7 @@ +# recipients: abokovoy, frenaud, kaleem, ftrivino, cheimes +--- !Policy +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..d741e77 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,31 @@ +--- +# 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