Fixing ConfigurationManagerImpl to implement offering categories

This commit is contained in:
Landry JUGE 2026-03-18 21:47:07 +01:00
parent 104cb32974
commit ba7b6dc984
2 changed files with 4 additions and 4 deletions

View File

@ -3943,7 +3943,7 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati
diskParams.iopsWriteRate, diskParams.iopsWriteRateMax, diskParams.iopsWriteRateMaxLength,
diskParams.hypervisorSnapshotReserve, diskParams.cacheMode, customParams.storagePolicy, dynamicScalingEnabled,
diskOfferingId, diskOfferingStrictness, isCustomized, encryptRoot,
vgpuProfileId, finalGpuCount, gpuDisplay, purgeResources, leaseParams.leaseDuration, leaseParams.leaseExpiryAction);
vgpuProfileId, finalGpuCount, gpuDisplay, purgeResources, leaseParams.leaseDuration, leaseParams.leaseExpiryAction, sourceOffering.getCategoryId());
}
private ServiceOfferingVO getAndValidateSourceOffering(Long sourceOfferingId) {

View File

@ -251,7 +251,7 @@ public class ConfigurationManagerCloneIntegrationTest {
anyString(), anyMap(), anyLong(), any(Boolean.class),
anyLong(), anyLong(), anyLong(), anyLong(), anyLong(), anyLong(), anyLong(), anyLong(), anyLong(), anyLong(), anyLong(), anyLong(), anyLong(), anyLong(),
any(Integer.class), anyString(), anyLong(), anyBoolean(), anyLong(), anyBoolean(), anyBoolean(), anyBoolean(),
anyLong(), any(Integer.class), any(Boolean.class), anyBoolean(), any(Integer.class), any(VMLeaseManager.ExpiryAction.class)
anyLong(), any(Integer.class), any(Boolean.class), anyBoolean(), any(Integer.class), any(VMLeaseManager.ExpiryAction.class), anyLong()
);
ServiceOffering result = configurationManager.cloneServiceOffering(cmd);
@ -328,7 +328,7 @@ public class ConfigurationManagerCloneIntegrationTest {
anyLong(), anyLong(), anyLong(), anyLong(), anyLong(), anyLong(), anyLong(),
anyLong(), anyLong(), anyInt(), anyString(), anyLong(), anyBoolean(), anyLong(),
anyBoolean(), anyBoolean(), anyBoolean(), anyLong(), anyInt(), anyBoolean(),
anyBoolean(), anyInt(), any());
anyBoolean(), anyInt(), any(), anyLong());
ServiceOffering result = configurationManager.cloneServiceOffering(cmd);
@ -553,7 +553,7 @@ public class ConfigurationManagerCloneIntegrationTest {
anyLong(), anyLong(), anyLong(), anyLong(), anyLong(), anyLong(), anyLong(),
anyLong(), anyLong(), anyInt(), anyString(), anyLong(), anyBoolean(), anyLong(),
anyBoolean(), anyBoolean(), anyBoolean(), anyLong(), anyInt(), anyBoolean(),
anyBoolean(), anyInt(), any());
anyBoolean(), anyInt(), any(), anyLong());
ServiceOffering result = configurationManager.cloneServiceOffering(cmd);