Signed-off-by: Yu Mingfei <[email protected]>
---
 libvirt/tests/cfg/virsh_ttyconsole.cfg | 40 ++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 libvirt/tests/cfg/virsh_ttyconsole.cfg

diff --git a/libvirt/tests/cfg/virsh_ttyconsole.cfg 
b/libvirt/tests/cfg/virsh_ttyconsole.cfg
new file mode 100644
index 0000000..e872fed
--- /dev/null
+++ b/libvirt/tests/cfg/virsh_ttyconsole.cfg
@@ -0,0 +1,40 @@
+- virsh_ttyconsole:
+    type = virsh_ttyconsole
+    # xml file need to be configured, do not start vm
+    start_vm = no
+    virsh_ttyconsole_option_suffix = ""
+    variants:
+        - normal_test:
+            status_error = no
+            variants:
+                - domname:
+                    virsh_ttyconsole_vm_ref = domname
+                - domuuid:
+                    virsh_ttyconsole_vm_ref = domuuid
+                - domid:
+                    virsh_ttyconsole_vm_ref = domid
+            variants:
+                - vm_running:
+                    vm_state = running
+                - vm_paused:
+                    vm_state = paused
+        - error_test:
+            status_error = yes
+            variants:
+                - invalid_option:
+                    variants:
+                        - none_domname:
+                            virsh_ttyconsole_vm_ref = ""
+                        - hex_domid:
+                            virsh_ttyconsole_vm_ref = hex_id
+                        - invalid_domid:
+                            virsh_ttyconsole_vm_ref = 9999
+                        - invalid_domuuid:
+                            virsh_ttyconsole_vm_ref = 
99999999-9999-9999-9999-999999999999
+                        - extra_parameter:
+                            virsh_ttyconsole_vm_ref = domname
+                            virsh_ttyconsole_option_suffix = xyz
+                - special_operation:
+                    variants:
+                        - vm_shutoff:
+                            vm_state = shutoff
-- 
1.7.11.7

_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel

Reply via email to