summaryrefslogtreecommitdiffstats
path: root/.test_runner_config.yaml
diff options
context:
space:
mode:
authorMartin Babinsky <mbabinsk@redhat.com>2016-11-30 10:30:04 +0100
committerMartin Basti <mbasti@redhat.com>2016-12-07 10:32:44 +0100
commit5ecaea6bc4f49c2665597ca38fc52f4fae8a9d24 (patch)
tree0f16f286b5cc9272035343c56f1ef416314be88d /.test_runner_config.yaml
parentdfbdb5323863e6c3d681c1b33b1eb9d2efefd6c7 (diff)
downloadfreeipa-5ecaea6bc4f49c2665597ca38fc52f4fae8a9d24.tar.gz
freeipa-5ecaea6bc4f49c2665597ca38fc52f4fae8a9d24.tar.xz
freeipa-5ecaea6bc4f49c2665597ca38fc52f4fae8a9d24.zip
Configuration file for ipa-docker-test-runner
Prepare a configuration file for https://github.com/martbab/ipa-docker-test-runner. The latest freeipa-fedora-test-runner Docker image (F25 as of time of writing this message) will be used to run tests. Some of them will be purposefuly excluded from the test suite, namely: * test_integration and test_webui: for obvious reasons, CI tests require complicated multi-host setup which is currently not achievable in Travis CI * test_ipapython/test_keyring: Docker can not cope with storing and retrieving secrets from Kernel keyring, that is a known issue * test_xmlrpc/test_dns_plugin.py:test_dns_soa: There are 2-3 non-deterministic failures in this suite in Travis CI, this suite was disabled until the root cause is discovered and fixed/workarounded Reviewed-By: Stanislav Laznicka <slaznick@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com>
Diffstat (limited to '.test_runner_config.yaml')
-rw-r--r--.test_runner_config.yaml50
1 files changed, 50 insertions, 0 deletions
diff --git a/.test_runner_config.yaml b/.test_runner_config.yaml
new file mode 100644
index 000000000..f1205e8c0
--- /dev/null
+++ b/.test_runner_config.yaml
@@ -0,0 +1,50 @@
+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:
+ - make V=0 ${make_target}
+ builddep:
+ - rm -rf /var/cache/dnf/*
+ - "dnf makecache fast || :"
+ - dnf builddep -y ${builddep_opts} --spec freeipa.spec.in --best --allowerasing
+ cleanup:
+ - chown -R ${uid}:${gid} ${container_working_dir}
+ configure:
+ - ./autogen.sh
+ install_packages:
+ - dnf install -y ${container_working_dir}/dist/rpms/*.rpm --best --allowerasing
+ install_server:
+ - ipa-server-install -U --domain ${server_domain} --realm ${server_realm} -p ${server_password}
+ -a ${server_password} --setup-dns --auto-forwarders
+ - ipa-kra-install -p ${server_password}
+ lint:
+ - make V=0 lint
+ 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}
+tests:
+ ignore:
+ - test_integration
+ - test_webui
+ - test_ipapython/test_keyring.py
+ verbose: true