Revision e1876432
b/lib/constants.py | ||
---|---|---|
472 | 472 |
ELOG_MESSAGE = "message" |
473 | 473 |
ELOG_PROGRESS = "progress" |
474 | 474 |
|
475 |
# Temporary RAPI constants until we have cluster parameters |
|
476 |
RAPI_ENABLE = True |
|
477 | 475 |
RAPI_PORT = 5080 |
478 | 476 |
|
479 | 477 |
# max dynamic devices |
b/qa/qa_rapi.py | ||
---|---|---|
58 | 58 |
"""Return whether remote API tests should be run. |
59 | 59 |
|
60 | 60 |
""" |
61 |
return constants.RAPI_ENABLE and qa_config.TestEnabled('rapi') |
|
62 |
|
|
63 |
|
|
64 |
def PrintRemoteAPIWarning(): |
|
65 |
"""Print warning if remote API is not enabled. |
|
66 |
|
|
67 |
""" |
|
68 |
if constants.RAPI_ENABLE or not qa_config.TestEnabled('rapi'): |
|
69 |
return |
|
70 |
msg = ("Remote API is not enabled in this Ganeti build. Please run" |
|
71 |
" `configure [...] --enable-rapi'.") |
|
72 |
|
|
73 |
print qa_utils.FormatWarning(msg) |
|
61 |
return qa_config.TestEnabled('rapi') |
|
74 | 62 |
|
75 | 63 |
|
76 | 64 |
def _DoTests(uris): |
Also available in: Unified diff