Cimtest todo

From Libvirt Wiki
Revision as of 07:07, 31 October 2008 by Daisy (talk | contribs) (Items to Fix / Add)
Jump to: navigation, search

Back

To -Do List

Items to Fix / Add

  • Be able to call cxml.provider_define() and cxml.provider_start(), etc
  • Move libvirt/xm related items from live.py to the libvirt-cim suites directory
    • Move libvirt and xm related functions from lib/VirtLib/live.py to a library in libvirt-cim/lib/XenKvmLib Daisy
    • Move xm and guest related functions from lib/VirtLib/util.py to a library in libvirt-cim/lib/XenKvmLib Daisy
  • Remove any FIXMEs
  • Have main.py use root/virt has default namespace if one isn't supplied
  • Verify we support hardware accelerated KVM in cimtest.
  • Add flag that takes CIMOM type. Also add logic to test either types of EOs depending on the CIMOM type (SFCB with patch will send XML style EOs)
  • SystemDevice needs to check actual devices, not just loop through the devices returned.
  • Remove def poll_for_enabledstate_value() from tests and replace with generic function
  • Add cimtest revision and add revision support to test reporting

New Test Case Ideas

  • SettingsDefineState between CS <-> VSSD
  • Create a guest with multiple network devices - verify NetworkPort / NetworkPool / etc
  • AddResource test that attempts to add a CD/DVD device to a KVM guest.
  • AddResource negative test case that attempts to add proc and mem resources to a running guest.
  • Create a guest that had a network interface that doesn't belong to a pool (ethernet for Xen/XenFV, user for KVM?) - verify that the interface doesn't show up in pool lists, RAFP, etc.
  • More involved VirtualSystemSnapshotService tests?
  • ReferencedConfiguration tests: 1) testing invalid ref 2) create a guest (have it running), then define a guest based off the running guest, then attempt to start guest 3) define a guest, define a new guest based off of defined guest, start second guest
  • Processor scheduling - reboot guest, reset guest, suspend / resume guest - verify scheduling persistence.
  • More test case to verify the VS State Transitions.
    • Define a guest using create_using_definesystem(), then use RequestStateChange() to undefine it i.e, moving it to the same state in which it already exist.This should produce an error "Cannot go to disabled/shutdown state"
    • Define a guest using create_using_definesystem(), start the domain , shut the domain.The domain should be destroyed , verification of this can be done, by ensuring enumerate/getInstance does not have the domain which was shutdown, listed.
    • Define a guest using create_using_definesystem(), start the domain , suspend the domain, shut the domain.The domain should be destroyed , verification of this can be done, by ensuring enumerate/getInstance does not have the domain which was shutdown, listed.
  • Verifying the changes to ECTP provider.
    • This requires changes to the following test cases along with modification to the profile_init_list() function of common_util.py library.
      • Profile/01_enum.py
      • Profile/03_rprofile_gi_errs.py
      • ReferencedProfile/02_refprofile_errs.py
      • ElementConforms/03_ectp_fwd_errs.py
  • Add test case to verify the ConcreteComponent with NetworkPool support association. This requires sblim-cmpi-network and sblim-cmpi-base to be installed on the machine.
  • Add test case to verify the ConcreteComponent with ProcessorPool support association. This requires sblim-cmpi-base to be installed on the machine.
  • Verify DeleteResources()
  • Verify SDC returns no instances and no error in the RASD to AC case.
  • Create a guest with a device that is not allocated from a pool (disk or network device). Verify that EAFP does not return an error or an instance when the reference for this device is specified.
  • Attempt to define a system with a RASD with the VirtualDevice value not specified (should attempt for proc, mem, disk, net) - verify an error is returned.
  • Verify Limit/Reservation values of VSSD
  • RedirectionService - enum, etc [Next work item, DBK]
  • Verify AddResources does not expect the RASDs passed in to have the InstanceID set.
  • Verify ModifySystemSetting() changes.
    • For Valid tc
      • Define a guest
      • GeInstance() of VSSD
      • modify properties like kernel and ramdisk info, etc for Xen , modify properties like BootDevice for KVM and XenFV
    • For Invalid tc verify the exception when invalid values are passed to various properties
      • Define a guest
      • GetInstance() of VSSD
      • pass invalid values to the VirtualSystemType, VirtualSystemIdentifier which is anything other the guest name etc.
  • Verify that the AutomaticShutdownAction property of VSSD does not accept values other than 2,3
  • Update the XML for LXC to include type tag for Containers guests.This should be set to 'exe'.
  • Update the following test cases to either verify the FQDN or hostname.These updates will verify the modifiation to the "Add a bit more logic to check for FQDN." provider changes.
    • ElementConforms - 01_forward.py
    • HostSystem - 01_enum.py
    • HostSystem - 03_hs_to_settdefcap.py
  • New test case to the association between [Next work item, DBK]
    • RedirectionService to HostSystem using HostedService.
    • HostSystem to RedirectionService using HostedService.(This will not work with sblim-base-provider installed, hence the tc should be updated with XFAIL for sblim-base-provider case)
  • Update SettingsDefineCapabilities/01_forward.py to accomodate the changes by the patch "Add condensed template functions, update sdc_rasds_for_type() & sdc_rasd_inst()"
  • ServiceAffectsElement new test case to the association between
    • ConsoleRedirectionService to ComputerSystem using SAE
    • ComputerSystem to ConsoleRedirection using SAE.
  • KVMRedirectionSAP -- enumeration, invalid scenario etc
  • ConsoleRedirectionServiceCapabilities -- enumeration, invalid scenario etc
  • Verify the resultant Pool class with the ECTP association when queried with GDRP and values,