2020-10-14 19:18:11 +00:00
|
|
|
---
|
|
|
|
- hosts: localhost
|
|
|
|
remote_user: root
|
|
|
|
vars:
|
2021-04-14 14:28:13 +00:00
|
|
|
ds_repo_url: https://github.com/389ds/389-ds-base.git
|
2020-10-14 19:18:11 +00:00
|
|
|
ds_repo_dir: ds
|
2023-05-18 19:02:20 +00:00
|
|
|
ds_repo_version: 389-ds-base-2.3
|
2020-10-14 19:18:11 +00:00
|
|
|
ds_tests: "{{ ds_repo_dir }}/dirsrvtests/tests"
|
2021-04-14 14:28:13 +00:00
|
|
|
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 }}"
|
2020-10-14 19:18:11 +00:00
|
|
|
artifacts: ./artifacts
|
2021-04-14 14:28:13 +00:00
|
|
|
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
|
2021-11-25 20:00:42 +00:00
|
|
|
- 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
|
2020-10-14 19:18:11 +00:00
|
|
|
roles:
|
|
|
|
- role: standard-test-basic
|
|
|
|
tags:
|
|
|
|
- classic
|
|
|
|
repositories:
|
|
|
|
- repo: "{{ ds_repo_url }}"
|
|
|
|
dest: "{{ ds_repo_dir }}"
|
2021-04-14 14:28:13 +00:00
|
|
|
version: "{{ ds_repo_version }}"
|
2020-10-14 19:18:11 +00:00
|
|
|
tests:
|
2021-04-14 14:28:13 +00:00
|
|
|
- tier0:
|
2020-10-14 19:18:11 +00:00
|
|
|
dir: "{{ ds_tests }}"
|
2021-04-14 14:28:13 +00:00
|
|
|
run: "{{ pytest_run_command }} {{ pytest_tier0_tests }}"
|
|
|
|
- tier1:
|
|
|
|
dir: "{{ ds_tests }}"
|
|
|
|
run: "{{ pytest_run_command }} {{ pytest_tier1_tests }}"
|
2020-10-14 19:18:11 +00:00
|
|
|
required_packages:
|
|
|
|
- python3-pytest
|
2021-04-14 14:28:13 +00:00
|
|
|
- python3-distro
|
2020-10-14 19:18:11 +00:00
|
|
|
- 389-ds-base
|
|
|
|
- 389-ds-base-snmp
|
2021-04-14 14:28:13 +00:00
|
|
|
- cracklib-dicts
|