summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/services
diff options
context:
space:
mode:
authorEylon Malin <eylon.malin@intl.att.com>2019-11-18 13:01:43 +0200
committerEylon Malin <eylon.malin@intl.att.com>2019-11-18 13:01:43 +0200
commitf351975cd32c9bc6c721746554fd17392c98fb32 (patch)
tree715eeddbf4b4ab9e6d946d5c3d9ab936bfa4965f /vid-webpack-master/src/app/shared/services
parentf886b56f7a0a105a1d0dc8edd5539348d606eb49 (diff)
when automatically add aLaCarte VfModule, rollbackOnFailure is true
Issue-ID: VID-701 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: Ide9d3436a9ba281fb4b02ae308da00bd4a121108
Diffstat (limited to 'vid-webpack-master/src/app/shared/services')
-rw-r--r--vid-webpack-master/src/app/shared/services/defaultDataServiceGenerator/default.data.generator.service.spec.ts2
-rw-r--r--vid-webpack-master/src/app/shared/services/defaultDataServiceGenerator/default.data.generator.service.ts1
2 files changed, 3 insertions, 0 deletions
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,
};
}