Revision bd9ef845
b/lib/rapi/rlib2.py | ||
---|---|---|
1368 | 1368 |
PUT_RENAME = { |
1369 | 1369 |
"custom_beparams": "beparams", |
1370 | 1370 |
"custom_hvparams": "hvparams", |
1371 |
"custom_nicparams": "nicparams", |
|
1372 | 1371 |
} |
1373 | 1372 |
|
1374 | 1373 |
def GetPutOpInput(self): |
b/test/py/ganeti.rapi.rlib2_unittest.py | ||
---|---|---|
558 | 558 |
self.assertRaises(IndexError, cl.GetNextSubmittedJob) |
559 | 559 |
|
560 | 560 |
|
561 |
class TestInstanceModify(): |
|
561 |
class TestInstanceModify(unittest.TestCase):
|
|
562 | 562 |
def testCustomParamRename(self): |
563 | 563 |
clfactory = _FakeClientFactory(_FakeClient) |
564 | 564 |
|
... | ... | |
566 | 566 |
data = { |
567 | 567 |
"custom_beparams": {}, |
568 | 568 |
"custom_hvparams": {}, |
569 |
"custom_nicparams": {}, |
|
570 | 569 |
} |
571 | 570 |
|
572 | 571 |
handler = _CreateHandler(rlib2.R_2_instances_name_modify, [name], {}, data, |
... | ... | |
582 | 581 |
self.assertTrue(isinstance(op, opcodes.OpInstanceSetParams)) |
583 | 582 |
self.assertEqual(op.beparams, {}) |
584 | 583 |
self.assertEqual(op.hvparams, {}) |
585 |
self.assertEqual(op.nicparams, {}) |
|
586 | 584 |
|
587 | 585 |
self.assertRaises(IndexError, cl.GetNextSubmittedJob) |
588 | 586 |
|
Also available in: Unified diff