Hi~

I'm adding 47 new tests for virsh {at|de}tach-interface command.

    1)  attach-interface without vm name
    2)  detach-interface without vm name
    3)  attach-interface with vm id
    4)  detach-interface with vm id
    5)  attach-interface with hex vm id
    6)  detach-interface with hex vm id
    7)  attach-interface with invalid vm id
    8)  detach-interface with invalid vm id
    9)  attach-interface with correct vm name
    10) detach-interface with correct vm name
    11) attach-interface with vm name beginning with number
    12) detach-interface with vm name beginning with number
    13) attach-interface with vm name beginning with #
    14) detach-interface with vm name beginning with #
    15) attach-interface with vm name beginning with -
    16) detach-interface with vm name beginning with -
    17) attach-interface with vm suppend
    18) detach-interface with vm suppend
    19) attach-interface with libvirtd stop
    20) detach-interface with libvirtd stop
    21) attach-interface with vm uuid
    22) detach-interface with vm uuid
    23) attach-interface with invalid vm uuid
    24) detach-interface with invalid vm uuid
    25) attach-interface with vm shutdown
    26) detach-interface with vm shutdown
    27) attach-interface with invalid --type option
    28) detach-interface with invalid --type option
    29) attach-interface with invalid option xyz with mac address
    30) detach-interface with invalid option xyz with mac address
    31) attach-interface with invalid option --xyz with mac address
    32) detach-interface with invalid option --xyz with mac address
    33) detach-interface with invalid option xyz without mac address
    34) attach-interface with invalid source option
    35) attach-interface with vnet0(which already exists) --target option
    36) attach-interface with invalid mac address
    37) detach-interface with invalid mac address
    38) attach-interface twice with the same mac address
    39) detach-interface twice with the same mac address
    40) attach-interface with invalid --script option
    41) attach-interface 10 times
    42) attach-interface on remote host
    43) detach-interface on remote host
    44) attach-interface with --persistent option when vm is running
    45) detach-interface with --persistent option when vm is running
    46) attach-interface with --persistent option when vm is shut off
    47) detach-interface with --persistent option when vm is shut off


BTW, the virsh -c option test is implemented as following:
    1) login into a remote host
    2) connect back to localhost with -c option and test the command.
I have discussed this with Alex and Chris. This implementation is just for you 
guys
to review. I think we can go on with the improvement.


Tang Chen (2):
  Add 47 test cases for {at|de}tach-interface command.
  Add 47 {at|de}tach-interface command tests' configurartion.

 .../libvirt/tests/virsh_attach_detach_interface.py |  493 ++++++++++++++++++++
 client/virt/subtests.cfg.sample                    |  123 +++++
 2 files changed, 616 insertions(+)
 create mode 100644 client/tests/libvirt/tests/virsh_attach_detach_interface.py

-- 
1.7.10.2

-- 
Best Regards,
Tang chen
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to