<br><tt><font size=2>libvirt-cim-bounces@redhat.com wrote on 2008-11-11
18:09:52:<br>
<br>
> <br>
> <br>
> Deepti B Kalakeri wrote:<br>
> ><br>
> ><br>
> > Guo Lian Yun wrote:<br>
> >><br>
> >> 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 <br>
> >> 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,
<br>
> >> '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.<br>
> >><br>
> >>   Deepti - Thanks for your relpy.<br>
> >>   When I try to get the changeset number for this patch,
It seems <br>
> >> that the expect<br>
> >>   error code number and desc are not changed yet, below
is the part <br>
> >> code for<br>
> >>   this case in Virt_SettingsDefineCapabilities.c with
current src:<br>
> >><br>
> >>   ...<br>
> >>         if (type == CIM_RES_TYPE_UNKNOWN)
{<br>
> >>                 cu_statusf(_BROKER,
&s,<br>
> >>                  
         CMPI_RC_ERR_FAILED,<br>
> >>                  
         "Unable to determine resource type");<br>
> >>                 goto
out;<br>
> >>         }<br>
> >>   ...<br>
> > Sorry I did not ask initially itself.<br>
> > Which CIMOM did use when comparing the return values.<br>
> > Do you use the same CIMOM on both F9 and F10 ?<br>
> If the problem is with different CIMOM's returning different error
<br>
> information then we dont need to use get_provider_version().<br>
> It would be good idea to verify what CIMOM is there on the machine
and <br>
> check the error information accordingly instead of modifying and <br>
> verifying the common information in the error description for pegasus
<br>
> and sfcb.This will be good in case where two error messages occurring
<br>
> because of different reasons are partly same, and hence avoid false
<br>
> positives.</font></tt>
<br>
<br><tt><font size=2>  This tc return both different error code and
descriptions for sfcb and pegasus.</font></tt>
<br><tt><font size=2>  It seems that somebody says it isn't a good
idea to check the cimom type in tc.</font></tt>
<br><tt><font size=2>  I'm not sure if we can deal with this by other
ways.</font></tt>
<br><tt><font size=2>  Thanks!</font></tt>
<br><tt><font size=2>  </font></tt>
<br><tt><font size=2>  <br>
> Any thoughts??<br>
> <br>
> Thanks and Regards,<br>
> Deepti.<br>
> >>  <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 <br>
> >> Nov<br>
> >> > > > 05 22:03:48 2008 -0800<br>
> >> > > > > +++ b/suites/libvirt-<br>
> >> > > > cim/cimtest/SettingsDefineCapabilities/03_forward_errs.py
  Sun <br>
> >> Nov<br>
> >> > > > 09 22:04:58 2008 -0800<br>
> >> > > > > @@ -40,9 +40,8 @@<br>
> >> > > > >  expr_values = {<br>
> >> > > > >     "invalid_instid_keyname"
 : { 'rc'   : <br>
> >> pywbem.CIM_ERR_FAILED,<br>
> >> > > > >            
                     
'desc' : 'Missing <br>
> >> InstanceID'},<br>
> >> > > > > -   "invalid_instid_keyvalue"
: { 'rc' : pywbem.CIM_ERR_FAILED,<br>
> >> > > > > -          
                     
'desc' : 'Unable to determine\<br>
> >> > > > > - resource type' },<br>
> >> > > > > +   "invalid_instid_keyvalue"
: { 'rc'   : <br>
> >> 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>
> >> > > > Libvirt-cim mailing list<br>
> >> > > > Libvirt-cim@redhat.com<br>
> >> > > > https://www.redhat.com/mailman/listinfo/libvirt-cim<br>
> >> > > <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>
> >> ------------------------------------------------------------------------<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>