Revision 06fcbaf1 qa/qa_cluster.py
b/qa/qa_cluster.py | ||
---|---|---|
79 | 79 |
AssertEqual(StartSSH(master['primary'], |
80 | 80 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
81 | 81 |
|
82 |
# Create RAPI credentials |
|
83 |
rapi_user = qa_config.get("rapi-user", default=None) |
|
84 |
rapi_pass = qa_config.get("rapi-pass", default=None) |
|
85 |
|
|
86 |
if rapi_user and rapi_pass: |
|
87 |
cmds = [] |
|
88 |
|
|
89 |
cred_string = "%s %s write" % (rapi_user, rapi_pass) |
|
90 |
cmds.append(("echo %s >> %s" % |
|
91 |
(utils.ShellQuote(cred_string), |
|
92 |
utils.ShellQuote(constants.RAPI_USERS_FILE)))) |
|
93 |
cmds.append("%s stop-master" % constants.DAEMON_UTIL) |
|
94 |
cmds.append("%s start-master" % constants.DAEMON_UTIL) |
|
95 |
AssertEqual(StartSSH(master['primary'], ' && '.join(cmds)).wait(), 0) |
|
96 |
|
|
82 | 97 |
|
83 | 98 |
def TestClusterRename(): |
84 | 99 |
"""gnt-cluster rename""" |
Also available in: Unified diff