[Libvirt-cim] [PATCH] [TEST] Fix SettingsDefineCapabilities/03_forward_errs.py

Guo Lian Yun yunguol at cn.ibm.com
Tue Nov 11 02:43:53 UTC 2008


libvirt-cim-bounces at redhat.com wrote on 2008-11-10 14:35:33:

> This will fail for F9 rpm.

  It fails because of different error code and desc for F9 rpm and F10.
  With invalid_instid_keyvalue, it expected to return {'rc' : 
pywbem.CIM_ERR_FAILED, 'desc' : 'Unable to determine resource type'} for 
F9,
  but we expected to return {'rc' : pywbem.CIM_ERR_NOT_FOUND, 'desc' : 'No 
such instance'} for F10.

  I have to add a revision branch here. Would you tell me how to get the 
revision number?
  Thanks!

> 
> Regards,
> Deepti.
> 
> yunguol at cn.ibm.com wrote:
> > # HG changeset patch
> > # User Guolian Yun <yunguol at cn.ibm.com>
> > # Date 1226297098 28800
> > # Node ID c85ded9735f60db2fc49475906e3611616a4a315
> > # Parent  6591949e8afdddce6aa72022e33f0ce063ec60a1
> > [TEST] Fix SettingsDefineCapabilities/03_forward_errs.py
> >
> > Signed-off-by: Guolian Yun <yunguol at cn.ibm.com>
> >
> > diff -r 6591949e8afd -r c85ded9735f6 suites/libvirt-
> cim/cimtest/SettingsDefineCapabilities/03_forward_errs.py
> > --- a/suites/libvirt-
> cim/cimtest/SettingsDefineCapabilities/03_forward_errs.py   Wed Nov 
> 05 22:03:48 2008 -0800
> > +++ b/suites/libvirt-
> cim/cimtest/SettingsDefineCapabilities/03_forward_errs.py   Sun Nov 
> 09 22:04:58 2008 -0800
> > @@ -40,9 +40,8 @@
> >  expr_values = {
> >     "invalid_instid_keyname"  : { 'rc'   : pywbem.CIM_ERR_FAILED, 
> >                                   'desc' : 'Missing InstanceID'},
> > -   "invalid_instid_keyvalue" : { 'rc' : pywbem.CIM_ERR_FAILED, 
> > -                                 'desc' : 'Unable to determine\
> > - resource type' },
> > +   "invalid_instid_keyvalue" : { 'rc'   : pywbem.CIM_ERR_NOT_FOUND, 
> > +                                 'desc' : 'No such instance'},
> >                }
> >
> >  def err_invalid_instid_keyname(virt, conn, field):
> >
> > _______________________________________________
> > Libvirt-cim mailing list
> > Libvirt-cim at redhat.com
> > https://www.redhat.com/mailman/listinfo/libvirt-cim
> > 
> 
> _______________________________________________
> 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/20081111/fd5a7067/attachment.htm>


More information about the Libvirt-cim mailing list