16b3788 ipatests: Refactor test_check_otpd_after_idle_timeout

1 file Authored by amore 2 years ago, Committed by frenaud 2 years ago,
    ipatests: Refactor test_check_otpd_after_idle_timeout
    
    Use whole date when calling journalctl --since
    ipa-otpd don't flush its logs to syslog immediately,
    so check with run_repeatedly.
    Also list failed units when ldap connection is
    timed out.
    
    Related: https://pagure.io/freeipa/issue/6587
    
    Signed-off-by: Anuja More <amore@redhat.com>
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>
    Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>