Revision e42b5307 qa/qa_instance.py

b/qa/qa_instance.py
63 63
    raise
64 64

  
65 65

  
66
@qa_utils.DefineHook('instance-add-plain-disk')
66 67
def TestInstanceAddWithPlainDisk(node):
67 68
  """gnt-instance add -t plain"""
68 69
  return _DiskTest(node['primary'], 'plain')
69 70

  
70 71

  
72
@qa_utils.DefineHook('instance-add-local-mirror-disk')
71 73
def TestInstanceAddWithLocalMirrorDisk(node):
72 74
  """gnt-instance add -t local_raid1"""
73 75
  return _DiskTest(node['primary'], 'local_raid1')
74 76

  
75 77

  
78
@qa_utils.DefineHook('instance-add-remote-raid-disk')
76 79
def TestInstanceAddWithRemoteRaidDisk(node, node2):
77 80
  """gnt-instance add -t remote_raid1"""
78 81
  return _DiskTest("%s:%s" % (node['primary'], node2['primary']),
79 82
                   'remote_raid1')
80 83

  
81 84

  
85
@qa_utils.DefineHook('instance-remove')
82 86
def TestInstanceRemove(instance):
83 87
  """gnt-instance remove"""
84 88
  master = qa_config.GetMasterNode()
......
90 94
  qa_config.ReleaseInstance(instance)
91 95

  
92 96

  
97
@qa_utils.DefineHook('instance-startup')
93 98
def TestInstanceStartup(instance):
94 99
  """gnt-instance startup"""
95 100
  master = qa_config.GetMasterNode()
......
99 104
                       utils.ShellQuoteArgs(cmd)).wait(), 0)
100 105

  
101 106

  
107
@qa_utils.DefineHook('instance-shutdown')
102 108
def TestInstanceShutdown(instance):
103 109
  """gnt-instance shutdown"""
104 110
  master = qa_config.GetMasterNode()
......
108 114
                       utils.ShellQuoteArgs(cmd)).wait(), 0)
109 115

  
110 116

  
117
@qa_utils.DefineHook('instance-reinstall')
111 118
def TestInstanceReinstall(instance):
112 119
  """gnt-instance reinstall"""
113 120
  master = qa_config.GetMasterNode()
......
117 124
                       utils.ShellQuoteArgs(cmd)).wait(), 0)
118 125

  
119 126

  
127
@qa_utils.DefineHook('instance-failover')
120 128
def TestInstanceFailover(instance):
121 129
  """gnt-instance failover"""
122 130
  master = qa_config.GetMasterNode()
......
126 134
                       utils.ShellQuoteArgs(cmd)).wait(), 0)
127 135

  
128 136

  
137
@qa_utils.DefineHook('instance-info')
129 138
def TestInstanceInfo(instance):
130 139
  """gnt-instance info"""
131 140
  master = qa_config.GetMasterNode()
......
135 144
                       utils.ShellQuoteArgs(cmd)).wait(), 0)
136 145

  
137 146

  
147
@qa_utils.DefineHook('instance-list')
138 148
def TestInstanceList():
139 149
  """gnt-instance list"""
140 150
  master = qa_config.GetMasterNode()
......
144 154
                       utils.ShellQuoteArgs(cmd)).wait(), 0)
145 155

  
146 156

  
157
@qa_utils.DefineHook('backup-export')
147 158
def TestInstanceExport(instance, node):
148 159
  """gnt-backup export"""
149 160
  master = qa_config.GetMasterNode()
......
155 166
  return qa_utils.ResolveInstanceName(instance)
156 167

  
157 168

  
169
@qa_utils.DefineHook('backup-import')
158 170
def TestInstanceImport(node, newinst, expnode, name):
159 171
  """gnt-backup import"""
160 172
  master = qa_config.GetMasterNode()
......
171 183
                       utils.ShellQuoteArgs(cmd)).wait(), 0)
172 184

  
173 185

  
186
@qa_utils.DefineHook('backup-list')
174 187
def TestBackupList(expnode):
175 188
  """gnt-backup list"""
176 189
  master = qa_config.GetMasterNode()

Also available in: Unified diff