Skip to content

Commit e14b071

Browse files
removed shutdown testcase (maybe, calling System.exit)
1 parent 515e996 commit e14b071

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

plugins/maintenance/src/test/java/org/apache/cloudstack/maintenance/ManagementServerMaintenanceManagerImplTest.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -288,19 +288,6 @@ public void triggerShutdownCmdMsInUpStateAndOtherMsHostsInPreparingState() {
288288
});
289289
}
290290

291-
@Test
292-
public void triggerShutdownCmd() {
293-
ManagementServerHostVO msHost = mock(ManagementServerHostVO.class);
294-
Mockito.when(msHost.getState()).thenReturn(ManagementServerHost.State.ReadyToShutDown);
295-
Mockito.when(msHostDao.findById(1L)).thenReturn(msHost);
296-
TriggerShutdownCmd cmd = mock(TriggerShutdownCmd.class);
297-
Mockito.when(cmd.getManagementServerId()).thenReturn(1L);
298-
Mockito.when(clusterManagerMock.execute(anyString(), anyLong(), anyString(), anyBoolean())).thenReturn("Success");
299-
300-
spy.triggerShutdown(cmd);
301-
Mockito.verify(clusterManagerMock, Mockito.times(1)).execute(anyString(), anyLong(), anyString(), anyBoolean());
302-
}
303-
304291
@Test
305292
public void prepareForMaintenanceAndCancelFromMaintenanceState() {
306293
Mockito.doNothing().when(jobManagerMock).disableAsyncJobs();

0 commit comments

Comments
 (0)