4991e46 sudo testcli: Use hand-crafted JSON for output so that the test CLI is usable in tests

Authored and Committed by jhrozek 5 years ago
    sudo testcli: Use hand-crafted JSON for output so that the test CLI is usable in tests
    
    The sudo testcli tool can be handy in tests, but currently its output is
    hard to process from a program. This patch makes the tool print an JSON
    output instead, which will make it more usable.
    
    Related:
    https://pagure.io/SSSD/sssd/issue/3596
    
    Reviewed-by: Pavel Březina <pbrezina@redhat.com>