domain: 050-transient-lifecycle.t: test shutdown

050-transient-lifecycle.t currently tests destroying of a transient domain. Extend this test to verify shutdown as well. Destroying and shutting down might cover different paths in a driver, e.g. in the bhyve driver 'destroy' destroys the domain directly, and 'shutdown' triggers an event within a domain which is handled in the monitor code.

Use 'wait_for_vm_to_boot()' to make sure the guest is ready to react on the shutdown request. This requires passing netmode "network" and fullos to generic_domain().

Unfortunate thing about this test is that if it fails, all subsequent domain tests will fail too because they will not be able to undefine a leftover transient domain. But that is not specific to the shutdown case, it's the same of the destroy one as well.

Signed-off-by: Roman Bogorodskiy bogorodskiy@gmail.com

Merge request reports

Loading
Loading