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

diff --git a/libvirt/tests/cfg/virsh_net_define_undefine.cfg 
b/libvirt/tests/cfg/virsh_net_define_undefine.cfg
new file mode 100644
index 0000000..52f9814
--- /dev/null
+++ b/libvirt/tests/cfg/virsh_net_define_undefine.cfg
@@ -0,0 +1,49 @@
+- virsh_net_define_undefine:
+    type = virsh_net_define_undefine
+    vms = ""
+    main_vm = ""
+    # net_(un)define_options_ref is for special handling of option:
+    # "correct_arg": a file for net-define or a name for net-undefine
+    # "no_option": nothing passed to command
+    # "not_exist_option": a not exist file or network
+    net_define_undefine_options_ref = "correct_arg"
+    # test type is a transaction or just for net-(un)define
+    net_define_undefine_trans_ref = "trans"
+    net_define_undefine_remove_existing = "yes"
+    variants:
+        - normal_test:
+            status_error = "no"
+            variants:
+                - new_network:
+                    net_define_undefine_net_name = "foobar"
+                - default_network:
+                    net_define_undefine_net_name = "default"
+                    net_define_undefine_net_uuid = ""
+                #TODO: Support Route network
+        - error_test:
+            status_error = "yes"
+            variants:
+                - invalid_network:
+                    net_define_undefine_trans_ref = "define"
+                    # For net-define test only
+                    variants:
+                        - invalid_uuid:
+                            net_define_undefine_net_uuid = "1-2-3-4-5-6"
+                        - invalid_netname:
+                            net_define_undefine_net_name = 
"!@#$%^&*()[]{}:;'',.?/\\|`~-=_+"
+                - invalid_options:
+                    variants:
+                        - none_option:
+                            net_define_undefine_options_ref = "no_option"
+                        - not_exist_option:
+                            net_define_undefine_options_ref = 
"not_exist_option"
+                        - additional_arg:
+                            net_define_undefine_extra = "xyz"
+                        - additional_option:
+                            net_define_undefine_extra = "--xyz"
+                    variants:
+                        - net_define:
+                            net_define_undefine_trans_ref = "define"
+                        - net_undefine:
+                            # define network ok for undefine test
+                            net_define_undefine_trans_ref = "undefine"
-- 
1.7.11.7

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

Reply via email to