Difference between revisions of "Cimtest todo"

From Libvirt Wiki
Jump to: navigation, search
(De-spam)
 
Line 1: Line 1:
----
 
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://azysijogen.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
 
----
 
=[http://azysijogen.co.cc CLICK HERE]=
 
----
 
</div>
 
 
[[cimtest|Back]]
 
[[cimtest|Back]]
  

Latest revision as of 11:30, 25 November 2010

Back

To -Do List

Items to Fix / Add

  • Make testsuite work when selinux is enabled
  • Make it configurable which directory the images are stored in, by default, place them in /var/lib/libvirt/images
  • 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)
  • Remove def poll_for_enabledstate_value() from tests and replace with generic function
  • Add a way of checking to see if the classname(s) of a test case are registered before running the test. If the classnames aren't registered, the test is skipped and an error message is printed indicating the classname is not registered. This can be done using pywbem's GetClass() call.
  • Enable cimtest test suite to be able to trigger tests from Machine A for Machine B. For this we need to replace/Modify all the operation in the cimtest test suite which are done on the localhost to operations that could be executed on the remote machines.For ex: os.path.exist() is operation that will be executed on localhost, which will not work for remote operations.

New Test Case Ideas

Last updated June 11, 2009. This covers patches through changeset 897:789961b4cb62.


ComputerSystem:

  • 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.

ConcreteComponent

  • 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.

DisplayController:

  • Enumeration, invalid scenario etc

ElementAllocatedFromPool:

  • 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.
  • Verify parent pool <--> child pool

ElementCapabilities:

  • Update the ElementCapabilities/02_reverse.py tc to verify the EC association the ein of AC values as well.
  • Verify the association Console Redirections Service Capabilities -> Console Redirection Service Capabilities into the ElementCapabilities.

ElementConformsToProfile:

  • Update ECTP 01_forward.py to verify the AllocationCapabilities, KVMRedirection-1.0.0 and ResourceAllocation-1.1.0c_d,ResourceAllocation-1.1.0c_p, ResourceAllocation-1.1.0c_m, ResourceAllocation-1.1.0c_n information.

PointingDevice:

  • Enumeration, invalid scenario etc

RASD:

  • GraphicsRASD - Enumeration, invalid scenario etc
  • Verify VirtualQuantity field ProcRASD returns the actual number of active VCPU's for a running domain that is allocated, this may not be the same as we might have specified in the XML while defining the domain. verify_procrasd_values() of the rasd.py should include this field for verification, test cases affected by change to this function modification should also be updated.
  • Verify ResourceSubType with input type and Caption with bus type, add function to verify InputRASD in rasd.py to verify this and update the affected test cases.
  • Verify DiskRASD returns correct value for BusType
  • Verify NetPoolRASDs and DiskPoolRASDs
  • Verify ResourceSubType returns the proper NIC model

ResourcePool:

  • Verify enumeration of DiskPool and NetPool always return a parent pool

RegisteredProfile:

  • Verify KVMRedirection Profile support (for RP and ETCP)
  • Verify RAP and AC profiles
  • Update the Profile/01_enum.py to verify the
    • GenericDeviceResourceVirtualization-1.0.0_d
    • GenericDeviceResourceVirtualization-1.0.0_n
    • GenericDeviceResourceVirtualization-1.0.0_p
    • MemoryResourceVirtualization-1.0.0
    • VirtualSystemMigration-0.8.1
    • KVMRedirection-1.0.0
    • AllocationCapabilities-1.0.0a
    • ResourceAllocation-1.1.0c_n
    • ResourceAllocation-1.1.0c_d
    • ResourceAllocation-1.1.0c_m
    • ResourceAllocation-1.1.0c_p
  • Also update the test case to verify the advertiseType field for all the profiles.

ResourcePoolConfigrationService:

  • Update the RPCC/01_enum.py to verify the SynchronousMethodsSupported=3[CreateChildResourcePool],4[CreateChildResourcePool]
  • Verify the ability to create / destroy NetworkPools

SAPAvailableForElement:

  • Verify the SAPAvailableForElement association
    • From ComputerSystem to KVMRedirectionSAP using SAPAvailableForElement.
    • From KVMRedirectionSAP to ComputerSystem using SAPAvailableForElement.

SettingsDefineState:

  • SettingsDefineState between CS <-> VSSD

SettingsDefineCapabilities:

  • Verify SDC returns no instances and no error in the RASD to AC case.
  • Update SettingsDefineCapabilities/01_forward.py to verify the GraphicsRASD and InputRASD with SDC.
  • Update SDC 01_forward.py to verify the EmulatedType field for DiskRASD.
  • Update SDC/01_forward.py to verify the SDC association with AllocationCapabilities when DiskPool InstanceID is passed returns the RASD templates for each of the volumes ( which is present in the same PATH as that of the cimtest-diskpool Pool passed as input). Will need to create a diskpool with some volumes

VirtualSystemManagementService:

  • Invalid scenario which verifies that passing ResourceSettings argument( to the DefineSystem() call of VSMS ) with the ResourceType field of any RASD set to CIM_RES_TYPE_UNKNOWN [ value of 1000 ] cannot generate an XML which would further not allow the guest to be defined.
  • Create a guest with multiple network devices - verify NetworkPort / NetworkPool / different MACS, etc
  • AddResource test that attempts to add a CD/DVD device to a KVM guest.
  • Verify AddResources does not expect the RASDs passed in to have the InstanceID set.
  • Verify that specifying input type=other than tablet or mouse should return "Unknown device type" in the as part of the caption.
  • Verify that specifying input bus=other than usb/ps2 should return "Unknown bus" in the as part of the caption.
  • Verify sdl graphics support
  • Define guest with invalid ReferencedConfiguration
  • 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.
  • Tc to verify DefineSystem() returns an error "Missing `VirtualQuantity'" when the ProcRASD/ MemRASD does not contain the VirtualQuantity information.
  • Create a guest with a network device but no PoolID defined - this will verify a default pool is found properly.
  • Verify add/remove/modify of graphics and input devices in VSMS
  • VSMS enum and negative GetInst tests
  • Verify ModifySystemSetting() changes.
    • 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
  • Verify guest creation when specifying a value for BusType in the DiskRASD
  • Verify specifying 0, 1, 1+ values for the BootDevices attribute of VSSD when defining a guest
  • Verify the VSMS instance returns the right value for the Release attribute
  • Verify user can specify UUID property when defining a guest
  • Verify user can specify NIC model using ResourceSubType when defining a guest
  • When defining a guest, verify a qemu guest is created if the system doesn't support full virt KVM and that a KVM guest is created in the case of full virt
  • Verify a user can specify a guests emulator using he Emulator attribute of the VSSD

VirtualSystemMigrationService:

  • VSMigrationService enum and negative GetInst tests

VSSD:

  • Verify Limit/Reservation values of VSSD
  • Verify ClockSet attribute in VSSD
  • Verify the InitPath of LXC guests is set properly
  • Verify the Emulator attribute returns the correct value