Ejemplo n.º 1
0
 public async Task DMPendingMultiple_RMNone()
 {
     await RunCommonTestAsync(
         new TestRepairRecord[]
     {
         TestRepairRecord.CreateActive("machine1", "SoftReboot"),
         TestRepairRecord.CreateActive("machine2", "HardReboot"),
         TestRepairRecord.CreateActive("machine3", "SwitchService"),
         TestRepairRecord.CreateActive("machine4", "Reassign"),
         TestRepairRecord.CreatePending("machine1", "SoftReboot", TimeSpan.FromHours(72)),
         TestRepairRecord.CreatePending("machine2", "HardReboot", TimeSpan.FromHours(72)),
         TestRepairRecord.CreatePending("machine3", "SwitchService", TimeSpan.FromHours(72)),
         TestRepairRecord.CreatePending("machine4", "Reassign", TimeSpan.FromHours(72)),
     },
         new IRepairTask[]
     {
     },
         new string[]
     {
         "CreateRepairTaskInPreparing:MACHINE1/SoftReboot:Restart:False",
         "CreateRepairTaskInPreparing:MACHINE2/HardReboot:Restart:False",
         "CreateRepairTaskInPreparing:MACHINE3/SwitchService:Restart:False",
         "CreateRepairTaskInPreparing:MACHINE4/Reassign:RemoveData:False",
     });
 }
Ejemplo n.º 2
0
 public async Task DMActive_RMNone_NoOp()
 {
     await RunCommonTestAsync(
         new TestRepairRecord[]
     {
         TestRepairRecord.CreateActive("machine1", "NoOp"),
     },
         new IRepairTask[]
     {
     },
         new string[]
     {
     });
 }
Ejemplo n.º 3
0
 public async Task DMActive_RMExecuting()
 {
     await RunCommonTestAsync(
         new TestRepairRecord[]
     {
         TestRepairRecord.CreateActive("machine1", "SoftReboot"),
     },
         new IRepairTask[]
     {
         new MockRepairTask("AP/MACHINE1/SoftReboot/20170401-030813", "SoftReboot")
         {
             State = RepairTaskState.Executing,
         },
     },
         new string[]
     {
     });
 }