aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/vnfs/build-artifacts
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-07-18 18:21:14 +0530
committerTakamune Cho <tc012c@att.com>2018-07-19 20:53:25 +0000
commit3b3b7117db19bf4d0086ee7eced0432380f55782 (patch)
tree82e23c37e443e91f5f188a834e7b3714e4a1f06f /src/app/vnfs/build-artifacts
parentfcc51078df3cb60083155effc3104a57cb5f01cc (diff)
added test case to param name value component spec
added test case to param-name-value.spec.ts to increase code coverage Issue-ID: APPC-1089 Change-Id: I2598eb2b3b7f7551f89f26e2ec6d8f820466cd42 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'src/app/vnfs/build-artifacts')
-rw-r--r--src/app/vnfs/build-artifacts/template-holder/param-name-value/param-name-value.component.spec.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/app/vnfs/build-artifacts/template-holder/param-name-value/param-name-value.component.spec.ts b/src/app/vnfs/build-artifacts/template-holder/param-name-value/param-name-value.component.spec.ts
index 0ec9d9f..b9ac40f 100644
--- a/src/app/vnfs/build-artifacts/template-holder/param-name-value/param-name-value.component.spec.ts
+++ b/src/app/vnfs/build-artifacts/template-holder/param-name-value/param-name-value.component.spec.ts
@@ -3,6 +3,8 @@
===================================================================
Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
===================================================================
+Copyright (C) 2018 IBM.
+===================================================================
Unless otherwise specified, all software contained herein is licensed
under the Apache License, Version 2.0 (the License);
@@ -276,4 +278,13 @@ describe('GoldenConfigurationMappingComponent', () => {
expect(spy).toHaveBeenCalled();
});
+
+ it('should validate of the file name creation for configscaleout is correct', () => {
+ fixture = TestBed.createComponent(GoldenConfigurationMappingComponent);
+ component = fixture.componentInstance;
+
+ let fileName=component.updateFileNameForConfigScaleOut('Configure','testVnfType','0.0.1','id1');
+ let expectedFileName="param_ Configure_testVnfType_0.0.1V_id1.json"
+ expect(expectedFileName).toBe(fileName);
+ });
}); \ No newline at end of file