Revision 24711492 test/py/cmdlib/instance_unittest.py

b/test/py/cmdlib/instance_unittest.py
1975 1975
                         nics=[(constants.DDM_ADD, -1, {})],
1976 1976
                         hotplug=True)
1977 1977
    self.ExecOpCode(op)
1978
    self.assertTrue(self.rpc.call_hotplug_supported.called)
1978 1979
    self.assertTrue(self.rpc.call_hotplug_device.called)
1979 1980

  
1980 1981
  def testAddNicWithIp(self):
......
2065 2066
                         nics=[(constants.DDM_MODIFY, 0, {})],
2066 2067
                         hotplug=True)
2067 2068
    self.ExecOpCode(op)
2069
    self.assertTrue(self.rpc.call_hotplug_supported.called)
2068 2070
    self.assertTrue(self.rpc.call_hotplug_device.called)
2069 2071

  
2070 2072
  def testRemoveLastNic(self):
......
2089 2091
                         nics=[(constants.DDM_REMOVE, 0, {})],
2090 2092
                         hotplug=True)
2091 2093
    self.ExecOpCode(op)
2094
    self.assertTrue(self.rpc.call_hotplug_supported.called)
2092 2095
    self.assertTrue(self.rpc.call_hotplug_device.called)
2093 2096

  
2094 2097
  def testSetOffline(self):
......
2177 2180
                                 }]],
2178 2181
                         hotplug=True)
2179 2182
    self.ExecOpCode(op)
2183
    self.assertTrue(self.rpc.call_hotplug_supported.called)
2180 2184
    self.assertTrue(self.rpc.call_blockdev_create.called)
2181 2185
    self.assertTrue(self.rpc.call_blockdev_assemble.called)
2182 2186
    self.assertTrue(self.rpc.call_hotplug_device.called)
......
2190 2194
                                 {}]],
2191 2195
                         hotplug=True)
2192 2196
    self.ExecOpCode(op)
2197
    self.assertTrue(self.rpc.call_hotplug_supported.called)
2193 2198
    self.assertTrue(self.rpc.call_hotplug_device.called)
2194 2199
    self.assertTrue(self.rpc.call_blockdev_shutdown.called)
2195 2200
    self.assertTrue(self.rpc.call_blockdev_remove.called)

Also available in: Unified diff