Revision 8a4e8898 qa/qa_instance.py

b/qa/qa_instance.py
111 111
                       utils.ShellQuoteArgs(cmd)).wait(), 0)
112 112

  
113 113

  
114
@qa_utils.DefineHook('instance-reboot')
115
def TestInstanceReboot(instance):
116
  """gnt-instance reboot"""
117
  master = qa_config.GetMasterNode()
118

  
119
  for reboottype in ["soft", "hard", "full"]:
120
    cmd = ['gnt-instance', 'reboot', '--type=%s' % reboottype,
121
           instance['name']]
122
    AssertEqual(StartSSH(master['primary'],
123
                         utils.ShellQuoteArgs(cmd)).wait(), 0)
124

  
125

  
114 126
@qa_utils.DefineHook('instance-reinstall')
115 127
def TestInstanceReinstall(instance):
116 128
  """gnt-instance reinstall"""

Also available in: Unified diff