Product family ID on VNF should be mandatory 73/100373/5
authorEinat Vinouze <einat.vinouze@intl.att.com>
Thu, 16 Jan 2020 14:03:24 +0000 (16:03 +0200)
committerEinat Vinouze <einat.vinouze@intl.att.com>
Thu, 23 Jan 2020 12:07:16 +0000 (14:07 +0200)
Issue-ID: VID-751
Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com>
Change-Id: I884651be334c543b7f4ec1a55b7542a95b2c8fe3
Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com>
vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOCreateVnfALaCarteE2E.java
vid-automation/src/main/java/vid/automation/test/test/NewServiceInstanceTest.java
vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/vnfGenerator/vnf.control.generator.spec.ts
vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/vnfGenerator/vnf.control.generator.ts

index dba42f3..c00054d 100644 (file)
@@ -40,6 +40,7 @@ public class PresetMSOCreateVnfALaCarteE2E extends PresetMSOCreateVnfBase {
             + "            \"tenantId\": \"092eb9e8e4b7412e8787dd091bc58e86\""
             + "        },"
             + "        \"requestInfo\": {"
+            + "            \"productFamilyId\":\"e433710f-9217-458d-a79d-1c7aff376d89\","
             + "            \"source\": \"VID\","
             + "            \"suppressRollback\": false,"
             + "            \"requestorId\": \""+requestorId+"\""
index eb3406f..3caf59e 100644 (file)
@@ -1184,12 +1184,15 @@ public class NewServiceInstanceTest extends ModernUITestBase {
 
         browseASDCPage.selectTenant("092eb9e8e4b7412e8787dd091bc58e86");
 
+
         assertSetButtonDisabled(VNF_SET_BUTTON_TEST_ID);
 
         if(isNetwork){
             browseASDCPage.selectPlatform("platform");
         }else {
             SelectOption.selectOptionsFromMultiselectById("multi-selectPlatform", ImmutableList.of("platform"));
+            SelectOption.byTestIdAndVisibleText("TYLER SILVIA", Constants.ViewEdit.PRODUCT_FAMILY_SELECT_TESTS_ID);
+            browseASDCPage.selectProductFamily("e433710f-9217-458d-a79d-1c7aff376d89");
         }
 
         browseASDCPage.selectLineOfBusiness("ONAP");
index 018130e..4572fa4 100644 (file)
@@ -957,7 +957,8 @@ describe('VNF Control Generator', () => {
       FormControlNames.INSTANCE_NAME,
       FormControlNames.LCPCLOUD_REGION_ID,
       FormControlNames.TENANT_ID,
-      'platformName'
+      'platformName',
+      FormControlNames.PRODUCT_FAMILY_ID
     ];
 
     for(let i = 0 ; i < mandatoryControls.length ; i++){
index 14b31b4..169780b 100644 (file)
@@ -50,7 +50,7 @@ export class VnfControlGenerator {
 
     if (!_.isNil(vnfModel)) {
       result.push(this.getInstanceName(vnfInstance, serviceId, vnfName, vnfModel.isEcompGeneratedNaming));
-      result.push(this._sharedControllersService.getProductFamilyControl(vnfInstance, result, false));
+      result.push(this._sharedControllersService.getProductFamilyControl(vnfInstance, result, true));
       result.push(this._sharedControllersService.getLcpRegionControl(serviceId, vnfInstance, result));
       result.push(this._sharedControllersService.getLegacyRegion(vnfInstance));
       result.push(this._sharedControllersService.getTenantControl(serviceId, vnfInstance));
@@ -74,7 +74,7 @@ export class VnfControlGenerator {
     if (!_.isNil(vnfModel)) {
       const flags = this.store.getState().global.flags;
       result.push(this.getInstanceName(vnfInstance, serviceId, vnfName, vnfModel.isEcompGeneratedNaming));
-      result.push(this._sharedControllersService.getProductFamilyControl(vnfInstance, result, false));
+      result.push(this._sharedControllersService.getProductFamilyControl(vnfInstance, result, true));
       result.push(this._sharedControllersService.getLcpRegionControl(serviceId, vnfInstance, result));
       result.push(this._sharedControllersService.getLegacyRegion(vnfInstance));
       result.push(this._sharedControllersService.getTenantControl(serviceId, vnfInstance));