From f351975cd32c9bc6c721746554fd17392c98fb32 Mon Sep 17 00:00:00 2001 From: Eylon Malin Date: Mon, 18 Nov 2019 13:01:43 +0200 Subject: when automatically add aLaCarte VfModule, rollbackOnFailure is true Issue-ID: VID-701 Signed-off-by: Eylon Malin Change-Id: Ide9d3436a9ba281fb4b02ae308da00bd4a121108 --- .../defaultDataServiceGenerator/default.data.generator.service.spec.ts | 2 ++ .../defaultDataServiceGenerator/default.data.generator.service.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/vid-webpack-master/src/app/shared/services/defaultDataServiceGenerator/default.data.generator.service.spec.ts b/vid-webpack-master/src/app/shared/services/defaultDataServiceGenerator/default.data.generator.service.spec.ts index a34f2fe20..03461eaa1 100644 --- a/vid-webpack-master/src/app/shared/services/defaultDataServiceGenerator/default.data.generator.service.spec.ts +++ b/vid-webpack-master/src/app/shared/services/defaultDataServiceGenerator/default.data.generator.service.spec.ts @@ -32,6 +32,7 @@ describe('Default Data Generator Service', () => { let result = service.generateVFModule(serviceHierarchy.vnfs[vnfUUID].vfModules[vnfModuleUUID], [], false, true); expect(result.isMissingData).toBeTruthy(); + expect(result.rollbackOnFailure).toBeTruthy(); }); test('generateVFModule should create vf module object', () => { @@ -51,6 +52,7 @@ describe('Default Data Generator Service', () => { expect(result.sdncPreReload).toBeNull(); expect(result.isMissingData).toBeTruthy(); expect(result.instanceParams).toEqual([{}]); + expect(result.rollbackOnFailure).toBeNull(); }); test('generateVNFData should create vnf object', () => { diff --git a/vid-webpack-master/src/app/shared/services/defaultDataServiceGenerator/default.data.generator.service.ts b/vid-webpack-master/src/app/shared/services/defaultDataServiceGenerator/default.data.generator.service.ts index b0baa82ec..3046b332a 100644 --- a/vid-webpack-master/src/app/shared/services/defaultDataServiceGenerator/default.data.generator.service.ts +++ b/vid-webpack-master/src/app/shared/services/defaultDataServiceGenerator/default.data.generator.service.ts @@ -328,6 +328,7 @@ export class DefaultDataGeneratorService { instanceParams ], 'trackById': DefaultDataGeneratorService.createRandomTrackById(), + 'rollbackOnFailure' : isALaCarte ? true : null, }; } -- cgit 1.2.3-korg