Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NFV - Network Functions Virtualisation
api-tests
Commits
3289ba78
Commit
3289ba78
authored
Feb 12, 2021
by
Giacomo Bernini
Browse files
updated authorization header and token use in SOL003 v2.7.1
parent
bf39094b
Changes
46
Show whitespace changes
Inline
Side-by-side
SOL003/VNFPerformanceManagement-API/Thresholds.robot
View file @
3289ba78
...
...
@@ -140,7 +140,7 @@ GET Performance Thresholds - Bad Request Response too Big
GET all Performance Thresholds
Log
Trying to get all thresholds present in the VNFM
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
${output}
=
Output
response
Set Suite Variable
${response}
${output}
...
...
@@ -148,7 +148,7 @@ GET all Performance Thresholds
GET Performance Thresholds with attribute-based filter
Log
Trying to get thresholds present in the VNFM with filter
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}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
...
...
@@ -156,7 +156,7 @@ GET Performance Thresholds with attribute-based filter
GET Performance Thresholds with invalid attribute-based filter
Log
Trying to get thresholds present in the VNFM with invalid filter
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}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
...
...
@@ -164,14 +164,14 @@ GET Performance Thresholds with invalid attribute-based filter
GET VNF Performance Thresholds with invalid resource endpoint
Log
Trying to get thresholds present in the VNFM with invalid resource endpoint
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
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Send Post Request Create new Performance 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
{"Content-Type": "
${CONTENT_TYPE_JSON}
"}
${template}
=
Get File
jsons/CreateThresholdRequest.json
...
...
@@ -182,7 +182,7 @@ Send Post Request Create new Performance Threshold
Send PUT Request for all Performance 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
{"Content-Type": "
${CONTENT_TYPE_JSON}
"}
PUT
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/thresholds
...
...
@@ -191,7 +191,7 @@ Send PUT Request for all Performance Thresholds
Send PATCH Request for all Performance 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
{"Content-Type": "
${CONTENT_TYPE_JSON}
"}
PATCH
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/thresholds
...
...
@@ -200,7 +200,7 @@ Send PATCH Request for all Performance Thresholds
Send DELETE Request for all Performance 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
${output}
=
Output
response
Set Suite Variable
${response}
${output}
...
...
@@ -212,7 +212,7 @@ Check Postcondition Thresholds Exist
Check Postcondition Threshold Exists
Log
Checking that Threshold exists
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']}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
...
...
SOL003/VNFPerformanceManagement-API/environment/variables.txt
View file @
3289ba78
...
...
@@ -4,7 +4,8 @@ ${VNFM_PORT} 8080 # Listening port of the VNFM
${VNFM_SCHEMA} https
${AUTHORIZATION} Bearer 0b79bab50daca910b000d4f1a2b675d604257e42
${AUTHORIZATION_HEADER} Authorization
${AUTHORIZATION_TOKEN} Bearer 0b79bab50daca910b000d4f1a2b675d604257e42
${NEG_AUTHORIZATION} Bearer negativetoken
${CONTENT_TYPE_JSON} application/json
...
...
SOL003/VirtualisedResourcesQuotaAvailableNotification-API/ApiVersion.robot
View file @
3289ba78
...
...
@@ -131,70 +131,70 @@ DELETE API Version with apiMajorVerion - Method not implemented
*** Keywords ***
POST API Version
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
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
GET API Version
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
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
PUT API Version
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
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
PATCH API Version
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
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
DELETE API Version
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
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
POST API Version with apiMajorVersion
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
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
GET API Version with apiMajorVersion
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
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
PUT API Version with apiMajorVersion
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
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
PATCH API Version with apiMajorVersion
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
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
DELETE API Version with apiMajorVersion
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
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
SOL003/VirtualisedResourcesQuotaAvailableNotification-API/NotificationConsumer.robot
View file @
3289ba78
...
...
@@ -24,7 +24,7 @@ Vr Quota Availibility Notification
Check resource existence and get CallbackUri
Set Headers
{"Accept":"
${ACCEPT}
"}
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}
Integer
response status
200
Validate Json
response body
VrQuotaAvailSubscription.schema.json
...
...
@@ -39,7 +39,7 @@ Post Vr Quota Avail Notification
log
Trying to perform a POST to get notification
Set Headers
{"Accept":"
${ACCEPT}
"}
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
${body}
=
Format String
${template}
subscriptionId=
${subscriptionId}
Post
${callbackResp}
${body}
...
...
SOL003/VirtualisedResourcesQuotaAvailableNotification-API/VRQANOperationKeywords.robot
View file @
3289ba78
...
...
@@ -17,7 +17,7 @@ Create Sessions
Check Individual Subscription existence
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}
Integer
response status
200
...
...
@@ -52,7 +52,7 @@ Check Postcondition VNF Virtualised Resources Quota Available Notification indiv
Send Post request for Virtualised Resources Quota Available Notification Individual Subscription
log
Trying to perform a POST. This method should not be implemented
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}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -60,7 +60,7 @@ Send Post request for Virtualised Resources Quota Available Notification Individ
Put Virtualised Resources Quota Available Notification individual Subscription
log
Trying to perform a PUT. This method should not be implemented
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}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -68,7 +68,7 @@ Put 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
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}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -76,7 +76,7 @@ Patch Virtualised Resources Quota Available Notification individual subscription
Get Virtualised Resources Quota Available Notification individual subscription
log
Trying to get information about an individual subscription
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}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -84,7 +84,7 @@ Get Virtualised Resources Quota Available Notification individual subscription
Delete Virtualised Resources Quota Available Notification individual subscription
log
Try to delete an individual subscription
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}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -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
Set Headers
{"Accept":"
${ACCEPT}
"}
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
${body}
=
Format String
${template}
callback_uri=
${callback_uri}
:
${callback_port}
callback_subscribe=
${callback_subscribe}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
...
...
@@ -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
Set Headers
{"Accept": "
${ACCEPT}
"}
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
${body}
=
Format String
${template}
callback_uri=
${callback_uri}
:
${callback_port}
callback_subscribe=
${callback_subscribe}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
...
...
@@ -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
Set Headers
{"Accept": "
${ACCEPT}
"}
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
${body}
=
Format String
${template}
callback_uri=
${callback_uri}
:
${callback_port}
callback_subscribe=
${callback_subscribe}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
...
...
@@ -127,7 +127,7 @@ Send Post request for new Virtualised Resources Quota Available Notification sub
GET Virtualised Resources Quota Available Notification Subscriptions
Log
Get the list of active subscriptions
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
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${outputResponse}
=
Output
response
...
...
@@ -136,7 +136,7 @@ GET Virtualised Resources Quota Available Notification Subscriptions
GET Virtualised Resources Quota Available Notification Subscriptions with Filter
Log
Get the list of active subscriptions
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
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions?
${sub_filter}
${outputResponse}
=
Output
response
...
...
@@ -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
Log
Get the list of active subscriptions using an invalid filter
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}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -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
Set Headers
{"Accept":"
${ACCEPT}
"}
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
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -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
Set Headers
{"Accept":"
${ACCEPT}
"}
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
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -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
Set Headers
{"Accept":"
${ACCEPT}
"}
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
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
SOL003/VirtualisedResourcesQuotaAvailableNotification-API/environment/variables.txt
View file @
3289ba78
...
...
@@ -2,7 +2,8 @@
${NFVO_HOST} localhost # Hostname of the NFVO
${NFVO_PORT} 8081 # Listening port of the NFVO
${NFVO_SCHEMA} https
${AUTHORIZATION} Bearer QWxhZGRpbjpvcGVuIHNlc2FtZQ==
${AUTHORIZATION_HEADER} Authorization
${AUTHORIZATION_TOKEN} Bearer 0b79bab50daca910b000d4f1a2b675d604257e42
${CONTENT_TYPE} application/json
${AUTH_USAGE} 1
${ACCEPT} application/json
...
...
Prev
1
2
3
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment