Commit 3289ba78 authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

updated authorization header and token use in SOL003 v2.7.1

parent bf39094b
...@@ -140,7 +140,7 @@ GET Performance Thresholds - Bad Request Response too Big ...@@ -140,7 +140,7 @@ GET Performance Thresholds - Bad Request Response too Big
GET all Performance Thresholds GET all Performance Thresholds
Log Trying to get all thresholds present in the VNFM Log Trying to get all thresholds present in the VNFM
Set Headers {"Accept": "${ACCEPT_JSON}"} Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds GET ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -148,7 +148,7 @@ GET all Performance Thresholds ...@@ -148,7 +148,7 @@ GET all Performance Thresholds
GET Performance Thresholds with attribute-based filter GET Performance Thresholds with attribute-based filter
Log Trying to get thresholds present in the VNFM with filter Log Trying to get thresholds present in the VNFM with filter
Set Headers {"Accept": "${ACCEPT_JSON}"} Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds?${FILTER_OK} GET ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds?${FILTER_OK}
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -156,7 +156,7 @@ GET Performance Thresholds with attribute-based filter ...@@ -156,7 +156,7 @@ GET Performance Thresholds with attribute-based filter
GET Performance Thresholds with invalid attribute-based filter GET Performance Thresholds with invalid attribute-based filter
Log Trying to get thresholds present in the VNFM with invalid filter Log Trying to get thresholds present in the VNFM with invalid filter
Set Headers {"Accept": "${ACCEPT_JSON}"} Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds?${FILTER_KO} GET ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds?${FILTER_KO}
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -164,14 +164,14 @@ GET Performance Thresholds with invalid attribute-based filter ...@@ -164,14 +164,14 @@ GET Performance Thresholds with invalid attribute-based filter
GET VNF Performance Thresholds with invalid resource endpoint GET VNF Performance Thresholds with invalid resource endpoint
Log Trying to get thresholds present in the VNFM with invalid resource endpoint Log Trying to get thresholds present in the VNFM with invalid resource endpoint
Set Headers {"Accept": "${ACCEPT_JSON}"} Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/threshold GET ${apiRoot}/${apiName}/${apiMajorVersion}/threshold
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
Send Post Request Create new Performance Threshold Send Post Request Create new Performance Threshold
Log Creating a new THreshold Log Creating a new THreshold
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Set Headers {"Accept": "${ACCEPT_JSON}"} Set Headers {"Accept": "${ACCEPT_JSON}"}
Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"} Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"}
${template}= Get File jsons/CreateThresholdRequest.json ${template}= Get File jsons/CreateThresholdRequest.json
...@@ -182,7 +182,7 @@ Send Post Request Create new Performance Threshold ...@@ -182,7 +182,7 @@ Send Post Request Create new Performance Threshold
Send PUT Request for all Performance Thresholds Send PUT Request for all Performance Thresholds
Log PUT THresholds Log PUT THresholds
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Set Headers {"Accept": "${ACCEPT_JSON}"} Set Headers {"Accept": "${ACCEPT_JSON}"}
Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"} Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"}
PUT ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds PUT ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds
...@@ -191,7 +191,7 @@ Send PUT Request for all Performance Thresholds ...@@ -191,7 +191,7 @@ Send PUT Request for all Performance Thresholds
Send PATCH Request for all Performance Thresholds Send PATCH Request for all Performance Thresholds
Log PUT THresholds Log PUT THresholds
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Set Headers {"Accept": "${ACCEPT_JSON}"} Set Headers {"Accept": "${ACCEPT_JSON}"}
Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"} Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"}
PATCH ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds PATCH ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds
...@@ -200,7 +200,7 @@ Send PATCH Request for all Performance Thresholds ...@@ -200,7 +200,7 @@ Send PATCH Request for all Performance Thresholds
Send DELETE Request for all Performance Thresholds Send DELETE Request for all Performance Thresholds
Log DELETE THresholds Log DELETE THresholds
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
DELETE ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds DELETE ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -212,7 +212,7 @@ Check Postcondition Thresholds Exist ...@@ -212,7 +212,7 @@ Check Postcondition Thresholds Exist
Check Postcondition Threshold Exists Check Postcondition Threshold Exists
Log Checking that Threshold exists Log Checking that Threshold exists
Set Headers {"Accept": "${ACCEPT_JSON}"} Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds/${response['body']['id']} GET ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds/${response['body']['id']}
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
......
...@@ -4,7 +4,8 @@ ${VNFM_PORT} 8080 # Listening port of the VNFM ...@@ -4,7 +4,8 @@ ${VNFM_PORT} 8080 # Listening port of the VNFM
${VNFM_SCHEMA} https ${VNFM_SCHEMA} https
${AUTHORIZATION} Bearer 0b79bab50daca910b000d4f1a2b675d604257e42 ${AUTHORIZATION_HEADER} Authorization
${AUTHORIZATION_TOKEN} Bearer 0b79bab50daca910b000d4f1a2b675d604257e42
${NEG_AUTHORIZATION} Bearer negativetoken ${NEG_AUTHORIZATION} Bearer negativetoken
${CONTENT_TYPE_JSON} application/json ${CONTENT_TYPE_JSON} application/json
......
...@@ -131,70 +131,70 @@ DELETE API Version with apiMajorVerion - Method not implemented ...@@ -131,70 +131,70 @@ DELETE API Version with apiMajorVerion - Method not implemented
*** Keywords *** *** Keywords ***
POST API Version POST API Version
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Post ${apiRoot}/${apiName}/api_versions Post ${apiRoot}/${apiName}/api_versions
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
GET API Version GET API Version
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Get ${apiRoot}/${apiName}/api_versions Get ${apiRoot}/${apiName}/api_versions
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
PUT API Version PUT API Version
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Put ${apiRoot}/${apiName}/api_versions Put ${apiRoot}/${apiName}/api_versions
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
PATCH API Version PATCH API Version
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Patch ${apiRoot}/${apiName}/api_versions Patch ${apiRoot}/${apiName}/api_versions
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
DELETE API Version DELETE API Version
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Delete ${apiRoot}/${apiName}/api_versions Delete ${apiRoot}/${apiName}/api_versions
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
POST API Version with apiMajorVersion POST API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/api_versions Post ${apiRoot}/${apiName}/${apiMajorVersion}/api_versions
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
GET API Version with apiMajorVersion GET API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Get ${apiRoot}/${apiName}/${apiMajorVersion}/api_versions Get ${apiRoot}/${apiName}/${apiMajorVersion}/api_versions
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
PUT API Version with apiMajorVersion PUT API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Put ${apiRoot}/${apiName}/${apiMajorVersion}/api_versions Put ${apiRoot}/${apiName}/${apiMajorVersion}/api_versions
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
PATCH API Version with apiMajorVersion PATCH API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Patch ${apiRoot}/${apiName}/${apiMajorVersion}/api_versions Patch ${apiRoot}/${apiName}/${apiMajorVersion}/api_versions
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
DELETE API Version with apiMajorVersion DELETE API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Delete ${apiRoot}/${apiName}/${apiMajorVersion}/api_versions Delete ${apiRoot}/${apiName}/${apiMajorVersion}/api_versions
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
......
...@@ -24,7 +24,7 @@ Vr Quota Availibility Notification ...@@ -24,7 +24,7 @@ Vr Quota Availibility Notification
Check resource existence and get CallbackUri Check resource existence and get CallbackUri
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_HEADER}":"${AUTHORIZATION_TOKEN}"}
Get ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId} Get ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId}
Integer response status 200 Integer response status 200
Validate Json response body VrQuotaAvailSubscription.schema.json Validate Json response body VrQuotaAvailSubscription.schema.json
...@@ -39,7 +39,7 @@ Post Vr Quota Avail Notification ...@@ -39,7 +39,7 @@ Post Vr Quota Avail Notification
log Trying to perform a POST to get notification log Trying to perform a POST to get notification
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_HEADER}":"${AUTHORIZATION_TOKEN}"}
${template} = Get File jsons/VrQuotaAvailNotification.json ${template} = Get File jsons/VrQuotaAvailNotification.json
${body}= Format String ${template} subscriptionId=${subscriptionId} ${body}= Format String ${template} subscriptionId=${subscriptionId}
Post ${callbackResp} ${body} Post ${callbackResp} ${body}
......
...@@ -17,7 +17,7 @@ Create Sessions ...@@ -17,7 +17,7 @@ Create Sessions
Check Individual Subscription existence Check Individual Subscription existence
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Get ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId} Get ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId}
Integer response status 200 Integer response status 200
...@@ -52,7 +52,7 @@ Check Postcondition VNF Virtualised Resources Quota Available Notification indiv ...@@ -52,7 +52,7 @@ Check Postcondition VNF Virtualised Resources Quota Available Notification indiv
Send Post request for Virtualised Resources Quota Available Notification Individual Subscription Send Post request for Virtualised Resources Quota Available Notification Individual Subscription
log Trying to perform a POST. This method should not be implemented log Trying to perform a POST. This method should not be implemented
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId} Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId}
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
...@@ -60,7 +60,7 @@ Send Post request for Virtualised Resources Quota Available Notification Individ ...@@ -60,7 +60,7 @@ Send Post request for Virtualised Resources Quota Available Notification Individ
Put Virtualised Resources Quota Available Notification individual Subscription Put Virtualised Resources Quota Available Notification individual Subscription
log Trying to perform a PUT. This method should not be implemented log Trying to perform a PUT. This method should not be implemented
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Put ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId} Put ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId}
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
...@@ -68,7 +68,7 @@ Put Virtualised Resources Quota Available Notification individual Subscription ...@@ -68,7 +68,7 @@ Put Virtualised Resources Quota Available Notification individual Subscription
Patch Virtualised Resources Quota Available Notification individual subscription Patch Virtualised Resources Quota Available Notification individual subscription
log Trying to perform a Patch. This method should not be implemented log Trying to perform a Patch. This method should not be implemented
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Patch ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId} Patch ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId}
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
...@@ -76,7 +76,7 @@ Patch Virtualised Resources Quota Available Notification individual subscription ...@@ -76,7 +76,7 @@ Patch Virtualised Resources Quota Available Notification individual subscription
Get Virtualised Resources Quota Available Notification individual subscription Get Virtualised Resources Quota Available Notification individual subscription
log Trying to get information about an individual subscription log Trying to get information about an individual subscription
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Get ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId} Get ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId}
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
...@@ -84,7 +84,7 @@ Get Virtualised Resources Quota Available Notification individual subscription ...@@ -84,7 +84,7 @@ Get Virtualised Resources Quota Available Notification individual subscription
Delete Virtualised Resources Quota Available Notification individual subscription Delete Virtualised Resources Quota Available Notification individual subscription
log Try to delete an individual subscription log Try to delete an individual subscription
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Delete ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId} Delete ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId}
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
...@@ -93,7 +93,7 @@ Send Post request for new Virtualised Resources Quota Available Notification sub ...@@ -93,7 +93,7 @@ Send Post request for new Virtualised Resources Quota Available Notification sub
Log Create subscription instance by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions Log Create subscription instance by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions
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_HEADER}":"${AUTHORIZATION_TOKEN}"}
${template}= Get File jsons/vrQuotaAvailSubscriptionRequest.json ${template}= Get File jsons/vrQuotaAvailSubscriptionRequest.json
${body}= Format String ${template} callback_uri=${callback_uri}:${callback_port} callback_subscribe=${callback_subscribe} ${body}= Format String ${template} callback_uri=${callback_uri}:${callback_port} callback_subscribe=${callback_subscribe}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
...@@ -105,7 +105,7 @@ Send Post request for new Virtualised Resources Quota Available Notification sub ...@@ -105,7 +105,7 @@ Send Post request for new Virtualised Resources Quota Available Notification sub
Pass Execution If ${NFVO_DUPLICATION} == 0 NVFO is not permitting duplication. Skipping the test Pass Execution If ${NFVO_DUPLICATION} == 0 NVFO is not permitting duplication. Skipping the test
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_HEADER}":"${AUTHORIZATION_TOKEN}"}
${template}= Get File jsons/vrQuotaAvailSubscriptionRequest.json ${template}= Get File jsons/vrQuotaAvailSubscriptionRequest.json
${body}= Format String ${template} callback_uri=${callback_uri}:${callback_port} callback_subscribe=${callback_subscribe} ${body}= Format String ${template} callback_uri=${callback_uri}:${callback_port} callback_subscribe=${callback_subscribe}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
...@@ -117,7 +117,7 @@ Send Post request for new Virtualised Resources Quota Available Notification sub ...@@ -117,7 +117,7 @@ Send Post request for new Virtualised Resources Quota Available Notification sub
Pass Execution If ${NFVO_DUPLICATION} == 1 VNFM permits duplication. Skipping the test Pass Execution If ${NFVO_DUPLICATION} == 1 VNFM permits duplication. Skipping the test
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_HEADER}":"${AUTHORIZATION_TOKEN}"}
${template}= Get File jsons/vrQuotaAvailSubscriptionRequest.json ${template}= Get File jsons/vrQuotaAvailSubscriptionRequest.json
${body}= Format String ${template} callback_uri=${callback_uri}:${callback_port} callback_subscribe=${callback_subscribe} ${body}= Format String ${template} callback_uri=${callback_uri}:${callback_port} callback_subscribe=${callback_subscribe}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} Post ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body}
...@@ -127,7 +127,7 @@ Send Post request for new Virtualised Resources Quota Available Notification sub ...@@ -127,7 +127,7 @@ Send Post request for new Virtualised Resources Quota Available Notification sub
GET Virtualised Resources Quota Available Notification Subscriptions GET Virtualised Resources Quota Available Notification Subscriptions
Log Get the list of active subscriptions Log Get the list of active subscriptions
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Log Execute Query and validate response Log Execute Query and validate response
Get ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions Get ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions
${outputResponse}= Output response ${outputResponse}= Output response
...@@ -136,7 +136,7 @@ GET Virtualised Resources Quota Available Notification Subscriptions ...@@ -136,7 +136,7 @@ GET Virtualised Resources Quota Available Notification Subscriptions
GET Virtualised Resources Quota Available Notification Subscriptions with Filter GET Virtualised Resources Quota Available Notification Subscriptions with Filter
Log Get the list of active subscriptions Log Get the list of active subscriptions
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Log Execute Query and validate response Log Execute Query and validate response
Get ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions?${sub_filter} Get ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions?${sub_filter}
${outputResponse}= Output response ${outputResponse}= Output response
...@@ -145,7 +145,7 @@ GET Virtualised Resources Quota Available Notification Subscriptions with Filter ...@@ -145,7 +145,7 @@ GET Virtualised Resources Quota Available Notification Subscriptions with Filter
Get Virtualised Resources Quota Available Notification subscriptions with Bad Request Invalid attribute-based filtering parameters Get Virtualised Resources Quota Available Notification subscriptions with Bad Request Invalid attribute-based filtering parameters
Log Get the list of active subscriptions using an invalid filter Log Get the list of active subscriptions using an invalid filter
Set Headers {"Accept": "${ACCEPT}"} Set Headers {"Accept": "${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions?${sub_filter_invalid} GET ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions?${sub_filter_invalid}
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
...@@ -154,7 +154,7 @@ Send Put request for Virtualised Resources Quota Available Notification subscrip ...@@ -154,7 +154,7 @@ Send Put request for Virtualised Resources Quota Available Notification subscrip
log Trying to perform a PUT. This method should not be implemented log Trying to perform a PUT. This method should not be implemented
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_HEADER}":"${AUTHORIZATION_TOKEN}"}
Put ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions Put ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
...@@ -163,7 +163,7 @@ Send Patch request for Virtualised Resources Quota Available Notification subscr ...@@ -163,7 +163,7 @@ Send Patch request for Virtualised Resources Quota Available Notification subscr
log Trying to perform a Patch. This method should not be implemented log Trying to perform a Patch. This method should not be implemented
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_HEADER}":"${AUTHORIZATION_TOKEN}"}
Patch ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions Patch ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
...@@ -172,7 +172,7 @@ Send Delete request for Virtualised Resources Quota Available Notification subsc ...@@ -172,7 +172,7 @@ Send Delete request for Virtualised Resources Quota Available Notification subsc
log Trying to perform a Delete. This method should not be implemented log Trying to perform a Delete. This method should not be implemented
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_HEADER}":"${AUTHORIZATION_TOKEN}"}
Delete ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions Delete ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
${NFVO_HOST} localhost # Hostname of the NFVO ${NFVO_HOST} localhost # Hostname of the NFVO
${NFVO_PORT} 8081 # Listening port of the NFVO ${NFVO_PORT} 8081 # Listening port of the NFVO
${NFVO_SCHEMA} https ${NFVO_SCHEMA} https
${AUTHORIZATION} Bearer QWxhZGRpbjpvcGVuIHNlc2FtZQ== ${AUTHORIZATION_HEADER} Authorization
${AUTHORIZATION_TOKEN} Bearer 0b79bab50daca910b000d4f1a2b675d604257e42
${CONTENT_TYPE} application/json ${CONTENT_TYPE} application/json
${AUTH_USAGE} 1 ${AUTH_USAGE} 1
${ACCEPT} application/json ${ACCEPT} application/json
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment