gssproxy/tests/tests.yml
Julien Rische 09f4bc2732 Use openldap-servers from EPEL repo for testing
Resolves: rhbz#2187634
Signed-off-by: Julien Rische <jrische@redhat.com>
2023-04-18 11:07:08 +02:00

54 lines
1.4 KiB
YAML

---
- hosts: localhost
tags:
- atomic
- classic
vars:
# standard-test-basic directory for tests are relative to {{ tenv_workdir }}
tenv_workdir: /var/test
pre_tasks:
- import_role:
name: standard-test-source
vars:
fetch_only: True
- name: Copy files including source to test environment
synchronize:
src: "{{ playbook_dir }}/.."
dest: "{{ tenv_workdir }}"
mode: push
ssh_args: "-o UserKnownHostsFile=/dev/null"
- name: Add EPEL repo
yum_repository:
name: epel
file: epel
description: Extra Packages for Enterprise Linux $releasever - $basearch
baseurl: https://download.fedoraproject.org/pub/epel/$releasever/Everything/$basearch/
enabled: yes
gpgcheck: no
roles:
- role: standard-test-basic
required_packages:
- autoconf
- automake
- git
- gssproxy
- krb5-server-ldap
- krb5-workstation
- make
- nss_wrapper
- openldap-clients
- openldap-servers
- rpm-build
- socket_wrapper
tests:
- prepare-source:
dir: ./
run: rpmbuild -bp {{tenv_workdir}}/*.spec --nodeps --define "_sourcedir {{tenv_workdir}}" --define "_builddir {{tenv_workdir}}/source"
- flatten-source:
dir: ./
run: shopt -s dotglob; mv {{tenv_workdir}}/source/*/* {{tenv_workdir}}/source
- install-builddep:
dir: ./
run: dnf -y --nogpgcheck build-dep {{tenv_workdir}}/*.spec
- driver: