aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/vnfs/build-artifacts
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-08-31 21:32:39 +0530
committerTakamune Cho <tc012c@att.com>2018-08-31 23:00:51 +0000
commitf59bdd9c64e34099137182e7ccc5cd6ed20cd78a (patch)
treedd74135016584e28b0ba14acacdb74da7242e905 /src/app/vnfs/build-artifacts
parentc3c51c9d900ce0fea0e852ed4b2ca3c792c2e6cc (diff)
build-artifacts.component.spec- added test cases
added test case to cover setAllowotherUpdates function and to test a condition in checkRefDataReqFields() function Issue-ID: APPC-1064 Change-Id: I01bbd061894b98e6afe07b4fc8f87dab65d2378d Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'src/app/vnfs/build-artifacts')
-rw-r--r--src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts6
1 files changed, 5 insertions, 1 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 af711da..4635d1d 100644
--- a/src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts
+++ b/src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts
@@ -162,7 +162,7 @@ describe('BuildDesignComponent', () => {
it('Should notify error message if no valid template identifier', () => {
let spy = spyOn(NotificationsService.prototype, 'error');
- component.refList = {"action": "ConfigScaleOut", "scope": {"vnf-type": "test 1"}, "device-protocol": ""};
+ component.refList = {"action": "ConfigScaleOut", "scope": {"vnf-type": "test 1"}, "device-protocol": "ANSIBLE"};
component.checkRefDataReqFields();
@@ -177,4 +177,8 @@ describe('BuildDesignComponent', () => {
expect(spy).toHaveBeenCalled();
});
+
+ it('Should test setAllowOtherUpdates method', ()=> {
+ component.setAllowOtherUpdates(true);
+ });
});