idm/tests/tests.yml
Rafael Guterres Jeffman 5c150f7be2 Don't use 'warn: false' parameter with Ansible shell builtin.
The 'warn' parameter of Ansible 'shell' and 'command' builtin plugins
was deprecated in Ansible 2.11 and removed in Ansible 2.14. This patch
fixes 'baseos-ci.redhat-module.tier0.functional' tests that were failing
due to the use of the parameter on newer versions of Ansible.
2023-06-20 10:32:01 -03:00

43 lines
1.3 KiB
YAML

---
- hosts: localhost
tags:
- classic
pre_tasks:
- name: Enable brewroot repository (so we have all latest packages available)
command: dnf config-manager --set-enabled baseos-ci-tag-repository
- name: Enable IDM module
command: dnf module enable -y idm:DL1
- name: Install IDM packages
command: dnf module install -y idm:DL1/server idm:DL1/dns
- name: Get Custodia version
command: rpm -q --qf '%{VERSION}' custodia
register: custodia_version
roles:
- role: standard-test-basic
required_packages:
- sudo
# pytest for Custodia testing
- python3-pytest
repositories:
- repo: "https://github.com/latchset/custodia.git"
dest: "custodia_git"
# tag name is e.g. "v0.6.0"
version: "v{{ custodia_version.stdout }}"
tests:
- sanity
#- custodia_setup:
# dir: "custodia_git"
# run: "cd tests/ca && ./custodia-ca.sh"
#- custodia:
# dir: "custodia_git"
# run: "pytest-3 -k 'not test_client_no_client_cert' tests/"
- python_qrcode:
dir: "python-qrcode"
run: "./test_ipa_otptoken.py"
- python_yubico:
dir: "python-yubico"
run: "./test_ipa_yubikey.py"
- pyusb:
dir: "pyusb"
run: "./test_ipa_yubico_api.py"