diff --git a/.389-ds-base.metadata b/.389-ds-base.metadata new file mode 100644 index 0000000..7d572de --- /dev/null +++ b/.389-ds-base.metadata @@ -0,0 +1,2 @@ +e1146536caf20cdf178f8b9bca4f01be89dbcacb 389-ds-base-2.4.5.tar.bz2 +1c8f2d0dfbf39fa8cd86363bf3314351ab21f8d4 jemalloc-5.3.0.tar.bz2 diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/main.fmf b/main.fmf new file mode 100644 index 0000000..76d16bf --- /dev/null +++ b/main.fmf @@ -0,0 +1,17 @@ +/plan: + summary: Basic test suite + discover: + how: fmf + execute: + how: tmt + prepare: + - name: install required packages + how: install + package: [389-ds-base, git, pytest] + - name: clone repo + how: shell + script: git clone https://github.com/389ds/389-ds-base /root/ds +/test: + /upstream_basic: + test: pytest -v /root/ds/dirsrvtests/tests/suites/basic/basic_test.py + duration: 30m diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index 2b7226f..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,58 +0,0 @@ ---- -- hosts: localhost - remote_user: root - vars: - ds_repo_url: https://github.com/389ds/389-ds-base.git - ds_repo_dir: ds - ds_repo_version: 389-ds-base-2.3 - 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 - - name: Install pip - action: > - {{ ansible_pkg_mgr }} name=python3-pip state=present - tags: always - ignore_errors: yes - - name: Install slugify - tags: always - shell: "pip3 install slugify" - 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 - - cracklib-dicts