Statistics
| Branch: | Tag: | Revision:

root / test @ d8784f7d

Name Size
  data
  hs
  py

Latest revisions

# Date Author Comment
d8784f7d 01/25/2013 04:07 pm Michael Hanselmann

hv_xen: Fix issues with migration, add tests

Commit 3d942d8 broke instance migration (“self._cmd” was set to None).
This patch fixes that issue, refactors “MigrateInstance” for testing and
adds those tests.

Signed-off-by: Michael Hanselmann <>...

2edc1c79 01/25/2013 12:58 pm Michael Hanselmann

hv_xen: Test various forms of getting instance/node info

Test functions for retrieving instance and node information.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Helga Velroyen <>

664b392d 01/25/2013 12:58 pm Michael Hanselmann

hv_xen: Test stopping an instance

Test stopping an instance, and ensure the configuration file still
exists after an instance couldn't be stopped.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Helga Velroyen <>

396672cd 01/25/2013 12:58 pm Michael Hanselmann

hv_xen: Test starting an instance

Test starting an instance in normal mode, in paused mode, and in case of
failure.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Helga Velroyen <>

57270b2d 01/25/2013 12:58 pm Michael Hanselmann

hv_xen: Test reading non-existent config file

Check whether doing so raises an exception.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Helga Velroyen <>

b666f213 01/25/2013 12:58 pm Michael Hanselmann

hv_xen: Test verifying hypervisor

Test success and failure.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Helga Velroyen <>

7610d884 01/25/2013 12:58 pm Michael Hanselmann

hv_xen: Test removing config from "auto" directory

Test whether any existing configuration file named after the instance is
removed from Xen's “auto” directory.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Helga Velroyen <>

74a50c46 01/25/2013 12:58 pm Michael Hanselmann

Establish base for testing Xen hypervisor abstraction

There are two separate Xen hypervisors (HVM and PVM), as well as two
different Xen commands (xl and xm). This already provides four different
combinations and future changes might bring even more. For this reason...

64a66bd2 01/25/2013 12:58 pm Michael Hanselmann

hv_xen: Test errors while writing config file

Test error handling while writing Xen configuration files.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Helga Velroyen <>

1dee2041 01/25/2013 12:58 pm Michael Hanselmann

hv_xen: Test using unknown Xen command

This tests “unknown” values of “constants.XEN_CMD”.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Helga Velroyen <>

View revisions

Also available in: Atom