Revision aa922d64 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"], |
|
374 | 373 |
}, {}, clfactory) |
375 | 374 |
job_id = handler.POST() |
376 | 375 |
|
... | ... | |
384 | 383 |
self.assertEqual(op.reboot_type, constants.INSTANCE_REBOOT_HARD) |
385 | 384 |
self.assertTrue(op.ignore_secondaries) |
386 | 385 |
self.assertTrue(op.dry_run) |
387 |
self.assertEqual(op.reason, |
|
388 |
(constants.INSTANCE_REASON_SOURCE_RAPI, "System update")) |
|
389 | 386 |
|
390 | 387 |
self.assertRaises(IndexError, cl.GetNextSubmittedJob) |
391 | 388 |
|
Also available in: Unified diff