Update gating tests definitions
Resolves: Bug 1949549 - Update gating tests definitions for 389-ds-base
This commit is contained in:
parent
7238d66e39
commit
92db255b72
@ -2,13 +2,30 @@
|
|||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
remote_user: root
|
remote_user: root
|
||||||
vars:
|
vars:
|
||||||
ds_repo_url: https://pagure.io/389-ds-base.git
|
ds_repo_url: https://github.com/389ds/389-ds-base.git
|
||||||
ds_repo_dir: ds
|
ds_repo_dir: ds
|
||||||
|
ds_repo_version: master
|
||||||
ds_tests: "{{ ds_repo_dir }}/dirsrvtests/tests"
|
ds_tests: "{{ ds_repo_dir }}/dirsrvtests/tests"
|
||||||
pytest: py.test-3
|
pytest: "py.test-3"
|
||||||
pytest_args: "-v --continue-on-collection-errors"
|
pytest_args: "-v"
|
||||||
pytest_tests: "suites/basic"
|
pytest_tier0_tests: "-m tier0"
|
||||||
|
pytest_tier1_tests: "-m 'tier1 and not tier2'"
|
||||||
|
pytest_run_command: "PYTHONPATH=../../src/lib389 {{ pytest }} {{ pytest_args }}"
|
||||||
artifacts: ./artifacts
|
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:
|
roles:
|
||||||
- role: standard-test-basic
|
- role: standard-test-basic
|
||||||
tags:
|
tags:
|
||||||
@ -16,12 +33,17 @@
|
|||||||
repositories:
|
repositories:
|
||||||
- repo: "{{ ds_repo_url }}"
|
- repo: "{{ ds_repo_url }}"
|
||||||
dest: "{{ ds_repo_dir }}"
|
dest: "{{ ds_repo_dir }}"
|
||||||
|
version: "{{ ds_repo_version }}"
|
||||||
tests:
|
tests:
|
||||||
- basic:
|
- tier0:
|
||||||
dir: "{{ ds_tests }}"
|
dir: "{{ ds_tests }}"
|
||||||
run: "{{ pytest }} {{ pytest_args }} {{ pytest_tests }}"
|
run: "{{ pytest_run_command }} {{ pytest_tier0_tests }}"
|
||||||
|
- tier1:
|
||||||
|
dir: "{{ ds_tests }}"
|
||||||
|
run: "{{ pytest_run_command }} {{ pytest_tier1_tests }}"
|
||||||
required_packages:
|
required_packages:
|
||||||
- python3-pytest
|
- python3-pytest
|
||||||
|
- python3-distro
|
||||||
- 389-ds-base
|
- 389-ds-base
|
||||||
- 389-ds-base-snmp
|
- 389-ds-base-snmp
|
||||||
- 389-ds-base-legacy-tools
|
- cracklib-dicts
|
||||||
|
Loading…
Reference in New Issue
Block a user