Revision 25e9c2ce qa/qa_rapi.py
b/qa/qa_rapi.py | ||
---|---|---|
35 | 35 |
from ganeti import errors |
36 | 36 |
from ganeti import pathutils |
37 | 37 |
from ganeti import objects |
38 |
from ganeti import opcodes |
|
38 | 39 |
from ganeti import query |
39 | 40 |
from ganeti import qlang |
40 | 41 |
from ganeti import rapi |
... | ... | |
302 | 303 |
else: |
303 | 304 |
raise qa_error.Error("Non-implemented method didn't fail") |
304 | 305 |
|
306 |
# Test GET/PUT symmetry |
|
307 |
LEGITIMATELY_MISSING = [ |
|
308 |
"force", # Standard option |
|
309 |
"add_uids", # Modifies UID pool, is not a param itself |
|
310 |
"remove_uids", # Same as above |
|
311 |
] |
|
312 |
NOT_EXPOSED_YET = ["hv_state", "disk_state", "modify_etc_hosts"] |
|
313 |
# The nicparams are returned under the default entry, yet accepted as they |
|
314 |
# are - this is a TODO to fix! |
|
315 |
DEFAULT_ISSUES = ["nicparams"] |
|
316 |
|
|
317 |
_DoGetPutTests("/2/info", "/2/modify", opcodes.OpClusterSetParams.OP_PARAMS, |
|
318 |
exceptions=(LEGITIMATELY_MISSING + NOT_EXPOSED_YET), |
|
319 |
set_exceptions=DEFAULT_ISSUES) |
|
320 |
|
|
305 | 321 |
|
306 | 322 |
def TestRapiQuery(): |
307 | 323 |
"""Testing resource queries via remote API. |
Also available in: Unified diff