2020-10-30 14:09:58 +00:00
|
|
|
- hosts: localhost
|
|
|
|
tags:
|
|
|
|
- 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: Start pcsd
|
|
|
|
systemd:
|
|
|
|
state: started
|
2021-06-11 15:06:50 +00:00
|
|
|
name: pcsd
|
2020-10-30 14:09:58 +00:00
|
|
|
daemon_reload: yes
|
|
|
|
|
|
|
|
roles:
|
|
|
|
# roles documentation:
|
|
|
|
# https://pagure.io/standard-test-roles/blob/master/f/roles/standard-test-source
|
|
|
|
- role: standard-test-basic
|
|
|
|
required_packages:
|
|
|
|
- autoconf
|
|
|
|
- automake
|
|
|
|
- make
|
|
|
|
- rpm-build
|
2021-06-11 15:06:50 +00:00
|
|
|
- ruby-devel
|
2021-02-25 14:56:52 +00:00
|
|
|
- git-core
|
2020-10-30 14:09:58 +00:00
|
|
|
- booth-site
|
|
|
|
- fence-agents-apc
|
|
|
|
- fence-agents-ipmilan
|
|
|
|
- fence-agents-scsi
|
|
|
|
- fence-virt
|
2021-06-16 11:22:01 +00:00
|
|
|
- fontconfig
|
2021-03-05 08:40:23 +00:00
|
|
|
- openssl
|
2020-10-30 14:09:58 +00:00
|
|
|
- pcs
|
|
|
|
- pcs-snmp
|
2021-06-15 15:15:59 +00:00
|
|
|
- python3-pip
|
2021-06-11 15:06:50 +00:00
|
|
|
- python3-setuptools_scm
|
|
|
|
- python3-wheel
|
2021-06-16 11:22:01 +00:00
|
|
|
- rubygem-json
|
2021-06-11 15:06:50 +00:00
|
|
|
- rubygem-test-unit
|
|
|
|
- wget
|
2020-10-30 14:09:58 +00:00
|
|
|
required_services:
|
2021-06-11 15:06:50 +00:00
|
|
|
- pcsd
|
2020-10-30 14:09:58 +00:00
|
|
|
tests:
|
|
|
|
# dir: . -> dot means tests dir in distgit
|
|
|
|
- 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
|
2021-06-11 15:06:50 +00:00
|
|
|
- build_sources:
|
|
|
|
dir: ./source
|
|
|
|
run: "export PYTHONPATH=/usr/lib64/pcs/pcs_bundled/packages/; export GEM_HOME=/usr/lib64/pcsd/vendor/bundle/; ./autogen.sh && ./configure"
|
2020-10-30 14:09:58 +00:00
|
|
|
- remove_sources:
|
|
|
|
dir: ./source
|
|
|
|
run: rm -rfv pcs
|
|
|
|
- run_upstream_tier0_tests:
|
|
|
|
dir: ./source
|
2021-06-11 15:06:50 +00:00
|
|
|
run: pcs_test/suite --tier0 -v --vanilla --installed
|
2020-10-30 14:09:58 +00:00
|
|
|
- run_upstream_tier1_tests:
|
|
|
|
dir: ./source
|
2021-06-11 15:06:50 +00:00
|
|
|
run: pcs_test/suite --tier1 -v --vanilla --installed
|
2020-10-30 14:09:58 +00:00
|
|
|
- run_smoke_tests:
|
|
|
|
dir: ./source
|
|
|
|
run: pcs_test/smoke.sh
|