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>
message