<br><tt><font size=2>libvirt-cim-bounces@redhat.com wrote on 2008-11-13
07:44:12:<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 <br>
> > 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 <br>
> > 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.<br>
> > <br>
> >   This tc return both different error code and descriptions
for sfcb and <br>
> > pegasus.<br>
> >   It seems that somebody says it isn't a good idea to check
the cimom <br>
> > type in tc.<br>
> >   I'm not sure if we can deal with this by other ways.<br>
> >   Thanks!<br>
> <br>
> Daisy - did you resolve your problem?  I tested with an F9 rpm
using <br>
> Pegasus, and this test passed for me.<br>
> <br>
> </font></tt>
<br><tt><font size=2>  This tc passes for Pegasus, but it fails for
sfcb.</font></tt>
<br><tt><font size=2>  It expects different error code and description
for sfcb and Pegasus.</font></tt>
<br><tt><font size=2>  </font></tt>
<br><tt><font size=2>  If I change the expr_valuese from 1) to 2),
it passes for sfcb.</font></tt>
<br>
<br><tt><font size=2>  1) </font></tt>
<br><tt><font size=2>expr_values = {</font></tt>
<br><tt><font size=2>   "invalid_instid_keyvalue" :
{ 'rc' : pywbem.CIM_ERR_FAILED,</font></tt>
<br><tt><font size=2>               
                 'desc' :
'Unable to determine\</font></tt>
<br><tt><font size=2> resource type' },</font></tt>
<br><tt><font size=2>              }</font></tt>
<br>
<br><tt><font size=2>  2) </font></tt>
<br><tt><font size=2>expr_values = {</font></tt>
<br><tt><font size=2>   "invalid_instid_keyvalue" :
{ 'rc' : pywbem.CIM_ERR_NOT_FOUNG,</font></tt>
<br><tt><font size=2>               
                 'desc' :
'No such instance' },</font></tt>
<br><tt><font size=2>              }</font></tt>
<br>
<br><tt><font size=2> Maybe we can verify what CIMOM is there on the
machine and check the error information accordingly  to fix this issue,</font></tt>
<br><tt><font size=2> but I remember that somebody says it isn't a
good idea to check the cimom type in tc, any better idea?</font></tt>
<br>
<br><tt><font size=2> Thanks!</font></tt>
<br><tt><font size=2><br>
> -- <br>
> Kaitlin Rupert<br>
> IBM Linux Technology Center<br>
> kaitlin@linux.vnet.ibm.com<br>
> <br>
> _______________________________________________<br>
> Libvirt-cim mailing list<br>
> Libvirt-cim@redhat.com<br>
> https://www.redhat.com/mailman/listinfo/libvirt-cim<br>
</font></tt>