qemumonitorjsontest: Refactor chardev hotplug testing
qemumonitorjsontest: Refactor chardev hotplug testing

The main objective of this patch is to use a proper instance of
virDomainChrSourceDef allocated with the private data.

To achieve this the test cases are grouped into blocks by how much they
fill in the chardev definition. Some test cases are moved around so
that the resulting sequence doesn't need extra clearing.

Signed-off-by: Peter Krempa <2cf5c04c61aa466e4a47bfedc747d17279c72ffc@redhat.com>
Reviewed-by: Ján Tomko <4cab11cfb98d3c937327354a78eb07dbb6ee2bc6@redhat.com>

jfehlig/libvirt,olafhering/libvirt,crobinso/libvirt,olafhering/libvirt,crobinso/libvirt,libvirt/libvirt,jfehlig/libvirt,zippy2/libvirt,olafhering/libvirt,libvirt/libvirt,zippy2/libvirt,zippy2/libvirt,zippy2/libvirt,jfehlig/libvirt,crobinso/libvirt,crobinso/libvirt,libvirt/libvirt,libvirt/libvirt,jfehlig/libvirt,olafhering/libvirt