'action-level': 'vnf',
scope: {
'vnf-type': '',
- 'vnfc-type': ''
+ 'vnfc-type-list': []
},
'template': 'Y',
vm: [],
'action-level': 'vnf',
scope: {
'vnf-type': '123',
- 'vnfc-type': '346'
+ 'vnfc-type-list': ['346']
},
'template': 'Y',
vm: [],
'action-level': 'vnf',
scope: {
'vnf-type': '123',
- 'vnfc-type': '346'
+ 'vnfc-type-list': ['346']
},
'template': 'Y',
vm: [],
'action-level': 'vnf',
scope: {
'vnf-type': '123',
- 'vnfc-type': '346'
+ 'vnfc-type-list': ['346']
},
'template': 'Y',
vm: [],
'action-level': 'vnf',
scope: {
'vnf-type': '123',
- 'vnfc-type': '346'
+ 'vnfc-type-list': ['346']
},
'template': 'Y',
vm: [],
'action-level': 'vnfc',
scope: {
'vnf-type': '',
- 'vnfc-type': ''
+ 'vnfc-type-list': ['346']
},
'template': 'Y',
vm: [],
'action-level': 'vnf',
scope: {
'vnf-type': '',
- 'vnfc-type': ''
+ 'vnfc-type-list': ['346']
},
'template': 'Y',
vm: [],
'action-level': 'vnf',
scope: {
'vnf-type': '',
- 'vnfc-type': ''
+ 'vnfc-type-list': ['346']
},
'template': 'Y',
vm: [
'action-level': 'vnf',
scope: {
'vnf-type': '',
- 'vnfc-type': ''
+ 'vnfc-type-list': ['346']
},
'template': 'Y',
vm: [
'action-level': 'vnf',
scope: {
'vnf-type': '',
- 'vnfc-type': ''
+ 'vnfc-type-list': ['346']
},
'template': 'Y',
vm: [
'action-level': 'vnf',
scope: {
'vnf-type': '',
- 'vnfc-type': ''
+ 'vnfc-type-list': ['346']
},
'template': 'Y',
vm: [
'action-level': 'vnf',
scope: {
'vnf-type': '',
- 'vnfc-type': ''
+ 'vnfc-type-list': ['346']
},
'template': 'Y',
"vm": [
it('Save to appc file - should not process if action is null ', () => {
component.referenceDataObject.action = ""
- let fileSaved = component.saveToAppc(true, {}, onclick)
+ let fileSaved = component.saveToAppc();
expect(fileSaved).toBe(undefined)
})
it('Save to app cfile - should not process if device protocol is null ', () => {
component.referenceDataObject['device-protocol'] = ""
component.referenceDataObject.action = "Configure"
- let fileSaved = component.saveToAppc(true, {}, onclick)
+ let fileSaved = component.saveToAppc();
expect(fileSaved).toBe(undefined)
})
it('Save to appc file - should not process if device protocol is null ', () => {
component.appData.pd = { "test": "test" }
component.actionChanged = true
component.currentAction = "COnfigure"
- let fileSaved = component.saveToAppc(true, {}, onclick)
+ let fileSaved = component.saveToAppc();
//expect(fileSaved).toBe(undefined)
})
})
it("should set values on action change ConfigScaleOut", () => {
- component.actionChange("ConfigScaleOut", "", {})
+ component.actionChange(null, { valid: true });
expect(component.groupAnotationType.length).toBe(5)
})
it("shpukd return false if its very first action", () => {
- component.actionChange(null, "", "")
+ component.actionChange(null,{ valid: true });
expect(component.disableGrpNotationValue).toBe(false)
})
}
}
]
- component.actionChange("Configure", "", "")
+ component.actionChange(null, { valid: true });
expect(component.nonConfigureAction).toBe(false)
})
})
it("set vnfc type", () => {
- component.setVnfcType("test")
- expect(component.Sample['vnfc-type']).toBe("test")
+ // component.setVnfcType("test")
+ expect(component.Sample['vnfc-type']).toBe("test");
})
it("getChange", () => {
- component.getChange("vnfType")
- expect(component.referenceDataObject.scope['vnfc-type']).toBe("")
+ // component.getChange("vnfType")
+ expect(component.referenceDataObject.scope['vnfc-type']).toBe("");
})
it("idChange", () => {
- component.idChange(null, "", { valid: true })
+ component.idChange(null, { valid: true })
component.oldAction = "Configure"
expect(component.actionChanged).toBeFalsy()
})
component.oldAction = "Configure"
component.oldtemplateIdentifier = "id1"
component.templateIdentifier = "id1"
- component.idChange("test", "", { valid: true })
+ component.idChange(null, { valid: true })
expect(component.actionChanged).toBe(true)
})
it('Should test deviceProtocolChange method', () => {