Revision 06fcbaf1

b/qa/qa-sample.json
6 6
  "os": "debian-etch",
7 7
  "mem": "512M",
8 8

  
9
  "rapi-user": "foobar",
10
  "rapi-pass": "barfoo",
11

  
9 12
  "# Lists of disk sizes": null,
10 13
  "disk": ["1G", "512M"],
11 14
  "disk-growth": ["2G", "768M"],
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