[Libvirt-cim] [PATCH] [TEST] Adding tests for FilterLists

Chip Vincent cvincent at linux.vnet.ibm.com
Tue Oct 11 21:09:27 UTC 2011


--------------------------------------------------------------------
FilterList - 01_enum.py: PASS
--------------------------------------------------------------------
FilterList - 02_assoc.py: PASS
--------------------------------------------------------------------
FilterList - 03_create.py: FAIL
ERROR 	- Caught exception: (1, u'CIM_ERR_FAILED: Failed to update device')
--------------------------------------------------------------------

The last error is either a bug or as-designed (at least in 
libvirt-0.8.7). I'm working with the network folks who did the ACL impl 
in libvirt to see which it is.

+1 and pushed. Thanks, Eduardo.

On 10/06/2011 04:51 PM, Eduardo Lima (Etrunko) wrote:
> On 10/06/2011 05:11 PM, Eduardo Lima (Etrunko) wrote:
>>   suites/libvirt-cim/cimtest/FilterList/01_enum.py   |   71 ++
>>   suites/libvirt-cim/cimtest/FilterList/02_assoc.py  |  158 ++++++
>>   suites/libvirt-cim/cimtest/FilterList/03_create.py |  199 ++++++++
>>   suites/libvirt-cim/cimtest/FilterList/helper.py    |  515 +++++++++++++++++++++
>>   4 files changed, 943 insertions(+), 0 deletions(-)
>>
>>
>> # HG changeset patch
>> # User Eduardo Lima (Etrunko)<eblima at br.ibm.com>
>> # Date 1310498051 10800
>> # Node ID d9741a8b5eb7ccebf21d69f3cde72729bb60ad22
>> # Parent  779871660a3583dedf1652773196d07093ff26ff
>> [TEST] Adding tests for FilterLists
>>
>>      helper.py:
>>          - Helper module with classes and functions used by all tests
>>
>>      01_enum.py:
>>          - Enumerate FilterList instances and compare to results from libvirt
>>
>>      02_assoc.py:
>>          - For each FilterList instance, call Associators to get respective
>>            FilterEntries instances and compare to results from libvirt
>>
>>      03_create.py:
>>          - Creates a new FilterList instance and a NestedFilterList associated
>>            to this new instance. Creates a new domain and a new
>>            AppliedFilterList instance associated to the NetworkPort instance of
>>            that new domain.
>
> Please note that these tests require the latest series of patches to
> FilterEntry provider that were been sent to this mailing list in order
> to produce the right results.
>
> Best regards, Etrunko
>

-- 
Chip Vincent
Open Virtualization
IBM Linux Technology Center
cvincent at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list