Commit 7187e6ff authored by Adeodato Simo's avatar Adeodato Simo
Browse files

Add unit test for ganeti.rapi.client's ModifyGroup

This was forgotten in f18fab7d

.
Signed-off-by: default avatarAdeodato Simo <dato@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent a1a7bc78
...@@ -1039,6 +1039,12 @@ class GanetiRapiClientTests(testutils.GanetiTestCase): ...@@ -1039,6 +1039,12 @@ class GanetiRapiClientTests(testutils.GanetiTestCase):
self.assertEqual(job_id, 12347) self.assertEqual(job_id, 12347)
self.assertHandler(rlib2.R_2_groups_name_rename) self.assertHandler(rlib2.R_2_groups_name_rename)
def testModifyGroup(self):
self.rapi.AddResponse("12348")
job_id = self.client.ModifyGroup("mygroup", alloc_policy="foo")
self.assertEqual(job_id, 12348)
self.assertHandler(rlib2.R_2_groups_name_modify)
def testModifyCluster(self): def testModifyCluster(self):
for mnh in [None, False, True]: for mnh in [None, False, True]:
self.rapi.AddResponse("14470") self.rapi.AddResponse("14470")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment