<br><tt><font size=2>libvirt-cim-bounces@redhat.com wrote on 2008-11-11
16:38:35:<br>
<br>
> <br>
> <br>
> Guo Lian Yun wrote:<br>
> ><br>
> > libvirt-cim-bounces@redhat.com wrote on 2008-11-10 14:35:33:<br>
> ><br>
> > > This will fail for F9 rpm.<br>
> ><br>
> >   It fails because of different error code and desc for
F9 rpm and F10.<br>
> >   With invalid_instid_keyvalue, it expected to return {'rc'
: <br>
> > pywbem.CIM_ERR_FAILED, 'desc' : 'Unable to determine resource
type'} <br>
> > for F9,<br>
> >   but we expected to return {'rc' : pywbem.CIM_ERR_NOT_FOUND,
'desc' : <br>
> > 'No such instance'} for F10.<br>
> ><br>
> >   I have to add a revision branch here. Would you tell me
how to get <br>
> > the revision number?<br>
> Yes this test need to be branched.<br>
> You can use get_provider_version() to get he revision number.<br>
> You can refer to 15_mod_system_settings.py tc for reference.</font></tt>
<br>
<br><tt><font size=2>  Deepti - Thanks for your relpy.</font></tt>
<br><tt><font size=2>  When I try to get the changeset number for
this patch, It seems that the expect</font></tt>
<br><tt><font size=2>  error code number and desc are not changed
yet, below is the part code for</font></tt>
<br><tt><font size=2>  this case in Virt_SettingsDefineCapabilities.c
with current src:</font></tt>
<br>
<br><tt><font size=2>  ...</font></tt>
<br><tt><font size=2>        if (type == CIM_RES_TYPE_UNKNOWN)
{</font></tt>
<br><tt><font size=2>               
cu_statusf(_BROKER, &s,</font></tt>
<br><tt><font size=2>               
           CMPI_RC_ERR_FAILED,</font></tt>
<br><tt><font size=2>               
           "Unable to determine resource
type");</font></tt>
<br><tt><font size=2>               
goto out;</font></tt>
<br><tt><font size=2>        }</font></tt>
<br><tt><font size=2>  ...</font></tt>
<br><tt><font size=2>  <br>
> Thanks and Regards,<br>
> Deepti.<br>
> >   Thanks!<br>
> ><br>
> > ><br>
> > > Regards,<br>
> > > Deepti.<br>
> > ><br>
> > > yunguol@cn.ibm.com wrote:<br>
> > > > # HG changeset patch<br>
> > > > # User Guolian Yun <yunguol@cn.ibm.com><br>
> > > > # Date 1226297098 28800<br>
> > > > # Node ID c85ded9735f60db2fc49475906e3611616a4a315<br>
> > > > # Parent  6591949e8afdddce6aa72022e33f0ce063ec60a1<br>
> > > > [TEST] Fix SettingsDefineCapabilities/03_forward_errs.py<br>
> > > ><br>
> > > > Signed-off-by: Guolian Yun <yunguol@cn.ibm.com><br>
> > > ><br>
> > > > diff -r 6591949e8afd -r c85ded9735f6 suites/libvirt-<br>
> > > cim/cimtest/SettingsDefineCapabilities/03_forward_errs.py<br>
> > > > --- a/suites/libvirt-<br>
> > > cim/cimtest/SettingsDefineCapabilities/03_forward_errs.py
  Wed Nov<br>
> > > 05 22:03:48 2008 -0800<br>
> > > > +++ b/suites/libvirt-<br>
> > > cim/cimtest/SettingsDefineCapabilities/03_forward_errs.py
  Sun Nov<br>
> > > 09 22:04:58 2008 -0800<br>
> > > > @@ -40,9 +40,8 @@<br>
> > > >  expr_values = {<br>
> > > >     "invalid_instid_keyname"  :
{ 'rc'   : pywbem.CIM_ERR_FAILED,<br>
> > > >                
                  'desc' :
'Missing InstanceID'},<br>
> > > > -   "invalid_instid_keyvalue" : { 'rc'
: pywbem.CIM_ERR_FAILED,<br>
> > > > -              
                  'desc' :
'Unable to determine\<br>
> > > > - resource type' },<br>
> > > > +   "invalid_instid_keyvalue" : { 'rc'
  : pywbem.CIM_ERR_NOT_FOUND,<br>
> > > > +              
                  'desc' :
'No such instance'},<br>
> > > >                }<br>
> > > ><br>
> > > >  def err_invalid_instid_keyname(virt, conn, field):<br>
> > > ><br>
> > > > _______________________________________________<br>
> > > > Libvirt-cim mailing list<br>
> > > > Libvirt-cim@redhat.com<br>
> > > > https://www.redhat.com/mailman/listinfo/libvirt-cim<br>
> > > >  <br>
> > ><br>
> > > _______________________________________________<br>
> > > Libvirt-cim mailing list<br>
> > > Libvirt-cim@redhat.com<br>
> > > https://www.redhat.com/mailman/listinfo/libvirt-cim<br>
> > ------------------------------------------------------------------------<br>
> ><br>
> > _______________________________________________<br>
> > Libvirt-cim mailing list<br>
> > Libvirt-cim@redhat.com<br>
> > https://www.redhat.com/mailman/listinfo/libvirt-cim<br>
> <br>
> _______________________________________________<br>
> Libvirt-cim mailing list<br>
> Libvirt-cim@redhat.com<br>
> https://www.redhat.com/mailman/listinfo/libvirt-cim<br>
</font></tt>