Loading SOL005/NSLCMCoordination-API/NSLCMCoordKeywords.robot +11 −0 Original line number Original line Diff line number Diff line Loading @@ -57,6 +57,17 @@ Check Postcondition LcmCoord Exists Check HTTP Response Body Json Schema Is LcmCoord Check HTTP Response Body Json Schema Is LcmCoord Send Post Request for coordination of an LCM operation occurrence - forbidden Log Requesting a new coordination task for an LCM Operation occurrence Set Headers {"Accept": "${ACCEPT_JSON}"} Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"} ${template}= Get File jsons/createLcmCoordRequest.json ${body}= Format String ${template} nsInstanceId=${nsInstanceId} nsLcmOpOccId=${nsLcmOpOccId} lcmOperationType=${lcmOperationType} coordinationActionName=${coordinationActionName} nsLcmOpOccHref=${nsLcmOpOccHref} nsInstanceHref=${nsInstanceHref} Run Keyword If ${NFVO_AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${INSUFFICIENT_AUTHORIZATION_TOKEN}"} REST.POST ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations ${body} ${output}= Output response Set Suite Variable ${response} ${output} Send Post Request for coordination of an LCM operation occurrence - conflict Send Post Request for coordination of an LCM operation occurrence - conflict Log Requesting a new coordination task for an LCM Operation occurrence not in PROCESSING state Log Requesting a new coordination task for an LCM Operation occurrence not in PROCESSING state Set Headers {"Accept": "${ACCEPT_JSON}"} Set Headers {"Accept": "${ACCEPT_JSON}"} Loading SOL005/NSLCMCoordination-API/environment/variables.txt +2 −1 Original line number Original line Diff line number Diff line Loading @@ -4,7 +4,8 @@ ${NFVO_PORT} 8081 # Listening port of the NFVO ${NFVO_SCHEMA} https ${NFVO_SCHEMA} https ${AUTHORIZATION_HEADER} Authorization ${AUTHORIZATION_HEADER} Authorization ${AUTHORIZATION_TOKEN} Bearer 0b79bab50daca910b000d4f1a2b675d604257e42 ${AUTHORIZATION_TOKEN} Bearer 0b79bab50daca910b000d4f1a2b675d604257e42 ${NEG_AUTHORIZATION_TOKEN} Bearer negativetoken ${INSUFFICIENT_AUTHORIZATION_TOKEN} Bearer INSUFFICIENT_AUTHORIZATION_TOKEN #${NEG_AUTHORIZATION_TOKEN} Bearer negativetoken ${NFVO_AUTH_USAGE} 1 ${NFVO_AUTH_USAGE} 1 ${CONTENT_TYPE_JSON} application/json ${CONTENT_TYPE_JSON} application/json ${ACCEPT_JSON} application/json ${ACCEPT_JSON} application/json Loading Loading
SOL005/NSLCMCoordination-API/NSLCMCoordKeywords.robot +11 −0 Original line number Original line Diff line number Diff line Loading @@ -57,6 +57,17 @@ Check Postcondition LcmCoord Exists Check HTTP Response Body Json Schema Is LcmCoord Check HTTP Response Body Json Schema Is LcmCoord Send Post Request for coordination of an LCM operation occurrence - forbidden Log Requesting a new coordination task for an LCM Operation occurrence Set Headers {"Accept": "${ACCEPT_JSON}"} Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"} ${template}= Get File jsons/createLcmCoordRequest.json ${body}= Format String ${template} nsInstanceId=${nsInstanceId} nsLcmOpOccId=${nsLcmOpOccId} lcmOperationType=${lcmOperationType} coordinationActionName=${coordinationActionName} nsLcmOpOccHref=${nsLcmOpOccHref} nsInstanceHref=${nsInstanceHref} Run Keyword If ${NFVO_AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${INSUFFICIENT_AUTHORIZATION_TOKEN}"} REST.POST ${apiRoot}/${apiName}/${apiMajorVersion}/coordinations ${body} ${output}= Output response Set Suite Variable ${response} ${output} Send Post Request for coordination of an LCM operation occurrence - conflict Send Post Request for coordination of an LCM operation occurrence - conflict Log Requesting a new coordination task for an LCM Operation occurrence not in PROCESSING state Log Requesting a new coordination task for an LCM Operation occurrence not in PROCESSING state Set Headers {"Accept": "${ACCEPT_JSON}"} Set Headers {"Accept": "${ACCEPT_JSON}"} Loading
SOL005/NSLCMCoordination-API/environment/variables.txt +2 −1 Original line number Original line Diff line number Diff line Loading @@ -4,7 +4,8 @@ ${NFVO_PORT} 8081 # Listening port of the NFVO ${NFVO_SCHEMA} https ${NFVO_SCHEMA} https ${AUTHORIZATION_HEADER} Authorization ${AUTHORIZATION_HEADER} Authorization ${AUTHORIZATION_TOKEN} Bearer 0b79bab50daca910b000d4f1a2b675d604257e42 ${AUTHORIZATION_TOKEN} Bearer 0b79bab50daca910b000d4f1a2b675d604257e42 ${NEG_AUTHORIZATION_TOKEN} Bearer negativetoken ${INSUFFICIENT_AUTHORIZATION_TOKEN} Bearer INSUFFICIENT_AUTHORIZATION_TOKEN #${NEG_AUTHORIZATION_TOKEN} Bearer negativetoken ${NFVO_AUTH_USAGE} 1 ${NFVO_AUTH_USAGE} 1 ${CONTENT_TYPE_JSON} application/json ${CONTENT_TYPE_JSON} application/json ${ACCEPT_JSON} application/json ${ACCEPT_JSON} application/json Loading