[freeipa PR#1771][opened] Fix order of commands in test for removing topology segments
by pvoborni
URL: https://github.com/freeipa/freeipa/pull/1771
Author: pvoborni
Title: #1771: Fix order of commands in test for removing topology segments
Action: opened
PR body:
"""
this is an alternative approach to PR #1766
test_topology_updated_on_replica_install_remove from the beginning used
invalid sequence of commands for removing a replica.
Proper order is:
master$ ipa server-del $REPLICA
replica$ ipa-server-install --uninstall
Alternatively usage of `ipa-replica-manage del $replica` instead of
`ipa server-del $replica` is possible. In essence ipa-replica-manage
calls the server-del command.
At some point there was a plan to achieve uninstalation only through
`ipa-server-install --uninstall` but that was never achieved to this
date.
This change also removes the ugly wrapper which makes test collection
fail if no environment config is provided (i.e. replicas cannot be
indexed).
$ pytest --collect-test ipatests/test_integration
https://pagure.io/freeipa/issue/6250
"""
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/1771/head:pr1771
git checkout pr1771
5 years, 11 months