def run_L1_hostOS_crash(parser): #preprocess preprocess.preprocess(parser) #process process.exec_crasher(parser) #assert Assert.detect_hostOS_crash(parser) Assert.do_recovery(parser) Assert.is_running_on_backup(parser)
def run_L1_primary_hardware_crash_singleVM_restart(parser): """ test after node OS crash, vm will restart on another node or not and node's role will change or not """ #preprocess preprocess.preprocess(parser) print 401 #process process.exec_L1_hostOS_shutdown(parser) print 402 #assert Assert.detect_hostOS_crash(parser) print 403 Assert.vm_running_in_backupOS(parser) print 404 Assert.hostOS_role_is_Slave_on_BackupOS(parser) print 405 Assert.backupOS_role_is_Master_on_BackupOS(parser) print 406
def run_L1_hostOS_network_isolation(parser): """ general architecture hostOS crash """ #preprocess preprocess.preprocess(parser) print 401 #process process.exec_L1_hostOS_network_isolation(parser) print 402 #assert Assert.vm_running_in_backupOS(parser) print 403 Assert.detect_hostOS_crash(parser) print 404 Assert.hostOS_role_is_Slave_on_BackupOS(parser) print 405 Assert.backupOS_role_is_Master_on_BackupOS(parser) print 406
def run_L1_backupOS_network_isolation(parser): """ general architecture hostOS crash """ #preprocess preprocess.preprocess(parser) print 11 #process process.exec_L1_backupOS_network_isolation(parser) print 12 #assert Assert.vm_running_in_hostOS(parser) print 1 Assert.vm_is_login_in_hostOS(parser) print 2 Assert.detect_hostOS_crash(parser) print 3 Assert.backupOS_role_is_Slave_on_MasterOS(parser) print 4 Assert.hostOS_role_is_Master(parser) print 5
def run_L1_hostOS_crash(parser): """ general architecture hostOS crash """ #preprocess preprocess.preprocess(parser) print 116 #process process.exec_L1_hostOS_shutdown(parser) print 117 #assert Assert.vm_running_in_backupOS(parser) print 118 Assert.vm_is_login_in_backupOS(parser) print 119 Assert.detect_hostOS_crash(parser) print 110 Assert.hostOS_role_is_Slave_on_BackupOS(parser) print 111 Assert.backupOS_role_is_Master_on_BackupOS(parser) print 112