URL:
https://github.com/freeipa/freeipa/pull/1766
Author: rcritten
Title: #1766: Change remove_segment to take a config object
Action: opened
PR body:
"""
This is to handle the case where there is no integration test
YAML provided where config.domains is an empty list.
https://pagure.io/freeipa/issue/7483
Note that I considered populating config with an empty set of domains and replicas but
that would have required much more code and IMHO been more fragile. Given there is only a
single caller to remove_segment I think this is fastest, safest route. If we end up with
more callers needing it we can revisit.
The use-case for this is to:
- Install IPA
- Install the test pkgs
- mkdir ~/.ipa
- ln -s /etc/ipa/default.conf ~/.ipa/default.conf
- ln -s /etc/ipa/ca.crt ~/.ipa/ca.crt
- kinit admin
- ipa-run-tests
The simplest possible way to execute the tests in IPA.
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/1766/head:pr1766
git checkout pr1766