use of org.ovirt.engine.core.common.businessentities.Quota in project ovirt-engine by oVirt.
the class QuotaManagerTest method mockVCPUQuotaGlobalOverGrace.
/**
* Call by Guid: {@literal VCPU_QUOTA_GLOBAL_OVER_GRACE}
*/
private Quota mockVCPUQuotaGlobalOverGrace() {
Quota quota = mockBasicQuota();
quota.setId(VCPU_QUOTA_GLOBAL_OVER_GRACE);
quota.setGlobalQuotaCluster(getQuotaCluster(100, 132, UNLIMITED_MEM, 0));
return quota;
}
use of org.ovirt.engine.core.common.businessentities.Quota in project ovirt-engine by oVirt.
the class QuotaManagerTest method mockStorageQuotaSpecificNotExceeded.
// ///////////////////// Storage specific ////////////////////////////
/**
* Call by Guid: {@literal STORAGE_QUOTA_SPECIFIC_NOT_EXCEEDED}
*/
private Quota mockStorageQuotaSpecificNotExceeded() {
Quota quota = mockBasicQuota();
quota.setId(STORAGE_QUOTA_SPECIFIC_NOT_EXCEEDED);
quota.setQuotaStorages(getQuotaStorages(100, 73));
return quota;
}
use of org.ovirt.engine.core.common.businessentities.Quota in project ovirt-engine by oVirt.
the class QuotaManagerTest method mockStorageQuotaGlobalOverGrace.
/**
* Call by Guid: {@literal STORAGE_QUOTA_GLOBAL_OVER_GRACE}
*/
private Quota mockStorageQuotaGlobalOverGrace() {
Quota quota = mockBasicQuota();
quota.setId(STORAGE_QUOTA_GLOBAL_OVER_GRACE);
quota.setGlobalQuotaStorage(getQuotaStorage(100, 140));
return quota;
}
use of org.ovirt.engine.core.common.businessentities.Quota in project ovirt-engine by oVirt.
the class QuotaManagerTest method mockDefaultQuota.
/**
* Call by Guid: {@literal DEFAULT_QUOTA_FOR_STORAGE_POOL}
*/
private Quota mockDefaultQuota() {
Quota quota = mockBasicQuota();
quota.setId(DEFAULT_QUOTA_FOR_STORAGE_POOL);
quota.setGlobalQuotaCluster(getQuotaCluster(UNLIMITED_VCPU, 0, UNLIMITED_MEM, 0));
quota.setGlobalQuotaStorage(getQuotaStorage(UNLIMITED_STORAGE, 0));
return quota;
}
use of org.ovirt.engine.core.common.businessentities.Quota in project ovirt-engine by oVirt.
the class QuotaManagerTest method mockVCPUQuotaSpecificOverThreshold.
/**
* Call by Guid: {@literal VCPU_QUOTA_SPECIFIC_OVER_THRESHOLD}
*/
private Quota mockVCPUQuotaSpecificOverThreshold() {
Quota quota = mockBasicQuota();
quota.setId(VCPU_QUOTA_SPECIFIC_OVER_THRESHOLD);
quota.setQuotaClusters(getQuotaClusters(100, 96, UNLIMITED_MEM, 0));
return quota;
}
Aggregations