From c6dc8fc36c7fdca7cb8b230de2ab6050c6de686c Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Thu, 23 Feb 2023 11:47:57 +0000 Subject: [PATCH] update modulemd etc --- 389-ds.yaml | 28 +++++++++++++++++++++++++++ gating.yaml | 8 ++++++++ tests/tests.yml | 50 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 389-ds.yaml create mode 100644 gating.yaml create mode 100644 tests/tests.yml diff --git a/389-ds.yaml b/389-ds.yaml new file mode 100644 index 0000000..c30d25b --- /dev/null +++ b/389-ds.yaml @@ -0,0 +1,28 @@ +document: modulemd +version: 2 +data: + stream: 1.4 + summary: 389 Directory Server (base) + description: >- + 389 Directory Server is an LDAPv3 compliant server. The base package includes + the LDAP server and command line utilities for server administration. + license: + module: + - MIT + dependencies: + - buildrequires: + nodejs: [10] + platform: [el8] + rust-toolset: [rhel8] + llvm-toolset: [rhel8] + requires: + platform: [el8] + filter: + rpms: + - cockpit-389-ds + components: + rpms: + 389-ds-base: + rationale: Package in api + ref: stream-1.4-rhel-8.8.0 + arches: [aarch64, ppc64le, s390x, x86_64] diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..3361a25 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,8 @@ +# recipients: ds-qe-bugs +--- !Policy +product_versions: + - rhel-8 +decision_context: osci_compose_gate_modules +subject_type: redhat-module +rules: + - !PassingTestCaseRule {test_case_name: baseos-ci.redhat-module.tier0.functional} diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..0b51700 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,50 @@ +--- +- hosts: localhost + remote_user: root + vars: + ds_repo_url: https://gerrit-git.engineering.redhat.com/git/389-ds-base.git + ds_repo_dir: ds + ds_repo_version: rhel-8.8 + ds_tests: "{{ ds_repo_dir }}/dirsrvtests/tests" + pytest: "py.test-3" + pytest_args: "-v" + pytest_tier0_tests: "-m tier0" + pytest_tier1_tests: "-m 'tier1 and not tier2'" + pytest_run_command: "PYTHONPATH=../../src/lib389 {{ pytest }} {{ pytest_args }}" + artifacts: ./artifacts + pre_tasks: + - name: Install policycoreutils + action: > + {{ ansible_pkg_mgr }} name=policycoreutils-python-utils state=present + tags: always + ignore_errors: yes + - name: Prelabel non-secure ports + tags: always + shell: "semanage port -a -t ldap_port_t -p tcp 38900-39299" + ignore_errors: yes + - name: Prelabel secure ports + tags: always + shell: "semanage port -a -t ldap_port_t -p tcp 63600-63999" + ignore_errors: yes + roles: + - role: standard-test-basic + tags: + - classic + repositories: + - repo: "{{ ds_repo_url }}" + dest: "{{ ds_repo_dir }}" + version: "{{ ds_repo_version }}" + tests: + - tier0: + dir: "{{ ds_tests }}" + run: "{{ pytest_run_command }} {{ pytest_tier0_tests }}" + - tier1: + dir: "{{ ds_tests }}" + run: "{{ pytest_run_command }} {{ pytest_tier1_tests }}" + required_packages: + - python3-pytest + - python3-distro + - 389-ds-base + - 389-ds-base-snmp + - 389-ds-base-legacy-tools + - cracklib-dicts