[Libvirt-cim] [PATCH] [TEST] Modify Profile-01_enum.py to call new EnumInstances call

Deepti B Kalakeri deeptik at linux.vnet.ibm.com
Mon Oct 13 13:34:50 UTC 2008


+1 for me

yunguol at cn.ibm.com wrote:
> # HG changeset patch
> # User Guolian Yun <yunguol at cn.ibm.com>
> # Date 1223885824 25200
> # Node ID 9d1cd338c971cec2d2cca516e328b5d71a5a8620
> # Parent  c7eaf17bd591f313b93ff2b2087cee11b25789e0
> [TEST] Modify Profile-01_enum.py to call new EnumInstances call
>
> Signed-off-by: Guolian Yun <yunguol at cn.ibm.com>
>
> diff -r c7eaf17bd591 -r 9d1cd338c971 suites/libvirt-cim/cimtest/Profile/01_enum.py
> --- a/suites/libvirt-cim/cimtest/Profile/01_enum.py	Fri Oct 10 03:08:12 2008 -0700
> +++ b/suites/libvirt-cim/cimtest/Profile/01_enum.py	Mon Oct 13 01:17:04 2008 -0700
> @@ -44,15 +44,14 @@
>                  'System Virtualization', '1.0.0'],
>                 ['CIM:DSP1057-VirtualSystem-1.0.0a', 2,
>                  'Virtual System Profile', '1.0.0a']]
> -    cn = 'RegisteredProfile'
> +    cn = get_typed_class(options.virt, 'RegisteredProfile')
>
>      status = PASS
>      prev_namespace = Globals.CIM_NS
>      Globals.CIM_NS = 'root/interop'
>
>      try: 
> -        key_list = ["InstanceID"]
> -        proflist = enumclass.enumerate(options.ip, cn, key_list, options.virt)
> +        proflist = enumclass.EnumInstances(options.ip, cn)
>      except Exception, detail:
>          logger.error(CIM_ERROR_ENUMERATE, get_typed_class(options.virt,
>                       cn))
>
> _______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-cim
>   




More information about the Libvirt-cim mailing list