use of org.ovirt.engine.api.model.PowerManagementStatus in project ovirt-engine by oVirt.
the class BackendHostResourceTest method testFenceStatus.
@Test
public void testFenceStatus() throws Exception {
FenceOperationResult retVal = new FenceOperationResult(FenceOperationResult.Status.SUCCESS, PowerStatus.ON);
setUpEntityQueryExpectations(QueryType.GetVdsFenceStatus, IdQueryParameters.class, new String[] { "Id" }, new Object[] { GUIDS[0] }, retVal);
Action action = new Action();
action.setFenceType(FenceType.STATUS.value());
verifyActionResponse(resource.fence(action));
PowerManagementStatus status = action.getPowerManagement().getStatus();
assertEquals(PowerManagementStatus.ON, status);
}
Aggregations