1. 26 11月, 2013 1 次提交
  2. 25 11月, 2013 2 次提交
  3. 23 11月, 2013 3 次提交
  4. 22 11月, 2013 3 次提交
  5. 21 11月, 2013 11 次提交
  6. 20 11月, 2013 12 次提交
    • R
      Merge pull request #948 from kylazhang/snapshot-branch · d0ad8e0a
      Rudá Moura 提交于
      Virsh Snapshot-edit test
      d0ad8e0a
    • C
      virt: Codespell cleanup · 63ba324f
      Chris Evich 提交于
      Signed-off-by: NChris Evich <cevich@redhat.com>
      63ba324f
    • C
      virt-libvirt: Fix interface XML driver · 1d6427f8
      Chris Evich 提交于
      Fix duplication of 'type_name' property from base-class. In other
      words, ``libvirt_xml/devices/base.py`` defines ``TypedDeviceBase``
      which already handles setting up methods for ``get_type_name(),
      set_type_name(), del_type_name()`` to work on device elements
      ``<device_name type='foobar'>``.  So there's no point in having a
      subclass re-define accessor methods for the same ``type`` attribute.
      Worse, it's using a python built-in (``type``) which encourages other
      bad names down the stack.  I searched high and low for any usage of this
      ``type`` attribute and any calls to instance methods ``get_type(),
      set_type(), and del_type()``  but found none.
      Signed-off-by: NChris Evich <cevich@redhat.com>
      1d6427f8
    • C
      virt: Mass Unittests shared-state cleanup · dffe4d32
      Chris Evich 提交于
      Identified four unittests which were incorrectly
      sharing state internally and externally.  In most
      cases the fixes were simple: isolate test state
      for every test via setup().  In the case of tests
      needing to mock virsh functions, I took the extra
      precautionary step of forcing them to first over-ride
      ALL virsh functions/methods with an exception.
      This way, any functions that should be mocked in
      unittests but are not, will be immediatly clear :)
      Signed-off-by: NChris Evich <cevich@redhat.com>
      dffe4d32
    • C
      virt: Add common to all entry ponts · 3ed314ce
      Chris Evich 提交于
      All entry points must import the common module.
      Signed-off-by: NChris Evich <cevich@redhat.com>
      3ed314ce
    • C
      virt-libvirt: virsh minor bugfix · cafafc3c
      Chris Evich 提交于
      The Virsh class automatically sucks in all callable
      symbols found in the module and converts them into
      methods.  However, an omission from the exclusion
      list caused the VirshConnectBack class to be needlessly
      exposed as a method (since classes are callable).
      This has the potential to mess with unittests which
      must mock Virsh methods, but at the same time may need
      to use this class.  Adding it to the exclusion list
      will prevent those problems.
      cafafc3c
    • C
      virt-libvirt: Fix VMXML bug · bd220f48
      Chris Evich 提交于
      Devices were not properly having the virsh instance
      passed on to them.
      Signed-off-by: NChris Evich <cevich@redhat.com>
      bd220f48
    • C
      virt-libvirt: Override base classcontains/has_key · 553f9b04
      Chris Evich 提交于
      There is a secondary set of propcan instances used behind the
      scenes inside accessor factories.  Whenever they were trying
      to retrieve non-existing data, or receive invalid input,
      they toss a variaety of LibvirtXMLError exception sub-classes
      by API design.  However, this doesn't jive with the standard
      attribute/dictionary key-check method behavior.
      
      The libvirt_xml API is defined such that all internally sourced
      problems always throw a LibvirtXMLError exception or subclass.
      However, since libvirt_base is also a propcan subclass, these
      classes were get in the way of the regular python __contains__
      and has_key() behavior.
      
      This change makes LibvirtXML subclasses all conform to the python
      dict and instance-attribute access convention.  Without it, one
      would need to wrap the 'has_key()' call inside a try...except
      LibvirtXMLError, which is unnatural.
      Signed-off-by: NChris Evich <cevich@redhat.com>
      553f9b04
    • C
      virt-libvirt: libvirt_xml interface xml driver · a2477a02
      Chris Evich 提交于
      Added ability to get/set/del '<model type=>' element + attribute.
      Signed-off-by: NChris Evich <cevich@redhat.com>
      a2477a02
    • C
      virt: Remove custom string conversion · 3aae5c39
      Chris Evich 提交于
      Since PropcanBase is now fully pickle-able, there is no need
      for custom string-conversion (which was used for pickling in virtnet).
      Removed these special methods to just let normal python dict string
      conversion take over.
      Signed-off-by: NChris Evich <cevich@redhat.com>
      3aae5c39
    • C
      virt: variable-rename fix for pylint · 0a773d1d
      Chris Evich 提交于
      Signed-off-by: NChris Evich <cevich@redhat.com>
      0a773d1d
    • L
      1a5f07c8
  7. 19 11月, 2013 6 次提交
  8. 18 11月, 2013 2 次提交