46a4e93 ipatest: fix test_upgrade.py::TestUpgrade::()::test_kra_detection

Authored and Committed by frenaud 3 years ago
    ipatest: fix test_upgrade.py::TestUpgrade::()::test_kra_detection
    
    Modify the test scenario in order to be independant from PKI
    behavior. The aim of the test is to ensure that the KRA
    detection is not based on the presence of the directory
    /var/lib/pki/pki-tomcat/kra/.
    Previously the test was calling ipa-server-upgrade but this cmd
    may fail even with the kra detection fix because of an issue in
    pki (https://github.com/dogtagpki/pki/issues/3397).
    Instead of exercising the whole ipa-server-upgrade command, the
    test now checks the output of the API kra.is_installed() to validate
    KRA detection mechanism.
    
    Fixes: https://pagure.io/freeipa/issue/8653
    Related: https://pagure.io/freeipa/issue/8596
    
    Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
    Reviewed-By: Francois Cami <fcami@redhat.com>
    Reviewed-By: Francois Cami <fcami@redhat.com>