2017-01-03 05:47:48 -06:00
|
|
|
#
|
|
|
|
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
|
|
|
|
#
|
|
|
|
|
|
|
|
# Configuration file for the test runner used in Travis CI
|
|
|
|
|
2016-11-30 03:30:04 -06:00
|
|
|
container:
|
|
|
|
detach: true
|
|
|
|
hostname: master.ipa.test
|
|
|
|
working_dir: /freeipa
|
|
|
|
host:
|
|
|
|
binds:
|
|
|
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
|
|
|
- /dev/urandom:/dev/random:ro
|
|
|
|
privileged: true
|
|
|
|
security_opt:
|
|
|
|
- label:disable
|
|
|
|
tmpfs:
|
|
|
|
- /tmp
|
|
|
|
- /run
|
|
|
|
server:
|
|
|
|
domain: ipa.test
|
|
|
|
password: Secret123
|
|
|
|
realm: IPA.TEST
|
|
|
|
steps:
|
|
|
|
build:
|
2017-11-21 04:08:55 -06:00
|
|
|
- make V=0 ${make_target} LOG_COMPILE='gdb -return-child-result -ex run -ex "thread apply all bt" -ex "quit" --args'
|
2016-11-30 03:30:04 -06:00
|
|
|
builddep:
|
|
|
|
- rm -rf /var/cache/dnf/*
|
2017-08-28 05:49:02 -05:00
|
|
|
- "dnf makecache || :"
|
2018-07-17 06:24:55 -05:00
|
|
|
- dnf builddep -y ${builddep_opts} -D "with_wheels 1" --spec freeipa.spec.in --best --allowerasing --setopt=install_weak_deps=False
|
2017-11-21 04:08:55 -06:00
|
|
|
- dnf install -y gdb
|
2018-10-23 05:50:06 -05:00
|
|
|
- dnf update -y annobin
|
2016-11-30 03:30:04 -06:00
|
|
|
cleanup:
|
|
|
|
- chown -R ${uid}:${gid} ${container_working_dir}
|
2017-02-08 03:38:57 -06:00
|
|
|
- journalctl -b --no-pager > systemd_journal.log
|
|
|
|
- >
|
|
|
|
tar --ignore-failed-read -cvf ${container_working_dir}/var_log.tar
|
|
|
|
/var/log/dirsrv
|
|
|
|
/var/log/httpd
|
|
|
|
/var/log/ipa*
|
|
|
|
/var/log/krb5kdc.log
|
|
|
|
/var/log/pki
|
|
|
|
systemd_journal.log
|
2017-11-21 04:08:55 -06:00
|
|
|
`find daemons -name '*.log' -print`
|
2017-02-08 03:38:57 -06:00
|
|
|
- chown ${uid}:${gid} ${container_working_dir}/var_log.tar
|
2018-01-16 07:57:07 -06:00
|
|
|
- ls -laZ /etc/dirsrv/slapd-*/ /etc/httpd/alias/ /etc/pki/pki-tomcat/alias/ || true
|
2016-11-30 03:30:04 -06:00
|
|
|
configure:
|
|
|
|
- ./autogen.sh
|
|
|
|
install_packages:
|
2018-06-29 16:44:42 -05:00
|
|
|
- sed -i 's/%_install_langs \(.*\)/\0:fr/g' /etc/rpm/macros.image-language-conf
|
2016-11-30 03:30:04 -06:00
|
|
|
- dnf install -y ${container_working_dir}/dist/rpms/*.rpm --best --allowerasing
|
2018-12-13 06:24:21 -06:00
|
|
|
# nss-p11-kit causes OpenLDAP's TLSMC patch to block
|
|
|
|
- rm -f /etc/crypto-policies/local.d/nss-p11-kit.config && update-crypto-policies
|
2016-11-30 03:30:04 -06:00
|
|
|
install_server:
|
|
|
|
- ipa-server-install -U --domain ${server_domain} --realm ${server_realm} -p ${server_password}
|
2017-03-02 10:08:59 -06:00
|
|
|
-a ${server_password} --setup-dns --setup-kra --auto-forwarders
|
2017-03-10 03:46:45 -06:00
|
|
|
- sed -ri "s/mode = production/mode = development/" /etc/ipa/default.conf
|
|
|
|
- systemctl restart httpd.service
|
2016-11-30 03:30:04 -06:00
|
|
|
lint:
|
2018-09-26 13:50:32 -05:00
|
|
|
- make V=0 lint
|
2017-11-22 03:15:08 -06:00
|
|
|
webui_unit:
|
|
|
|
- dnf install -y npm
|
|
|
|
- cd ${container_working_dir}/install/ui/js/libs && make
|
|
|
|
- cd ${container_working_dir}/install/ui && npm install
|
2018-03-15 17:26:35 -05:00
|
|
|
- cd ${container_working_dir}/install/ui && node_modules/grunt/bin/grunt --verbose test
|
2017-11-16 05:27:16 -06:00
|
|
|
tox:
|
|
|
|
# just run one pylint and one Python 3 target (time/coverage trade-off)
|
2018-08-23 07:54:28 -05:00
|
|
|
- tox -e py36,pypi,pylint3
|
2016-11-30 03:30:04 -06:00
|
|
|
prepare_tests:
|
|
|
|
- echo ${server_password} | kinit admin && ipa ping
|
|
|
|
- cp -r /etc/ipa/* ~/.ipa/
|
|
|
|
- echo ${server_password} > ~/.ipa/.dmpw
|
|
|
|
- echo 'wait_for_dns=5' >> ~/.ipa/default.conf
|
|
|
|
run_tests:
|
2017-03-20 06:12:50 -05:00
|
|
|
- ipa-test-config --help
|
|
|
|
- ipa-test-task --help
|
2016-11-30 03:30:04 -06:00
|
|
|
- ipa-run-tests ${tests_ignore} -k-test_dns_soa ${tests_verbose} ${path}
|
2017-06-20 08:35:29 -05:00
|
|
|
- '! grep -n -C5 BytesWarning /var/log/httpd/error_log'
|
2017-05-16 07:17:19 -05:00
|
|
|
- ipa-server-install --uninstall -U
|
2018-02-07 07:22:06 -06:00
|
|
|
# second uninstall to verify that --uninstall without installation works
|
|
|
|
- ipa-server-install --uninstall -U
|
2016-11-30 03:30:04 -06:00
|
|
|
tests:
|
|
|
|
ignore:
|
|
|
|
- test_integration
|
|
|
|
- test_webui
|
|
|
|
- test_ipapython/test_keyring.py
|
|
|
|
verbose: true
|