[libvirt] [PATCH 09/18] event-test: Use switch instead of if/else if chains for lifecycle event translation