Loading SOL003/VNFLifecycleManagement-API_egm/ChangeExternalVNFConnectivityTask.robot +7 −4 Original line number Original line Diff line number Diff line Loading @@ -2,7 +2,7 @@ Resource variables.txt Resource variables.txt Library REST http://${VNFM_HOST}:${VNFM_PORT} Library REST http://${VNFM_HOST}:${VNFM_PORT} ... spec=SOL003-VNFLifecycleManagement-API.yaml ... spec=SOL003-VNFLifecycleManagement-API.yaml Library DependencyLibrary Library OperatingSystem Suite setup Check resource existance Suite setup Check resource existance *** Test Cases *** *** Test Cases *** Loading @@ -12,7 +12,8 @@ Change external VNF connectivity Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_ext_conn ${Change_Ext_Vnf_Connectivity_REQUEST} ${body}= Get File json/changeExtVnfConnectivityRequest .json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_ext_conn ${body} Integer response status 202 Integer response status 202 Log Status code validated Log Status code validated Loading @@ -27,7 +28,8 @@ Change external VNF connectivity Conflict (parallel LCM operation) Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_ext_conn ${Change_Ext_Vnf_Connectivity_REQUEST} ${body}= Get File json/changeExtVnfConnectivityRequest .json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_ext_conn ${body} Log Validate Status code Log Validate Status code Output response Output response Integer response status 409 Integer response status 409 Loading Loading @@ -78,5 +80,6 @@ Launch another LCM operation Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${Scale_Vnf_REQUEST} ${body}= Get File json/scaleVnfRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${body} Integer response status 202 Integer response status 202 No newline at end of file SOL003/VNFLifecycleManagement-API_egm/ChangeVNFFlavourTask.robot +11 −6 Original line number Original line Diff line number Diff line Loading @@ -2,7 +2,7 @@ Resource variables.txt Resource variables.txt Library REST http://${VNFM_HOST}:${VNFM_PORT} Library REST http://${VNFM_HOST}:${VNFM_PORT} ... spec=SOL003-VNFLifecycleManagement-API.yaml ... spec=SOL003-VNFLifecycleManagement-API.yaml Library DependencyLibrary Library OperatingSystem Suite setup Check resource existance Suite setup Check resource existance *** Test Cases *** *** Test Cases *** Loading @@ -12,7 +12,8 @@ Change deployment flavour of a vnfInstance Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${Change_Vnf_Flavour_REQUEST} ${body}= Get File json/changeVnfFlavourRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${body} Integer response status 202 Integer response status 202 Log Status code validated Log Status code validated Loading @@ -28,7 +29,8 @@ Change deployment flavour of a vnfInstance Conflict (Not-Instantiated) Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${Change_Vnf_Flavour_REQUEST} ${body}= Get File json/changeVnfFlavourRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${body} Output response Output response Integer response status 409 Integer response status 409 Log Status code validated Log Status code validated Loading @@ -45,7 +47,8 @@ Change deployment flavour of a vnfInstance Conflict (parallel LCM operation) Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${Change_Vnf_Flavour_REQUEST} ${body}= Get File json/changeVnfFlavourRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${body} Log Validate Status code Log Validate Status code Output response Output response Integer response status 409 Integer response status 409 Loading @@ -62,7 +65,8 @@ Change deployment flavour of a vnfInstance Not Found Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${Change_Vnf_Flavour_REQUEST} ${body}= Get File json/changeVnfFlavourRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${body} Integer response status 404 Integer response status 404 Log Status code validated Log Status code validated Loading Loading @@ -125,5 +129,6 @@ Launch another LCM operation Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${Scale_Vnf_REQUEST} ${body}= Get File json/scaleVnfRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${body} Integer response status 202 Integer response status 202 No newline at end of file SOL003/VNFLifecycleManagement-API_egm/HealVNFTask.robot +11 −6 Original line number Original line Diff line number Diff line Loading @@ -2,7 +2,7 @@ Resource variables.txt Resource variables.txt Library REST http://${VNFM_HOST}:${VNFM_PORT} Library REST http://${VNFM_HOST}:${VNFM_PORT} ... spec=SOL003-VNFLifecycleManagement-API.yaml ... spec=SOL003-VNFLifecycleManagement-API.yaml Library DependencyLibrary Library OperatingSystem Suite setup Check resource existance Suite setup Check resource existance *** Test Cases *** *** Test Cases *** Loading @@ -12,7 +12,8 @@ Heal a vnfInstance Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/heal ${Heal_Vnf_REQUEST} ${body}= Get File json/healVnFRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/heal ${body} Integer response status 202 Integer response status 202 Log Status code validated Log Status code validated Loading @@ -28,7 +29,8 @@ Heal a vnfInstance Conflict (Not-Instantiated) Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/heal ${Heal_Vnf_REQUEST} ${body}= Get File json/healVnFRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/heal ${body} Output response Output response Integer response status 409 Integer response status 409 Log Status code validated Log Status code validated Loading @@ -45,7 +47,8 @@ Heal a vnfInstance Conflict (parallel LCM operation) Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/heal ${Heal_Vnf_REQUEST} ${body}= Get File json/healVnFRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/heal ${body} Log Validate Status code Log Validate Status code Output response Output response Integer response status 409 Integer response status 409 Loading @@ -62,7 +65,8 @@ Heal a vnfInstance Not Found Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/heal ${Heal_Vnf_REQUEST} ${body}= Get File json/healVnFRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/heal ${body} Integer response status 404 Integer response status 404 Log Status code validated Log Status code validated Loading Loading @@ -125,5 +129,6 @@ Launch another LCM operation Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${Scale_Vnf_REQUEST} ${body}= Get File json/scaleVnfRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${body} Integer response status 202 Integer response status 202 No newline at end of file SOL003/VNFLifecycleManagement-API_egm/IndividualVNFInstance.robot +9 −4 Original line number Original line Diff line number Diff line Loading @@ -3,6 +3,7 @@ Resource variables.txt Resource variables.txt Library REST http://${VNFM_HOST}:${VNFM_PORT} Library REST http://${VNFM_HOST}:${VNFM_PORT} ... spec=SOL003-VNFLifecycleManagement-API.yaml ... spec=SOL003-VNFLifecycleManagement-API.yaml Library OperatingSystem Documentation This resource represents an individual VNF instance. The client can use this resource to modify and delete the Documentation This resource represents an individual VNF instance. The client can use this resource to modify and delete the ... underlying VNF instance, and to read information about the VNF instance. ... underlying VNF instance, and to read information about the VNF instance. Suite setup Check resource existance Suite setup Check resource existance Loading Loading @@ -53,7 +54,8 @@ PATCH Individual VNFInstance Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} ${PATCH_BODY_REQUEST} ${body}= Get File json/patchBodyRequest.json Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} ${body} Log Validate Status code Log Validate Status code Output response Output response Integer response status 202 Integer response status 202 Loading @@ -68,7 +70,8 @@ PATCH Individual VNFInstance Precondition failed Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} Set Headers {"If-Match": "${Etag}"} Set Headers {"If-Match": "${Etag}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} ${PATCH_BODY_REQUEST} ${body}= Get File json/patchBodyRequest.json Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} ${body} Log Validate Status code Log Validate Status code Output response Output response Integer response status 412 Integer response status 412 Loading @@ -83,7 +86,8 @@ PATCH Individual VNFInstance Conflict Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} ${PATCH_BODY_REQUEST_CONFLICT} ${body}= Get File json/patchBodyRequest.json Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} ${body} Log Validate Status code Log Validate Status code Output response Output response Integer response status 409 Integer response status 409 Loading Loading @@ -133,6 +137,7 @@ Launch another LCM operation Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${Scale_Vnf_REQUEST} ${body}= Get File json/scaleVnfToLevelRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale_to_level ${body} Integer response status 202 Integer response status 202 SOL003/VNFLifecycleManagement-API_egm/InstantiateVNFTask.robot +6 −3 Original line number Original line Diff line number Diff line Loading @@ -3,6 +3,7 @@ Resource variables.txt Library REST http://${VNFM_HOST}:${VNFM_PORT} Library REST http://${VNFM_HOST}:${VNFM_PORT} ... spec=SOL003-VNFLifecycleManagement-API.yaml ... spec=SOL003-VNFLifecycleManagement-API.yaml Library DependencyLibrary Library DependencyLibrary Library OperatingSystem Suite setup Check resource existance Suite setup Check resource existance Loading @@ -13,7 +14,8 @@ Instantiate a vnfInstance Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/instantiate ${INSTANTIATE_VNF_REQUEST} ${body}= Get File json/instantiateVnfRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/instantiate ${body} Output response Output response Integer response status 202 Integer response status 202 Log Status code validated Log Status code validated Loading @@ -29,7 +31,8 @@ Instantiate a vnfInstance Conflict Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/instantiate ${INSTANTIATE_VNF_REQUEST} ${body}= Get File json/instantiateVnfRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/instantiate ${body} Output response Output response Integer response status 409 Integer response status 409 Log Status code validated Log Status code validated Loading Loading
SOL003/VNFLifecycleManagement-API_egm/ChangeExternalVNFConnectivityTask.robot +7 −4 Original line number Original line Diff line number Diff line Loading @@ -2,7 +2,7 @@ Resource variables.txt Resource variables.txt Library REST http://${VNFM_HOST}:${VNFM_PORT} Library REST http://${VNFM_HOST}:${VNFM_PORT} ... spec=SOL003-VNFLifecycleManagement-API.yaml ... spec=SOL003-VNFLifecycleManagement-API.yaml Library DependencyLibrary Library OperatingSystem Suite setup Check resource existance Suite setup Check resource existance *** Test Cases *** *** Test Cases *** Loading @@ -12,7 +12,8 @@ Change external VNF connectivity Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_ext_conn ${Change_Ext_Vnf_Connectivity_REQUEST} ${body}= Get File json/changeExtVnfConnectivityRequest .json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_ext_conn ${body} Integer response status 202 Integer response status 202 Log Status code validated Log Status code validated Loading @@ -27,7 +28,8 @@ Change external VNF connectivity Conflict (parallel LCM operation) Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_ext_conn ${Change_Ext_Vnf_Connectivity_REQUEST} ${body}= Get File json/changeExtVnfConnectivityRequest .json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_ext_conn ${body} Log Validate Status code Log Validate Status code Output response Output response Integer response status 409 Integer response status 409 Loading Loading @@ -78,5 +80,6 @@ Launch another LCM operation Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${Scale_Vnf_REQUEST} ${body}= Get File json/scaleVnfRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${body} Integer response status 202 Integer response status 202 No newline at end of file
SOL003/VNFLifecycleManagement-API_egm/ChangeVNFFlavourTask.robot +11 −6 Original line number Original line Diff line number Diff line Loading @@ -2,7 +2,7 @@ Resource variables.txt Resource variables.txt Library REST http://${VNFM_HOST}:${VNFM_PORT} Library REST http://${VNFM_HOST}:${VNFM_PORT} ... spec=SOL003-VNFLifecycleManagement-API.yaml ... spec=SOL003-VNFLifecycleManagement-API.yaml Library DependencyLibrary Library OperatingSystem Suite setup Check resource existance Suite setup Check resource existance *** Test Cases *** *** Test Cases *** Loading @@ -12,7 +12,8 @@ Change deployment flavour of a vnfInstance Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${Change_Vnf_Flavour_REQUEST} ${body}= Get File json/changeVnfFlavourRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${body} Integer response status 202 Integer response status 202 Log Status code validated Log Status code validated Loading @@ -28,7 +29,8 @@ Change deployment flavour of a vnfInstance Conflict (Not-Instantiated) Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${Change_Vnf_Flavour_REQUEST} ${body}= Get File json/changeVnfFlavourRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${body} Output response Output response Integer response status 409 Integer response status 409 Log Status code validated Log Status code validated Loading @@ -45,7 +47,8 @@ Change deployment flavour of a vnfInstance Conflict (parallel LCM operation) Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${Change_Vnf_Flavour_REQUEST} ${body}= Get File json/changeVnfFlavourRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${body} Log Validate Status code Log Validate Status code Output response Output response Integer response status 409 Integer response status 409 Loading @@ -62,7 +65,8 @@ Change deployment flavour of a vnfInstance Not Found Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${Change_Vnf_Flavour_REQUEST} ${body}= Get File json/changeVnfFlavourRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${body} Integer response status 404 Integer response status 404 Log Status code validated Log Status code validated Loading Loading @@ -125,5 +129,6 @@ Launch another LCM operation Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${Scale_Vnf_REQUEST} ${body}= Get File json/scaleVnfRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${body} Integer response status 202 Integer response status 202 No newline at end of file
SOL003/VNFLifecycleManagement-API_egm/HealVNFTask.robot +11 −6 Original line number Original line Diff line number Diff line Loading @@ -2,7 +2,7 @@ Resource variables.txt Resource variables.txt Library REST http://${VNFM_HOST}:${VNFM_PORT} Library REST http://${VNFM_HOST}:${VNFM_PORT} ... spec=SOL003-VNFLifecycleManagement-API.yaml ... spec=SOL003-VNFLifecycleManagement-API.yaml Library DependencyLibrary Library OperatingSystem Suite setup Check resource existance Suite setup Check resource existance *** Test Cases *** *** Test Cases *** Loading @@ -12,7 +12,8 @@ Heal a vnfInstance Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/heal ${Heal_Vnf_REQUEST} ${body}= Get File json/healVnFRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/heal ${body} Integer response status 202 Integer response status 202 Log Status code validated Log Status code validated Loading @@ -28,7 +29,8 @@ Heal a vnfInstance Conflict (Not-Instantiated) Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/heal ${Heal_Vnf_REQUEST} ${body}= Get File json/healVnFRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/heal ${body} Output response Output response Integer response status 409 Integer response status 409 Log Status code validated Log Status code validated Loading @@ -45,7 +47,8 @@ Heal a vnfInstance Conflict (parallel LCM operation) Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/heal ${Heal_Vnf_REQUEST} ${body}= Get File json/healVnFRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/heal ${body} Log Validate Status code Log Validate Status code Output response Output response Integer response status 409 Integer response status 409 Loading @@ -62,7 +65,8 @@ Heal a vnfInstance Not Found Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/heal ${Heal_Vnf_REQUEST} ${body}= Get File json/healVnFRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/heal ${body} Integer response status 404 Integer response status 404 Log Status code validated Log Status code validated Loading Loading @@ -125,5 +129,6 @@ Launch another LCM operation Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${Scale_Vnf_REQUEST} ${body}= Get File json/scaleVnfRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${body} Integer response status 202 Integer response status 202 No newline at end of file
SOL003/VNFLifecycleManagement-API_egm/IndividualVNFInstance.robot +9 −4 Original line number Original line Diff line number Diff line Loading @@ -3,6 +3,7 @@ Resource variables.txt Resource variables.txt Library REST http://${VNFM_HOST}:${VNFM_PORT} Library REST http://${VNFM_HOST}:${VNFM_PORT} ... spec=SOL003-VNFLifecycleManagement-API.yaml ... spec=SOL003-VNFLifecycleManagement-API.yaml Library OperatingSystem Documentation This resource represents an individual VNF instance. The client can use this resource to modify and delete the Documentation This resource represents an individual VNF instance. The client can use this resource to modify and delete the ... underlying VNF instance, and to read information about the VNF instance. ... underlying VNF instance, and to read information about the VNF instance. Suite setup Check resource existance Suite setup Check resource existance Loading Loading @@ -53,7 +54,8 @@ PATCH Individual VNFInstance Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} ${PATCH_BODY_REQUEST} ${body}= Get File json/patchBodyRequest.json Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} ${body} Log Validate Status code Log Validate Status code Output response Output response Integer response status 202 Integer response status 202 Loading @@ -68,7 +70,8 @@ PATCH Individual VNFInstance Precondition failed Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} Set Headers {"If-Match": "${Etag}"} Set Headers {"If-Match": "${Etag}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} ${PATCH_BODY_REQUEST} ${body}= Get File json/patchBodyRequest.json Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} ${body} Log Validate Status code Log Validate Status code Output response Output response Integer response status 412 Integer response status 412 Loading @@ -83,7 +86,8 @@ PATCH Individual VNFInstance Conflict Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} ${PATCH_BODY_REQUEST_CONFLICT} ${body}= Get File json/patchBodyRequest.json Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} ${body} Log Validate Status code Log Validate Status code Output response Output response Integer response status 409 Integer response status 409 Loading Loading @@ -133,6 +137,7 @@ Launch another LCM operation Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${Scale_Vnf_REQUEST} ${body}= Get File json/scaleVnfToLevelRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale_to_level ${body} Integer response status 202 Integer response status 202
SOL003/VNFLifecycleManagement-API_egm/InstantiateVNFTask.robot +6 −3 Original line number Original line Diff line number Diff line Loading @@ -3,6 +3,7 @@ Resource variables.txt Library REST http://${VNFM_HOST}:${VNFM_PORT} Library REST http://${VNFM_HOST}:${VNFM_PORT} ... spec=SOL003-VNFLifecycleManagement-API.yaml ... spec=SOL003-VNFLifecycleManagement-API.yaml Library DependencyLibrary Library DependencyLibrary Library OperatingSystem Suite setup Check resource existance Suite setup Check resource existance Loading @@ -13,7 +14,8 @@ Instantiate a vnfInstance Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/instantiate ${INSTANTIATE_VNF_REQUEST} ${body}= Get File json/instantiateVnfRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/instantiate ${body} Output response Output response Integer response status 202 Integer response status 202 Log Status code validated Log Status code validated Loading @@ -29,7 +31,8 @@ Instantiate a vnfInstance Conflict Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/instantiate ${INSTANTIATE_VNF_REQUEST} ${body}= Get File json/instantiateVnfRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/instantiate ${body} Output response Output response Integer response status 409 Integer response status 409 Log Status code validated Log Status code validated Loading