Revision 4a90bd4f test/py/ganeti.rapi.rlib2_unittest.py
b/test/py/ganeti.rapi.rlib2_unittest.py | ||
---|---|---|
370 | 370 |
handler = _CreateHandler(rlib2.R_2_instances_name_reboot, ["inst847"], { |
371 | 371 |
"dry-run": ["1"], |
372 | 372 |
"ignore_secondaries": ["1"], |
373 |
"reason_text": ["System update"] |
|
373 | 374 |
}, {}, clfactory) |
374 | 375 |
job_id = handler.POST() |
375 | 376 |
|
... | ... | |
383 | 384 |
self.assertEqual(op.reboot_type, constants.INSTANCE_REBOOT_HARD) |
384 | 385 |
self.assertTrue(op.ignore_secondaries) |
385 | 386 |
self.assertTrue(op.dry_run) |
387 |
self.assertEqual(op.reason, |
|
388 |
(constants.INSTANCE_REASON_SOURCE_RAPI, |
|
389 |
"System update", |
|
390 |
)) |
|
386 | 391 |
|
387 | 392 |
self.assertRaises(IndexError, cl.GetNextSubmittedJob) |
388 | 393 |
|
Also available in: Unified diff