aca9750 Added a check while removing 'cert_dir'. The teardown method is called even if all the tests are skipped since the required PKI version is not present. The teardown is trying to remove a non-existent directory.

2 files Authored by Sumedh Sidhaye 2 years ago, Committed by frenaud 2 years ago,
    Added a check while removing 'cert_dir'. The teardown method is called even if all the tests are skipped since the required PKI version is not present. The teardown is trying to remove a non-existent directory.
    
    Currently the cert_dir attribute is only present if IPA installation was
    done. If IPA was not installed the attribute does not exist.
    In order that the uninstall code finds the attribute a class attribute
    is added.
    
    Pagure Issue: https://pagure.io/freeipa/issue/9179
    
    Signed-off-by: Sumedh Sidhaye <ssidhaye@redhat.com>
    Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>