use of org.ovirt.engine.core.common.scheduling.parameters.ClusterPolicyCRUDParameters in project ovirt-engine by oVirt.
the class BackendWeightResource method remove.
@Override
public Response remove() {
ClusterPolicy entity = parent.getClusterPolicy();
updateEntityForRemove(entity, guid);
return performAction(ActionType.EditClusterPolicy, new ClusterPolicyCRUDParameters(entity.getId(), entity));
}
use of org.ovirt.engine.core.common.scheduling.parameters.ClusterPolicyCRUDParameters in project ovirt-engine by oVirt.
the class ClusterPolicyCRUDCommandTest method testCheckAddEditValidations.
@Test
public void testCheckAddEditValidations() {
Guid clusterPolicyId = new Guid("e754440b-76a6-4099-8235-4565ab4b5521");
ClusterPolicy clusterPolicy = new ClusterPolicy();
clusterPolicy.setId(clusterPolicyId);
ClusterPolicyCRUDCommand command = new ClusterPolicyCRUDCommand(new ClusterPolicyCRUDParameters(clusterPolicyId, clusterPolicy), null) {
@Override
protected void executeCommand() {
}
};
command.schedulingManager = schedulingManager;
assertTrue(command.checkAddEditValidations());
}
use of org.ovirt.engine.core.common.scheduling.parameters.ClusterPolicyCRUDParameters in project ovirt-engine by oVirt.
the class BackendFilterResource method remove.
@Override
public Response remove() {
ClusterPolicy entity = parent.getClusterPolicy();
updateEntityForRemove(entity, guid);
return performAction(ActionType.EditClusterPolicy, new ClusterPolicyCRUDParameters(entity.getId(), entity));
}
Aggregations