Installation#

To install prerequisites:

$ dnf install -y docker
$ systemctl start docker
$ dnf install -y freeipa-server freeipa-server-dns freeipa-server-trust-ad python-ipatests

To install ipa-docker-test-runner:

$ pip3 install git+https://github.com/freeipa/ipa-docker-test-runner

Configuration#

To generate sample configuration:

$ mkdir -p ~/.config/ipa-docker-test-runner
$ ipa-docker-test-runner sample-config

Running IPA Tests in Container#

$ ipa-docker-test-runner run-tests
$ ipa-docker-test-runner \
    -c $PKI_SRC_DIR/.test_runner_config.yaml \
    --developer-mode \
    --container-environment "PYTHON=/usr/bin/python" \
    --container-image dogtagpki/pki-ci:f27_106_46 \
    --git-repo $IPA_SRC_DIR \
    run-tests [test files...]

Troubleshooting#

To get the container ID:

$ docker ps

To access the container:

$ docker exec -ti ``\ `` /bin/bash

References#