Loading SOL002/VNFConfiguration-API/environment/variables.txt +1 −1 Viewed Changes for SOL002/VNFConfiguration-API/environment/variables.txt: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ ${Etag}= an etag ${Etag_modified}= 12345 @{response}= httpresponse ${response}= httpresponse ${EM-VNF_HOST} localhost # Hostname of the NFVO ${EM-VNF_PORT} 8081 # Listening port of the NFVO Loading SOL002/VNFConfiguration-API/Configuration.robot +13 −13 Viewed Changes for SOL002/VNFConfiguration-API/Configuration.robot: 13 added lines, 13 removed lines. Original line number Diff line number Diff line Loading @@ -112,7 +112,7 @@ Get VNF configuration Log Execute Query and validate response Get ${apiRoot}/${apiName}/${apiVersion}/configuration ${output}= Output response Set Suite Variable @{response} ${output} Set Suite Variable ${response} ${output} Send VNF configuration log Trying to perform a PATCH. This method modifies the configuration Loading @@ -121,27 +121,27 @@ Send VNF configuration Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${body}= Get File jsons/vnfConfigModifications.json Patch ${apiRoot}/${apiName}/${apiVersion}/configuration ${body} Set Suite Variable &{etag} ${response[0]['headers']['ETag']} Set Suite Variable &{etag} ${response['headers']['ETag']} ${output}= Output response Set Suite Variable @{response} ${output} Set Suite Variable ${response} ${output} Check HTTP Response Status Code Is [Arguments] ${expected_status} ${status}= Convert To Integer ${expected_status} Should Be Equal ${response[0]['status']} ${status} Should Be Equal ${response['status']} ${status} Log Status code validated Check HTTP Response Header Contains [Arguments] ${CONTENT_TYPE} Log ${response[0]['headers']} Should Contain ${response[0]['headers']} ${CONTENT_TYPE} Log ${response['headers']} Should Contain ${response['headers']} ${CONTENT_TYPE} Log Header is present Check HTTP Response Body Json Schema Is [Arguments] ${input} Should Contain ${response[0]['headers']['Content-Type']} application/json Should Contain ${response['headers']['Content-Type']} application/json ${schema} = Catenate ${input} .schema.json Validate Json ${schema} ${response[0]['body']} Validate Json ${schema} ${response['body']} Log Json Schema Validation OK Check Postcondition VNF Configuration Unmodified (Implicit) Loading @@ -157,7 +157,7 @@ Check Postcondition VNF Is Configured Get VNF configuration ${input_file}= Get File jsons/vnfConfigModifications.json ${input}= evaluate json.loads('''${input_file}''') json Should Be Equal ${response[0]['body']} ${input} Should Be Equal ${response['body']} ${input} Send Duplicated VNF configuration Depends On Test Send VNF configuration # If the previous test scceeded, it means that Etag has been modified Loading @@ -169,7 +169,7 @@ Send Duplicated VNF configuration ${body}= Get File jsons/vnfConfigModifications.json Patch ${apiRoot}/${apiName}/${apiVersion}/configuration ${body} ${output}= Output response Set Suite Variable @{response} ${output} Set Suite Variable ${response} ${output} Send POST Request for VNF Configuration log Trying to perform a POST. This method should not be implemented Loading @@ -177,7 +177,7 @@ Send POST Request for VNF Configuration Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/configuration ${output}= Output response Set Suite Variable @{response} ${output} Set Suite Variable ${response} ${output} Send PUT Request for VNF Configuration log Trying to perform a POST. This method should not be implemented Loading @@ -185,7 +185,7 @@ Send PUT Request for VNF Configuration Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Put ${apiRoot}/${apiName}/${apiVersion}/configuration ${output}= Output response Set Suite Variable @{response} ${output} Set Suite Variable ${response} ${output} Send DELETE Request for VNF Configuration log Trying to perform a POST. This method should not be implemented Loading @@ -193,4 +193,4 @@ Send DELETE Request for VNF Configuration Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Delete ${apiRoot}/${apiName}/${apiVersion}/configuration ${output}= Output response Set Suite Variable @{response} ${output} No newline at end of file Set Suite Variable ${response} ${output} No newline at end of file SOL002/VNFIndicator-API/environment/individualSubscription.txt +2 −2 Viewed Changes for SOL002/VNFIndicator-API/environment/individualSubscription.txt: 2 added lines, 2 removed lines. Original line number Diff line number Diff line *** Variables *** ${subscriptionId} f3ae6df7-07e1-47c9-8924-9ebe10343586 ${erroneousSubscriptionId} 442e3ee5-0499-4849-9b31-eb91ce1638f1 # Not existing ID on the subscriptions @{response}= httpresponse @{origResponse}= httpresponse No newline at end of file ${response}= httpresponse ${origResponse}= httpresponse No newline at end of file SOL002/VNFIndicator-API/environment/individualVnfIndicator.txt +1 −1 Viewed Changes for SOL002/VNFIndicator-API/environment/individualVnfIndicator.txt: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -3,4 +3,4 @@ ${vnfInstanceId} 80b0deba-c398-445b-bef0-ac0fe733e3d0 ${indicatorId} 34e70855-a9d3-4fef-aece-76a3cd266ec8 ${notAllowedIndicatorId} notAllowedId ${erroneousIndicatorId} erroneousIndicatorId @{response}= httpresponse ${response}= httpresponse SOL002/VNFIndicator-API/environment/subscriptions.txt +1 −1 Viewed Changes for SOL002/VNFIndicator-API/environment/subscriptions.txt: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -4,4 +4,4 @@ ${indicatorId} 34e70855-a9d3-4fef-aece-76a3cd266ec8 ${erroneousIndicatorId} erroneousIndicatorId ${POS_FILTER} callbackUri=http://127.0.0.1/subscribe ${NEG_FILTER} callback=http://127.0.0.1/subscribe @{response}= httpresponse ${response}= httpresponse Loading
SOL002/VNFConfiguration-API/environment/variables.txt +1 −1 Viewed Changes for SOL002/VNFConfiguration-API/environment/variables.txt: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ ${Etag}= an etag ${Etag_modified}= 12345 @{response}= httpresponse ${response}= httpresponse ${EM-VNF_HOST} localhost # Hostname of the NFVO ${EM-VNF_PORT} 8081 # Listening port of the NFVO Loading
SOL002/VNFConfiguration-API/Configuration.robot +13 −13 Viewed Changes for SOL002/VNFConfiguration-API/Configuration.robot: 13 added lines, 13 removed lines. Original line number Diff line number Diff line Loading @@ -112,7 +112,7 @@ Get VNF configuration Log Execute Query and validate response Get ${apiRoot}/${apiName}/${apiVersion}/configuration ${output}= Output response Set Suite Variable @{response} ${output} Set Suite Variable ${response} ${output} Send VNF configuration log Trying to perform a PATCH. This method modifies the configuration Loading @@ -121,27 +121,27 @@ Send VNF configuration Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${body}= Get File jsons/vnfConfigModifications.json Patch ${apiRoot}/${apiName}/${apiVersion}/configuration ${body} Set Suite Variable &{etag} ${response[0]['headers']['ETag']} Set Suite Variable &{etag} ${response['headers']['ETag']} ${output}= Output response Set Suite Variable @{response} ${output} Set Suite Variable ${response} ${output} Check HTTP Response Status Code Is [Arguments] ${expected_status} ${status}= Convert To Integer ${expected_status} Should Be Equal ${response[0]['status']} ${status} Should Be Equal ${response['status']} ${status} Log Status code validated Check HTTP Response Header Contains [Arguments] ${CONTENT_TYPE} Log ${response[0]['headers']} Should Contain ${response[0]['headers']} ${CONTENT_TYPE} Log ${response['headers']} Should Contain ${response['headers']} ${CONTENT_TYPE} Log Header is present Check HTTP Response Body Json Schema Is [Arguments] ${input} Should Contain ${response[0]['headers']['Content-Type']} application/json Should Contain ${response['headers']['Content-Type']} application/json ${schema} = Catenate ${input} .schema.json Validate Json ${schema} ${response[0]['body']} Validate Json ${schema} ${response['body']} Log Json Schema Validation OK Check Postcondition VNF Configuration Unmodified (Implicit) Loading @@ -157,7 +157,7 @@ Check Postcondition VNF Is Configured Get VNF configuration ${input_file}= Get File jsons/vnfConfigModifications.json ${input}= evaluate json.loads('''${input_file}''') json Should Be Equal ${response[0]['body']} ${input} Should Be Equal ${response['body']} ${input} Send Duplicated VNF configuration Depends On Test Send VNF configuration # If the previous test scceeded, it means that Etag has been modified Loading @@ -169,7 +169,7 @@ Send Duplicated VNF configuration ${body}= Get File jsons/vnfConfigModifications.json Patch ${apiRoot}/${apiName}/${apiVersion}/configuration ${body} ${output}= Output response Set Suite Variable @{response} ${output} Set Suite Variable ${response} ${output} Send POST Request for VNF Configuration log Trying to perform a POST. This method should not be implemented Loading @@ -177,7 +177,7 @@ Send POST Request for VNF Configuration Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/${apiVersion}/configuration ${output}= Output response Set Suite Variable @{response} ${output} Set Suite Variable ${response} ${output} Send PUT Request for VNF Configuration log Trying to perform a POST. This method should not be implemented Loading @@ -185,7 +185,7 @@ Send PUT Request for VNF Configuration Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Put ${apiRoot}/${apiName}/${apiVersion}/configuration ${output}= Output response Set Suite Variable @{response} ${output} Set Suite Variable ${response} ${output} Send DELETE Request for VNF Configuration log Trying to perform a POST. This method should not be implemented Loading @@ -193,4 +193,4 @@ Send DELETE Request for VNF Configuration Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Delete ${apiRoot}/${apiName}/${apiVersion}/configuration ${output}= Output response Set Suite Variable @{response} ${output} No newline at end of file Set Suite Variable ${response} ${output} No newline at end of file
SOL002/VNFIndicator-API/environment/individualSubscription.txt +2 −2 Viewed Changes for SOL002/VNFIndicator-API/environment/individualSubscription.txt: 2 added lines, 2 removed lines. Original line number Diff line number Diff line *** Variables *** ${subscriptionId} f3ae6df7-07e1-47c9-8924-9ebe10343586 ${erroneousSubscriptionId} 442e3ee5-0499-4849-9b31-eb91ce1638f1 # Not existing ID on the subscriptions @{response}= httpresponse @{origResponse}= httpresponse No newline at end of file ${response}= httpresponse ${origResponse}= httpresponse No newline at end of file
SOL002/VNFIndicator-API/environment/individualVnfIndicator.txt +1 −1 Viewed Changes for SOL002/VNFIndicator-API/environment/individualVnfIndicator.txt: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -3,4 +3,4 @@ ${vnfInstanceId} 80b0deba-c398-445b-bef0-ac0fe733e3d0 ${indicatorId} 34e70855-a9d3-4fef-aece-76a3cd266ec8 ${notAllowedIndicatorId} notAllowedId ${erroneousIndicatorId} erroneousIndicatorId @{response}= httpresponse ${response}= httpresponse
SOL002/VNFIndicator-API/environment/subscriptions.txt +1 −1 Viewed Changes for SOL002/VNFIndicator-API/environment/subscriptions.txt: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -4,4 +4,4 @@ ${indicatorId} 34e70855-a9d3-4fef-aece-76a3cd266ec8 ${erroneousIndicatorId} erroneousIndicatorId ${POS_FILTER} callbackUri=http://127.0.0.1/subscribe ${NEG_FILTER} callback=http://127.0.0.1/subscribe @{response}= httpresponse ${response}= httpresponse