diff --git a/tests/role_deploy_domain_controller_check.pm b/tests/role_deploy_domain_controller_check.pm index c333efcc..d9656556 100644 --- a/tests/role_deploy_domain_controller_check.pm +++ b/tests/role_deploy_domain_controller_check.pm @@ -26,6 +26,11 @@ sub run { # there are often cases where we need to see the logs (e.g. client # test failed due to server issue) $self->post_fail_hook(); + if (get_var("FREEIPA_REPLICA_MASTER")) { + # delete the replica, otherwise we may get errors at uninstall + assert_script_run 'echo "monkeys123" | kinit admin'; + assert_script_run 'ipa server-del ipa003.test.openqa.fedoraproject.org'; + } assert_script_run 'systemctl stop ipa.service'; # check server is stopped assert_script_run '! systemctl is-active ipa.service';