585bc52 Simplify and improve tests

Authored and Committed by cheimes 5 years ago
    Simplify and improve tests
    
    Move tests for DNS and roles into helper methods to make them reusable.
    
    Fixes: https://pagure.io/freeipa/issue/7892
    Signed-off-by: Christian Heimes <cheimes@redhat.com>
    Reviewed-By: Thomas Woerner <twoerner@redhat.com>
    Reviewed-By: Francois Cami <fcami@redhat.com>