diff options
Diffstat (limited to 'tests/vfc/nfvo-lcm/jsoninput')
19 files changed, 442 insertions, 0 deletions
diff --git a/tests/vfc/nfvo-lcm/jsoninput/create_ns_instance.json b/tests/vfc/nfvo-lcm/jsoninput/create_ns_instance.json new file mode 100644 index 00000000..bed82d90 --- /dev/null +++ b/tests/vfc/nfvo-lcm/jsoninput/create_ns_instance.json @@ -0,0 +1,5 @@ +{ + "nsdId": "23", + "nsName": "ns23", + "nsDescription": "ns23 desc" +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-lcm/jsoninput/create_pnf.json b/tests/vfc/nfvo-lcm/jsoninput/create_pnf.json new file mode 100644 index 00000000..282e0af2 --- /dev/null +++ b/tests/vfc/nfvo-lcm/jsoninput/create_pnf.json @@ -0,0 +1,8 @@ +{ + "pnfId": "123", + "pnfName": "pnf1", + "pnfdId": "456", + "pnfdInfoId": "011234", + "pnfProfileId": "456788", + "cpInfo": "cp info" +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-lcm/jsoninput/create_sfc.json b/tests/vfc/nfvo-lcm/jsoninput/create_sfc.json new file mode 100644 index 00000000..e7fe0170 --- /dev/null +++ b/tests/vfc/nfvo-lcm/jsoninput/create_sfc.json @@ -0,0 +1,6 @@ +{ + "fpindex": "123", + "nsInstanceId": "123", + "context": "create sfc", + "sdnControllerId": "123" +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-lcm/jsoninput/create_subscription.json b/tests/vfc/nfvo-lcm/jsoninput/create_subscription.json new file mode 100644 index 00000000..553d38ce --- /dev/null +++ b/tests/vfc/nfvo-lcm/jsoninput/create_subscription.json @@ -0,0 +1,54 @@ +{ + "callbackUri": "/api/nslcm/v1/subscriptions", + "filter": { + "nsInstanceSubscriptionFilter": { + "nsdIds": [ + "3fa85f64-5717-4562-b3fc-2c963f66afa6" + ], + "vnfdIds": [ + "3fa85f64-5717-4562-b3fc-2c963f66afa6" + ], + "pnfdIds": [ + "3fa85f64-5717-4562-b3fc-2c963f66afa6" + ], + "nsInstanceIds": [ + "3fa85f64-5717-4562-b3fc-2c963f66afa6" + ], + "nsInstanceNames": [ + "ns1" + ] + }, + "notificationTypes": [ + "NsLcmOperationOccurrenceNotification" + ], + "operationTypes": [ + "INSTANTIATE" + ], + "operationStates": [ + "STARTING" + ], + "nsComponentTypes": [ + "VNF" + ], + "lcmOpNameImpactingNsComponent": [ + "VNF_INSTANTIATE" + ], + "lcmOpOccStatusImpactingNsComponent": [ + "START" + ] + }, + "authentication": { + "authType": [ + "BASIC" + ], + "paramsBasic": { + "userName": "test", + "password": "test" + }, + "paramsOauth2ClientCredentials": { + "clientId": "123", + "clientPassword": "test", + "tokenEndpoint": "test" + } + } +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-lcm/jsoninput/create_vl.json b/tests/vfc/nfvo-lcm/jsoninput/create_vl.json new file mode 100644 index 00000000..6db4cce0 --- /dev/null +++ b/tests/vfc/nfvo-lcm/jsoninput/create_vl.json @@ -0,0 +1,6 @@ +{ + "vlIndex": "23456", + "nsInstanceId": "234", + "context": "create a new vl", + "additionalParamForNs": "vl1" +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-lcm/jsoninput/create_vnf.json b/tests/vfc/nfvo-lcm/jsoninput/create_vnf.json new file mode 100644 index 00000000..68fadccd --- /dev/null +++ b/tests/vfc/nfvo-lcm/jsoninput/create_vnf.json @@ -0,0 +1,5 @@ +{ + "vnfIndex": "vnf123", + "nsInstanceId": "123", + "additionalParamForVnf": "addInfo" +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-lcm/jsoninput/heal_ns.json b/tests/vfc/nfvo-lcm/jsoninput/heal_ns.json new file mode 100644 index 00000000..f3f669ab --- /dev/null +++ b/tests/vfc/nfvo-lcm/jsoninput/heal_ns.json @@ -0,0 +1,22 @@ +{ + "healVnfData": { + "vnfInstanceId": "123", + "cause": "new", + "additionalParams": { + "action": "add", + "actionvminfo": { + "vmid": "123", + "vduid": "1", + "vmname": "wm123" + } + } + }, + "healNsData": { + "degreeHealing": "HEAL_RESTORE", + "actionsHealing": [ + "One action" + ], + "healScript": "script of NS heal", + "additionalParamsforNs": "Addition params of NS heal" + } +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-lcm/jsoninput/heal_ns_instance.json b/tests/vfc/nfvo-lcm/jsoninput/heal_ns_instance.json new file mode 100644 index 00000000..d15d7373 --- /dev/null +++ b/tests/vfc/nfvo-lcm/jsoninput/heal_ns_instance.json @@ -0,0 +1,42 @@ +{ + "healVnfData": [ + { + "vnfInstanceId": "vnf123", + "cause": "string", + "additionalParams": { + "additionalProp1": { + "action": "action1", + "actionvminfo": { + "vmid": "vm123", + "vduid": "vdu123", + "vmname": "vmname1" + } + }, + "additionalProp2": { + "action": "action2", + "actionvminfo": { + "vmid": "vm456", + "vduid": "vdu456", + "vmname": "vmname456" + } + }, + "additionalProp3": { + "action": "action3", + "actionvminfo": { + "vmid": "vm789", + "vduid": "vdu789", + "vmname": "vmname789" + } + } + } + } + ], + "healNsData": { + "degreeHealing": "HEAL_RESTORE", + "actionsHealing": [ + "action for healing" + ], + "healScript": "script2", + "additionalParamsforNs": "additional info" + } +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-lcm/jsoninput/instantiate_ns.json b/tests/vfc/nfvo-lcm/jsoninput/instantiate_ns.json new file mode 100644 index 00000000..01ed3961 --- /dev/null +++ b/tests/vfc/nfvo-lcm/jsoninput/instantiate_ns.json @@ -0,0 +1,51 @@ +{ + "locationConstraints": [ + { + "vnfProfileId": "123", + "locationConstraints": { + "vimId": "vim123" + } + } + ], + "additionalParamForNs": { + "additionalProp1": "Prop1", + "additionalProp2": "Prop2", + "additionalProp3": "Prop3" + }, + "addpnfData": [ + { + "pnfId": "123", + "pnfName": "pdf123", + "pnfdId": "123", + "pnfProfileId": "123", + "cpData": [ + { + "cpInstanceId": "123", + "cpdId": "123", + "cpProtocolData": [ + { + "layerProtocol": "IP_OVER_ETHERNET", + "ipOverEthernet": { + "macAddress": "7C-76-35-4C-31-78", + "ipAddresses": [ + { + "type": "IPV4", + "fixedAddresses": [ + "192.168.43.10" + ], + "numDynamicAddresses": 0, + "addressRange": { + "minAddress": "192.168.253.0", + "maxAddress": "192.168.253.255" + }, + "subnetId": "255.255.255.0" + } + ] + } + } + ] + } + ] + } + ] +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-lcm/jsoninput/instantiate_ns_instance.json b/tests/vfc/nfvo-lcm/jsoninput/instantiate_ns_instance.json new file mode 100644 index 00000000..75a19459 --- /dev/null +++ b/tests/vfc/nfvo-lcm/jsoninput/instantiate_ns_instance.json @@ -0,0 +1,127 @@ +{ + "nsFlavourId": "nsFlavour123", + "sapData": [ + { + "sapdId": "23", + "sapName": "sap123", + "description": "sap desc", + "sapProtocolData": [ + { + "layerProtocol": "IP_OVER_ETHERNET", + "ipOverEthernet": { + "macAddress": "7C-76-35-4C-31-78", + "ipAddresses": [ + { + "type": "IPV4", + "fixedAddresses": [ + "192.168.43.12" + ], + "numDynamicAddresses": 0, + "addressRange": { + "minAddress": "192.168.253.0", + "maxAddress": "192.168.253.255" + }, + "subnetId": "255.255.255.0" + } + ] + } + } + ] + } + ], + "addpnfData": [ + { + "pnfId": "pnf123", + "pnfName": "pnfName123", + "pnfdId": "pnfd123", + "pnfProfileId": "pnfPro123", + "cpData": [ + { + "cpInstanceI16": { + "IdentifierInPnf": {} + }, + "cpdId": { + "IdentifierInNsd": {} + }, + "cpProtocolData": [ + { + "layerProtocol": "IP_OVER_ETHERNET", + "ipOverEthernet": { + "macAddress": "7C-76-35-4C-31-78", + "ipAddresses": [ + { + "type": "IPV4", + "fixedAddresses": [ + "192.168.43.15" + ], + "numDynamicAddresses": 0, + "addressRange": { + "minAddress": "192.168.43.0", + "maxAddress": "192.168.43.255" + }, + "subnetId": "255.255.255.0" + } + ] + } + } + ] + } + ] + } + ], + "vnfInstanceData": [ + { + "vnfInstanceId": "vnf123", + "vnfProfileId": "vnfPro123" + } + ], + "nestedNsInstanceId": [ + "nested123" + ], + "localizationLanguage": [ + { + "vnfProfileId": "string", + "locationConstraints": { + "countryCode": "460", + "civicAddressElement": [ + { + "caType": "type1", + "caValue": "123" + } + ] + } + } + ], + "additionalParamForNs": { + "additionalProp1": "nsProp1", + "additionalProp2": "nsProp2", + "additionalProp3": "nsProp3" + }, + "additionalParamsForVnf": [ + { + "vnfProfileId": "vnfPro456", + "additionalParams": { + "additionalProp1": "vnfProp1", + "additionalProp2": "vnfProp2", + "additionalProp3": "vnfProp3" + } + } + ], + "startTime": "2019-10-08T01:45:26.226Z", + "nsInstantiationLevelId": "345678", + "additionalAffinityOrAntiAffiniityRule": [ + { + "vnfdId": [ + "123" + ], + "vnfProfileId": [ + "456" + ], + "vnfInstanceId": [ + "789" + ], + "affinityOrAntiAffiinty": "AFFINITY", + "scope": "NFVI_POP" + } + ] +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-lcm/jsoninput/postdeal_ns.json b/tests/vfc/nfvo-lcm/jsoninput/postdeal_ns.json new file mode 100644 index 00000000..c518885c --- /dev/null +++ b/tests/vfc/nfvo-lcm/jsoninput/postdeal_ns.json @@ -0,0 +1,3 @@ +{ + "status": "ongoing" +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-lcm/jsoninput/scale_ns.json b/tests/vfc/nfvo-lcm/jsoninput/scale_ns.json new file mode 100644 index 00000000..e7f729d8 --- /dev/null +++ b/tests/vfc/nfvo-lcm/jsoninput/scale_ns.json @@ -0,0 +1,14 @@ +{ + "scaleType": "ns", + "scaleNsData": [ + { + "scaleNsByStepsData": [ + { + "aspectId": "123", + "numberOfSteps": "3", + "scalingDirection": "north" + } + ] + } + ] +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-lcm/jsoninput/scale_ns_instance.json b/tests/vfc/nfvo-lcm/jsoninput/scale_ns_instance.json new file mode 100644 index 00000000..73d27f6e --- /dev/null +++ b/tests/vfc/nfvo-lcm/jsoninput/scale_ns_instance.json @@ -0,0 +1,59 @@ +{ + "scaleType": "ns_instance", + "scaleNsData": [ + { + "vnfInstanceToBeAdded": [ + { + "vnfInstanceId": "vnf456", + "vnfProfileId": "vnfPro456" + } + ], + "vnfInstanceToBeRemoved": [ + "" + ], + "scaleNsByStepsData": { + "scalingDirection": "SCALE_IN", + "aspectId": "123", + "numberOfSteps": "2" + }, + "scaleNsToLevelData": { + "nsInstantiationLevel": "1", + "nsScaleInfo": [ + { + "nsScalingAspectId": "2", + "nsScaleLevelId": "3" + } + ] + }, + "additionalParamsForNs": { + "additionalProp1": "nsProp11", + "additionalProp2": "nsProp12", + "additionalProp3": "nsProp13" + }, + "additionalParamsForVnf": [ + { + "vnfProfileId": "string", + "additionalParams": { + "additionalProp1": "vnfProp11", + "additionalProp2": "vnfProp12", + "additionalProp3": "vnfProp13" + } + } + ], + "locationConstraints": [ + { + "vnfProfileId": "vnfPro789", + "locationConstraints": { + "countryCode": "460", + "civicAddressElement": [ + { + "caType": "type2", + "caValue": "789" + } + ] + } + } + ] + } + ] +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-lcm/jsoninput/terminate_ns.json b/tests/vfc/nfvo-lcm/jsoninput/terminate_ns.json new file mode 100644 index 00000000..9ae8b329 --- /dev/null +++ b/tests/vfc/nfvo-lcm/jsoninput/terminate_ns.json @@ -0,0 +1,4 @@ +{ + "terminationType": "ns", + "gracefulTerminationTimeout": "1602668855" +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-lcm/jsoninput/terminate_ns_instance.json b/tests/vfc/nfvo-lcm/jsoninput/terminate_ns_instance.json new file mode 100644 index 00000000..d03830a9 --- /dev/null +++ b/tests/vfc/nfvo-lcm/jsoninput/terminate_ns_instance.json @@ -0,0 +1,3 @@ +{ + "terminationTime": "1602668880" +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-lcm/jsoninput/terminate_vnf.json b/tests/vfc/nfvo-lcm/jsoninput/terminate_vnf.json new file mode 100644 index 00000000..9884b6ac --- /dev/null +++ b/tests/vfc/nfvo-lcm/jsoninput/terminate_vnf.json @@ -0,0 +1,4 @@ +{ + "terminationType": "vnf", + "gracefulTerminationTimeout": "3600" +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-lcm/jsoninput/update_job_ns.json b/tests/vfc/nfvo-lcm/jsoninput/update_job_ns.json new file mode 100644 index 00000000..3682bcfb --- /dev/null +++ b/tests/vfc/nfvo-lcm/jsoninput/update_job_ns.json @@ -0,0 +1,5 @@ +{ + "progress": "updating", + "desc": "update job des", + "errcode": "405" +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-lcm/jsoninput/update_ns.json b/tests/vfc/nfvo-lcm/jsoninput/update_ns.json new file mode 100644 index 00000000..2722b3a5 --- /dev/null +++ b/tests/vfc/nfvo-lcm/jsoninput/update_ns.json @@ -0,0 +1,12 @@ +{ + "updateType": "ADD_VNF", + "addVnfInstance": [ + { + "vnfInstanceId": "456", + "vnfProfileId": "456" + } + ], + "updateTime": { + "DateTime": {} + } +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-lcm/jsoninput/update_ns_instance.json b/tests/vfc/nfvo-lcm/jsoninput/update_ns_instance.json new file mode 100644 index 00000000..2722b3a5 --- /dev/null +++ b/tests/vfc/nfvo-lcm/jsoninput/update_ns_instance.json @@ -0,0 +1,12 @@ +{ + "updateType": "ADD_VNF", + "addVnfInstance": [ + { + "vnfInstanceId": "456", + "vnfProfileId": "456" + } + ], + "updateTime": { + "DateTime": {} + } +}
\ No newline at end of file |