use of org.ovirt.engine.core.common.businessentities.Quota in project ovirt-engine by oVirt.
the class QuotaManagerTest method mockVCPUQuotaSpecificNotExceeded.
// ///////////////////// VCPU specific ////////////////////////////
/**
* Call by Guid: {@literal VCPU_QUOTA_SPECIFIC_NOT_EXCEEDED}
*/
private Quota mockVCPUQuotaSpecificNotExceeded() {
Quota quota = mockBasicQuota();
quota.setId(VCPU_QUOTA_SPECIFIC_NOT_EXCEEDED);
quota.setQuotaClusters(getQuotaClusters(100, 23, UNLIMITED_MEM, 0));
return quota;
}
use of org.ovirt.engine.core.common.businessentities.Quota in project ovirt-engine by oVirt.
the class QuotaManagerTest method mockStorageQuotaGlobalNotExceeded.
// ///////////////////// Storage global ////////////////////////////
/**
* Call by Guid: {@literal STORAGE_QUOTA_GLOBAL_NOT_EXCEEDED}
*/
private Quota mockStorageQuotaGlobalNotExceeded() {
Quota quota = mockBasicQuota();
quota.setId(STORAGE_QUOTA_GLOBAL_NOT_EXCEEDED);
quota.setGlobalQuotaStorage(getQuotaStorage(100, 9));
return quota;
}
use of org.ovirt.engine.core.common.businessentities.Quota in project ovirt-engine by oVirt.
the class QuotaManagerTest method mockMemQuotaSpecificOverGrace.
/**
* Call by Guid: {@literal MEM_QUOTA_SPECIFIC_OVER_GRACE}
*/
private Quota mockMemQuotaSpecificOverGrace() {
Quota quota = mockBasicQuota();
quota.setId(MEM_QUOTA_SPECIFIC_OVER_GRACE);
quota.setQuotaClusters(getQuotaClusters(UNLIMITED_VCPU, 0, 2048, 5000));
return quota;
}
use of org.ovirt.engine.core.common.businessentities.Quota in project ovirt-engine by oVirt.
the class QuotaManagerTest method mockVCPUQuotaGlobalInGrace.
/**
* Call by Guid: {@literal VCPU_QUOTA_GLOBAL_IN_GRACE}
*/
private Quota mockVCPUQuotaGlobalInGrace() {
Quota quota = mockBasicQuota();
quota.setId(VCPU_QUOTA_GLOBAL_IN_GRACE);
quota.setGlobalQuotaCluster(getQuotaCluster(100, 113, UNLIMITED_MEM, 0));
return quota;
}
use of org.ovirt.engine.core.common.businessentities.Quota in project ovirt-engine by oVirt.
the class QuotaManagerTest method mockStorageQuotaSpecificOverGrace.
/**
* Call by Guid: {@literal STORAGE_QUOTA_SPECIFIC_OVER_GRACE}
*/
private Quota mockStorageQuotaSpecificOverGrace() {
Quota quota = mockBasicQuota();
quota.setId(STORAGE_QUOTA_SPECIFIC_OVER_GRACE);
quota.setQuotaStorages(getQuotaStorages(100, 126));
return quota;
}
Aggregations