$scope.deleteOrResume = function() {
var msoParameterList = [({id: "lcpRegion", value: $scope.regionSelection.optionId})];
+ msoParameterList.push({id: FIELD.ID.LCP_REGION_TEXT, value: $scope.regionSelection.legacyRegion});
msoParameterList.push({id: "tenant", value: $scope.regionSelection.tenant});
var requestParams = {};
};
var buildCloudConfiguration = function (parameterList) {
- var lcpRegion;
- var cloudOwner;
var lcpRegionOptionId = getValueFromList(FIELD.ID.LCP_REGION, parameterList);
var cloudOwnerAndLcpCloudRegion = DataService.getCloudOwnerAndLcpCloudRegionFromOptionId(lcpRegionOptionId);
- if (cloudOwnerAndLcpCloudRegion.cloudRegionId === FIELD.KEY.LCP_REGION_TEXT) {
- lcpRegion = getValueFromList(FIELD.ID.LCP_REGION_TEXT,
- parameterList);
- cloudOwner = undefined;
- } else {
- var cloudOwnerAndLcpCloudRegion = DataService.getCloudOwnerAndLcpCloudRegionFromOptionId(lcpRegionOptionId);
- lcpRegion = cloudOwnerAndLcpCloudRegion.cloudRegionId;
- cloudOwner = cloudOwnerAndLcpCloudRegion.cloudOwner;
- }
+ var cloudOwner = cloudOwnerAndLcpCloudRegion.cloudOwner;
+ var lcpRegion = cloudOwnerAndLcpCloudRegion.cloudRegionId === FIELD.KEY.LCP_REGION_TEXT ?
+ getValueFromList(FIELD.ID.LCP_REGION_TEXT,parameterList) :
+ cloudOwnerAndLcpCloudRegion.cloudRegionId;
return {
lcpCloudRegionId: lcpRegion,
SimulatorApi.registerExpectationFromPresets(
ImmutableList.of (
new PresetAAIGetTenants(),
- PresetAAIGetCloudOwnersByCloudRegionId.PRESET_MDT1_TO_ATT_NC,
- new PresetMSOCreateVfModule(serviceInstanceId,vnfInstanceId, ATT_NC),
+ new PresetMSOCreateVfModule(serviceInstanceId,vnfInstanceId, DEFAULT_CLOUD_OWNER),
new PresetMSOOrchestrationRequestGet(
COMPLETE,
"c0011670-0e1a-4b74-945d-8bf5aede1d9c",
package vid.automation.test.test;
+import static org.onap.simulator.presetGenerator.presets.BasePresets.BaseMSOPreset.DEFAULT_CLOUD_OWNER;
+import static org.onap.simulator.presetGenerator.presets.aai.PresetAAIGetCloudOwnersByCloudRegionId.MDT_1;
+import static org.onap.simulator.presetGenerator.presets.aai.PresetAAIGetCloudOwnersByCloudRegionId.PRESET_MDT1_TO_ATT_NC;
+import static org.onap.simulator.presetGenerator.presets.aai.PresetAAIGetCloudOwnersByCloudRegionId.PRESET_SOME_LEGACY_REGION_TO_ATT_AIC;
+import static org.onap.simulator.presetGenerator.presets.aai.PresetAAIGetCloudOwnersByCloudRegionId.SOME_LEGACY_REGION;
+import static vid.automation.test.services.SimulatorApi.RegistrationStrategy.APPEND;
+
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
+import java.util.List;
+import java.util.stream.Collectors;
import org.junit.Assert;
+import org.onap.sdc.ci.tests.datatypes.UserCredentials;
+import org.onap.sdc.ci.tests.utilities.GeneralUIUtils;
import org.onap.simulator.presetGenerator.presets.BasePresets.BaseMSOPreset;
import org.onap.simulator.presetGenerator.presets.aai.PresetAAIGetSubscribersGet;
import org.onap.simulator.presetGenerator.presets.mso.PresetMSOCreateVfModuleOldViewEdit;
import org.onap.simulator.presetGenerator.presets.mso.PresetMSOCreateVnfALaCarteOldViewEdit;
import org.onap.simulator.presetGenerator.presets.mso.PresetMSOCreateVolumeGroupOldViewEdit;
-import org.onap.sdc.ci.tests.datatypes.UserCredentials;
-import org.onap.sdc.ci.tests.utilities.GeneralUIUtils;
import org.openqa.selenium.WebElement;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider;
import vid.automation.test.services.ServicesService;
import vid.automation.test.services.SimulatorApi;
-import java.util.List;
-import java.util.stream.Collectors;
-
-import static org.onap.simulator.presetGenerator.presets.aai.PresetAAIGetCloudOwnersByCloudRegionId.*;
-import static vid.automation.test.services.SimulatorApi.RegistrationStrategy.APPEND;
-
public class ALaCarteflowTest extends CreateInstanceDialogBaseTest {
static final String SUBSCRIBER = "Emanuel";
VNF_ID,
vfModuleName,
msoTestApiValue,
- ATT_NC)),
+ DEFAULT_CLOUD_OWNER)),
SimulatorApi.RegistrationStrategy.APPEND);
SimulatorApi.clearAll();
BulkRegistration.resumeVfModule(serviceInstanceId,vnfInstanceId);
navigateToViewEditPageOfuspVoiceVidTest444("240376de-870e-48df-915a-31f140eedd2c");
- resumeVFModule("aa","AAIAIC25", "AIC", "092eb9e8e4b7412e8787dd091bc58e86","mdt1",user.tenants);
+ resumeVFModule("aa","AAIAIC25", "AIC", "092eb9e8e4b7412e8787dd091bc58e86","hvf6",user.tenants);
}
-}
\ No newline at end of file
+}