Revision 19fe9138 test/ganeti.rpc_unittest.py

b/test/ganeti.rpc_unittest.py
713 713
  def GetClusterInfo(self):
714 714
    return self._cluster
715 715

  
716
  def GetInstanceDiskParams(self, _):
717
    return constants.DISK_DT_DEFAULTS
718

  
716 719

  
717 720
class TestRpcRunner(unittest.TestCase):
718 721
  def testUploadFile(self):
......
795 798
          constants.NIC_MODE: "mymode",
796 799
          }),
797 800
        ],
801
      disk_template=constants.DT_DISKLESS,
798 802
      disks=[])
799 803
    inst.UpgradeConfig()
800 804

  
......
832 836
      })
833 837

  
834 838
    # Instance with OS parameters
835
    result = runner._encoder((rpc_defs.ED_INST_DICT_OSP, (inst, {
839
    result = runner._encoder((rpc_defs.ED_INST_DICT_OSP_DP, (inst, {
836 840
      "role": "webserver",
837 841
      "other": "field",
838 842
      })))

Also available in: Unified diff