added test case to param name value component spec 39/56739/3
authorSandeep J <sandeejh@in.ibm.com>
Wed, 18 Jul 2018 12:51:14 +0000 (18:21 +0530)
committerTakamune Cho <tc012c@att.com>
Thu, 19 Jul 2018 20:53:25 +0000 (20:53 +0000)
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>
src/app/vnfs/build-artifacts/template-holder/param-name-value/param-name-value.component.spec.ts

index 0ec9d9f..b9ac40f 100644 (file)
@@ -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