summaryrefslogtreecommitdiffstats
path: root/src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-09-06 16:20:02 +0530
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>2018-09-06 16:23:45 +0530
commitaaa7a6bff269b7ee7a6277722cee5fd0ae081aa9 (patch)
treef93b1a935519cccc7680b3d7d29d2b628ea07ba8 /src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts
parent5f26dcb3bf5ffd0ea7ecde73e0a7329c4e638e01 (diff)
build-artifacts.component: added test case
wrote test case to test and cover newly added lines of code in build-artifacts component. Issue-ID: APPC-1064 Change-Id: I0cf6a4973b13dd493b48a96a34ca708bcb4a6ceb Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts')
-rw-r--r--src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts b/src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts
index 4635d1d..435c8b7 100644
--- a/src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts
+++ b/src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts
@@ -181,4 +181,27 @@ describe('BuildDesignComponent', () => {
it('Should test setAllowOtherUpdates method', ()=> {
component.setAllowOtherUpdates(true);
});
+
+ it('Should test setAllowOtherUpdates method', ()=> {
+ let refData = {"action":"ConfigScaleOut",
+ "action-level":"vnf",
+ "scope": {
+ "vnf-type":"ticktack",
+ "vnfc-type":""
+ },
+ "template":"Y",
+ "vm":[],
+ "device-protocol":"CHEF",
+ "user-name":"",
+ "port-number":"",
+ "artifact-list":[
+ {"artifact-name":"template_Configure_ticktack_0.0.1V.json","artifact-type":"config_template"},
+ {"artifact-name":"pd_Configure_ticktack_0.0.1V.yaml","artifact-type":"parameter_definitions"}],
+ "scopeType":"vnf-type"
+ };
+
+ let reqObj = {'reqField': true}
+ component.getRefData(refData, reqObj);
+ expect(component.refDataRequiredFiels).toBe(true);
+ });
});