44e7342 Move execution of ipa-healthcheck to a separate function

Authored and Committed by rcritten 4 years ago
    Move execution of ipa-healthcheck to a separate function
    
    This removes a lot of duplication and simplifies the test
    code.
    
    It returns the command returncode and the JSON data (if any)
    
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>
    Reviewed-By: Francois Cami <fcami@redhat.com>