From d5c9605525a712eede4b148bad279814da2002c9 Mon Sep 17 00:00:00 2001 From: Anael Beutot Date: Tue, 22 May 2012 16:25:27 +0200 Subject: [PATCH] Added test scenario to documentation. --- docs/dev/source/index.rst | 1 + docs/dev/source/test.rst | 60 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 docs/dev/source/test.rst diff --git a/docs/dev/source/index.rst b/docs/dev/source/index.rst index e2acf6a..a9bb050 100644 --- a/docs/dev/source/index.rst +++ b/docs/dev/source/index.rst @@ -14,6 +14,7 @@ Contents: architecture host hypervisor + test Indices and tables ================== diff --git a/docs/dev/source/test.rst b/docs/dev/source/test.rst new file mode 100644 index 0000000..203b9bd --- /dev/null +++ b/docs/dev/source/test.rst @@ -0,0 +1,60 @@ +Test scenario for cc-node +========================= + +Host +---- + +* Check all tags +* Check handlers: shutdown, execute_command + + +Hypervisor +---------- + +* Check all tags +* Check handlers: vm_start, vm_stop (+destroy), vm_suspend, vm_resume, vm_undefine, + vm_export, vm_define +* Check statuses of VMs change +* Check objects are registered/unregistered to the cc-server when VMs + disapear/appear. + +Error handling +.............. + +Behaviour when libvirt connection is lost: + + * libvirtstatus tag is updated to disconnected + * domains are unregistered + * some tags (relative to storage pools are unregistered) + * handlers relative to VMs are removed + +Behaviour when libvirt connection is retrieved: + + * libvirtstatus tag is updated to connected + * domains are registered + * tags (relative to storage pools) are registered + * handlers relative to VMs are added + + +CC-server +--------- + +Error handling +.............. + +Behaviour when connection is lost: + + * Nothing changes + +Behaviour when connection is retrieved: + + * Authentify + * Check role returned and load another main plugin is role changed, else + keeps current runnning plugin + * Register tags and objects + + +Error handling +-------------- + +* Test with libvirt/cc-server failures multiple configuration -- GitLab