Revision 283f9d4c qa/qa_cluster.py

b/qa/qa_cluster.py
53 53

  
54 54
def TestClusterVerify():
55 55
  """gnt-cluster verify"""
56
  cmd = ['gnt-cluster', 'verify']
57 56
  master = qa_config.GetMasterNode()
58 57

  
58
  cmd = ['gnt-cluster', 'verify']
59 59
  AssertEqual(StartSSH(master['primary'],
60 60
                       utils.ShellQuoteArgs(cmd)).wait(), 0)
61 61

  
62 62

  
63 63
def TestClusterInfo():
64 64
  """gnt-cluster info"""
65
  master = qa_config.GetMasterNode()
66

  
65 67
  cmd = ['gnt-cluster', 'info']
68
  AssertEqual(StartSSH(master['primary'],
69
                       utils.ShellQuoteArgs(cmd)).wait(), 0)
70

  
71

  
72
def TestClusterGetmaster():
73
  """gnt-cluster getmaster"""
66 74
  master = qa_config.GetMasterNode()
67 75

  
76
  cmd = ['gnt-cluster', 'getmaster']
77
  AssertEqual(StartSSH(master['primary'],
78
                       utils.ShellQuoteArgs(cmd)).wait(), 0)
79

  
80

  
81
def TestClusterVersion():
82
  """gnt-cluster version"""
83
  master = qa_config.GetMasterNode()
84

  
85
  cmd = ['gnt-cluster', 'version']
68 86
  AssertEqual(StartSSH(master['primary'],
69 87
                       utils.ShellQuoteArgs(cmd)).wait(), 0)
70 88

  
......
149 167

  
150 168
def TestClusterDestroy():
151 169
  """gnt-cluster destroy"""
152
  cmd = ['gnt-cluster', 'destroy', '--yes-do-it']
153 170
  master = qa_config.GetMasterNode()
154 171

  
172
  cmd = ['gnt-cluster', 'destroy', '--yes-do-it']
155 173
  AssertEqual(StartSSH(master['primary'],
156 174
                       utils.ShellQuoteArgs(cmd)).wait(), 0)

Also available in: Unified diff