Revision 4f90370c test/py/ganeti.rapi.rlib2_unittest.py
b/test/py/ganeti.rapi.rlib2_unittest.py | ||
---|---|---|
630 | 630 |
def testErrors(self): |
631 | 631 |
clfactory = _FakeClientFactory(_FakeClient) |
632 | 632 |
|
633 |
# storage type which does not support space reporting |
|
633 | 634 |
queryargs = { |
634 |
"output_fields": "name,other",
|
|
635 |
"storage_type": constants.ST_DISKLESS,
|
|
635 | 636 |
} |
636 | 637 |
handler = _CreateHandler(rlib2.R_2_nodes_name_storage, |
637 |
["node10538"], queryargs, {}, clfactory)
|
|
638 |
["node21273"], queryargs, {}, clfactory)
|
|
638 | 639 |
self.assertRaises(http.HttpBadRequest, handler.GET) |
639 | 640 |
|
640 | 641 |
queryargs = { |
Also available in: Unified diff