'user-name': '',
'port-number': '',
'artifact-list': []
- }
+ };
+ component.vnfcIdentifier = '346';
component.prepareReferenceObject();
expect(component.referenceDataObject['action-level']).toBe("vnf")
})
'port-number': '',
'artifact-list': []
}
-
+ component.vnfcIdentifier = '346';
component.prepareReferenceObject();
expect(component.referenceDataObject['action-level']).toBe("vnfc")
})
'user-name': '',
'port-number': '',
'artifact-list': []
- }
+ };
+ component.vnfcIdentifier = '346';
component.prepareReferenceObject();
expect(component.referenceDataObject['action-level']).toBe("vnf")
})
expect(fileSaved).toBe(undefined)
})
it('Save to appc file - should not process if device protocol is null ', () => {
+ component.tempAllData = [
+ {
+ action: "Configure",
+ scope: {
+ 'vnf-type': "testVnf"
+ }
+ }
+ ]
component.referenceDataObject.action = "Configure"
component.referenceDataObject['device-protocol'] = "test"
component.appData.template.templateData = { "test": "test" }
component.actionChanged = true
component.currentAction = "COnfigure"
let fileSaved = component.saveToAppc();
- //expect(fileSaved).toBe(undefined)
+ expect(fileSaved).toBe(undefined)
})
// it('uploadfile ', () => { let files = { 0: {name:'foo.XLS', size: