From c24e3fa9a185cb5b3a992af193a32b8402212642 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 26 Aug 2024 15:34:50 -0700 Subject: [PATCH] freeipa replica: allow ipa server-del to fail If it fails, the replica is probably already gone from the config so things are fine. Signed-off-by: Adam Williamson --- tests/role_deploy_domain_controller_check.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/role_deploy_domain_controller_check.pm b/tests/role_deploy_domain_controller_check.pm index d9656556..a4d7ca53 100644 --- a/tests/role_deploy_domain_controller_check.pm +++ b/tests/role_deploy_domain_controller_check.pm @@ -27,9 +27,10 @@ sub run { # 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 + # delete the replica if it's still there, 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'; + script_run 'ipa server-del ipa003.test.openqa.fedoraproject.org'; } assert_script_run 'systemctl stop ipa.service'; # check server is stopped