summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts21
1 files changed, 18 insertions, 3 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 48edb99..a1b4507 100644
--- a/src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts
+++ b/src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts
@@ -79,6 +79,7 @@ describe('BuildDesignComponent', () => {
declarations: [BuildDesignComponent, HomeComponent, TestComponent, HelpComponent, AboutUsComponent, LogoutComponent],
schemas: [NO_ERRORS_SCHEMA],
imports: [HttpModule, FormsModule, RouterTestingModule.withRoutes(routes)],
+ providers : [ NotificationsService ]
})
.compileComponents();
@@ -95,7 +96,23 @@ describe('BuildDesignComponent', () => {
});
it('Should validate getRefData method', () => {
- let refData = {"action": "Configure", "vnf-type": "test 1", "device-protocol": "ANSIBLE"};
+ let refData = {"action":"Configure",
+ "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"
+ };
+
component.refDataRequiredFiels = false;
component.getRefData(refData);
expect(component.refDataRequiredFiels).toBeTruthy();
@@ -128,6 +145,4 @@ describe('BuildDesignComponent', () => {
expect(spy).toHaveBeenCalled();
});
-
-
});