[Libvirt-cim] [PATCH] [TEST] Add new tc to verify VSMS.RemoveResourceSettings() with invalid instance

Guo Lian Yun yunguol at cn.ibm.com
Wed Mar 25 03:09:29 UTC 2009


libvirt-cim-bounces at redhat.com wrote on 2009-03-25 01:03:33:

> Guo Lian Yun wrote:
> > 
> > This tc fails for KVM with current src because of the exp_desc.
> > The error desc expects to "The value supplied is incompatible with the 

> > type"
> > instead of "CIM_ERR_TYPE_MISMATCH" for KVM with current src.
> > 
> > But this tc with exp_desc of "CIM_ERR_TYPE_MISMATCH" pass for Xen with 

> > current src. I'm not sure
> > why it is? Why the error desc is different from Xen to KVM with the 
same 
> > libvit-cim version?
> > 
> 
> When I run on KVM, I see the following:
> 
> Testing KVM hypervisor
> --------------------------------------------------------------------
> VirtualSystemManagementService - 17_removeresource_neg.py: FAIL
> InvokeMethod(RemoveResourceSettings): CIM_ERR_TYPE_MISMATCH
> 13 CIM_ERR_TYPE_MISMATCH
> --------------------------------------------------------------------
> 
> 
> What error are you seeing?
  It outputs as follows: 
  "The value supplied is incompatible with the type"

  Just as you said, this bad inst will verify the COMOM instead of 
VSMS.RemoveRS() function.
  I create a DiskRASD with invalid InstanceID and pass to VSMS.RemoveRS() 
in #2 tc,
  and the tc works for me now.

  Thank for your help =) 


> 
> -- 
> Kaitlin Rupert
> IBM Linux Technology Center
> kaitlin at linux.vnet.ibm.com
> 
> _______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-cim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20090325/0b8f31d8/attachment.htm>


More information about the Libvirt-cim mailing list