diff --git a/gating.yml b/gating.yml new file mode 100644 index 0000000..c9190f8 --- /dev/null +++ b/gating.yml @@ -0,0 +1,7 @@ +--- !Policy +product_versions: + - rhel-10 +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..36ec0ad --- /dev/null +++ b/tests/tests.yml @@ -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 +