summaryrefslogtreecommitdiffstats
path: root/.test_runner_config.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.test_runner_config.yaml')
-rw-r--r--.test_runner_config.yaml84
1 files changed, 84 insertions, 0 deletions
diff --git a/.test_runner_config.yaml b/.test_runner_config.yaml
new file mode 100644
index 000000000..1ca5a72c2
--- /dev/null
+++ b/.test_runner_config.yaml
@@ -0,0 +1,84 @@
+# Authors:
+# Dinesh Prasanth M K <dmoluguw@redhat.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Copyright (C) 2017 Red Hat, Inc.
+# All rights reserved.
+#
+
+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: Secret.123
+ realm: IPA.TEST
+steps:
+ build:
+ - echo "Skipping Build. Nothing to do..."
+ builddep:
+ - rm -rf /var/cache/dnf/*
+ - "dnf makecache fast || :"
+ cleanup:
+ - chown -R ${uid}:${gid} ${container_working_dir}
+ - 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
+ - chown ${uid}:${gid} ${container_working_dir}/var_log.tar
+ configure:
+ - dnf repolist
+ install_packages:
+ - echo "Installing recently built dogtag RPMs..."
+ - find /freeipa/dogtag_rpms/ -name '*.rpm' -and -not -name '*debuginfo*' | xargs dnf install -y --best --allowerasing
+ - rpm -qa freeipa-*
+ - rpm -qa pki-*
+ install_server:
+ - echo "Installing ipa-server..."
+ - ipa-server-install -U --domain ${server_domain} --realm ${server_realm} -p ${server_password}
+ -a ${server_password} --setup-dns --setup-kra --auto-forwarders
+ - systemctl restart httpd.service
+ lint:
+ - echo "Skipping lint. Nothing to do here..."
+ 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:
+ - ipa-run-tests ${tests_ignore} -k-test_dns_soa ${tests_verbose} ${path}
+ - ipa-server-install --uninstall -U
+tests:
+ ignore:
+ - test_integration
+ - test_webui
+ - test_ipapython/test_keyring.py
+ verbose: true