Revision 884dc063 test/py/ganeti.rapi.client_unittest.py
b/test/py/ganeti.rapi.client_unittest.py | ||
---|---|---|
503 | 503 |
def testInstancesMultiAlloc(self): |
504 | 504 |
response = { |
505 | 505 |
constants.JOB_IDS_KEY: ["23423"], |
506 |
opcodes.OpInstanceMultiAlloc.ALLOCATABLE_KEY: ["foobar"],
|
|
507 |
opcodes.OpInstanceMultiAlloc.FAILED_KEY: ["foobar2"],
|
|
506 |
constants.ALLOCATABLE_KEY: ["foobar"],
|
|
507 |
constants.FAILED_KEY: ["foobar2"],
|
|
508 | 508 |
} |
509 | 509 |
self.rapi.AddResponse(serializer.DumpJson(response)) |
510 | 510 |
insts = [self.client.InstanceAllocation("create", "foobar", |
Also available in: Unified diff