mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-22 05:01:25 +00:00
Always upload logs at end of domain_controller test
We often want to see the logs from the FreeIPA deployment test even if that test passes - to look for some detail that doesn't cause a test to fail, for instance, or if one of the *client* tests failed for a reason that involves the server. So, let's do that.
This commit is contained in:
parent
53f0acea50
commit
60913a20e0
@ -25,6 +25,10 @@ sub run {
|
|||||||
assert_script_run 'rolectl decommission domaincontroller/domain.local', 300;
|
assert_script_run 'rolectl decommission domaincontroller/domain.local', 300;
|
||||||
# check role is decommissioned
|
# check role is decommissioned
|
||||||
validate_script_output 'rolectl list instances', sub { $_ eq "" };
|
validate_script_output 'rolectl list instances', sub { $_ eq "" };
|
||||||
|
# run post-fail hook to upload logs - even when this test passes
|
||||||
|
# there are often cases where we need to see the logs (e.g. client
|
||||||
|
# test failed due to server issue)
|
||||||
|
$self->post_fail_hook();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user