projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1a7bc7
)
Add unit test for ganeti.rapi.client's ModifyGroup
author
Adeodato Simo
<dato@google.com>
Fri, 7 Jan 2011 20:49:36 +0000
(20:49 +0000)
committer
Adeodato Simo
<dato@google.com>
Mon, 10 Jan 2011 14:07:10 +0000
(14:07 +0000)
This was forgotten in f18fab7.
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
test/ganeti.rapi.client_unittest.py
patch
|
blob
|
history
diff --git
a/test/ganeti.rapi.client_unittest.py
b/test/ganeti.rapi.client_unittest.py
index
dffbd05
..
9b432b9
100755
(executable)
--- a/
test/ganeti.rapi.client_unittest.py
+++ b/
test/ganeti.rapi.client_unittest.py
@@
-1039,6
+1039,12
@@
class GanetiRapiClientTests(testutils.GanetiTestCase):
self.assertEqual(job_id, 12347)
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):
for mnh in [None, False, True]:
self.rapi.AddResponse("14470")