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/VNFFaultManagement-API/ApiVersion.robot
View file @
3289ba78
...
...
@@ -133,70 +133,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/VNFFaultManagement-API/FaultManagement-APIKeyword.robot
View file @
3289ba78
...
...
@@ -15,7 +15,7 @@ ${original_etag} 1234
*** Keywords ***
Check created 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/
${response['body']['id']}
Integer
response status
200
Check Postcondition FaultManagement Subscription Is Set
...
...
@@ -37,13 +37,13 @@ Check Precondition VNF fault management individual alarm Exists
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
Check Individual Subscription deleted
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
404
...
...
@@ -72,7 +72,7 @@ Check HTTP Response Header ContentType is
Check Postcondition Subscription Resource Returned in Location Header Is Available
Log
Going to check postcondition
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
Authorization
":
"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
GET
${response['headers']['Location']}
Integer
response status
200
Log
Received a 200 OK as expected
...
...
@@ -85,7 +85,7 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab
Send POST request for fault management Alarms
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}
/alarms
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -93,7 +93,7 @@ Send POST request for fault management Alarms
PATCH Fault management Alarms
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}
/alarms
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -101,7 +101,7 @@ PATCH Fault management Alarms
PUT Fault management Alarms
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}
/alarms
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -109,7 +109,7 @@ PUT Fault management Alarms
DELETE Fault management Alarms
log
Trying to perform a DELETE. 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
}
"}
Delete
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -117,7 +117,7 @@ DELETE Fault management Alarms
GET Fault Management Alarms
Log
Query NFVO The GET method queries information about multiple alarms.
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
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms
${outputResponse}
=
Output
response
...
...
@@ -126,7 +126,7 @@ GET Fault Management Alarms
GET Fault Management Alarms With Filters
Log
Query NFVO The GET method queries information about multiple alarms with filters.
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
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?
${alarm_filter}
=
${nsInstanceId}
${outputResponse}
=
Output
response
...
...
@@ -135,7 +135,7 @@ GET Fault Management Alarms With Filters
GET Fault Management Alarms With Invalid Filters
Log
Query NFVO The GET method queries information about multiple alarms with filters.
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
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?
${invalid_alarm_filter}
=
${nsInstanceId}
${outputResponse}
=
Output
response
...
...
@@ -144,7 +144,7 @@ GET Alarms Task with all_fields attribute selector
Log
Trying to get all VNF Packages present in the NFVO Catalogue, using fields
Pass Execution If
${NFVO_FIELDS}
=
= 0
The NFVO is not able to use fields parameter
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}
/alarms?exclude_default
${output}
=
Output
response
Set Suite Variable
${response}
${output}
...
...
@@ -152,7 +152,7 @@ GET Alarms Task with exclude_default attribute selector
Log
Trying to get all VNF Packages present in the NFVO Catalogue, using fields
Pass Execution If
${NFVO_FIELDS}
=
= 0
The NFVO is not able to use fields parameter
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}
/alarms?exclude_default
${output}
=
Output
response
Set Suite Variable
${response}
${output}
...
...
@@ -160,7 +160,7 @@ GET Alarms Task with fields attribute selector
Log
Trying to get all alarms present in the NFVO Catalogue, using fields
Pass Execution If
${NFVO_FIELDS}
=
= 0
The NFVO is not able to use fields parameter
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}
/alarms?fields=
${fields}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
...
...
@@ -168,14 +168,14 @@ GET Alarms Task with exclude_fields attribute selector
Log
Trying to get all VNF Packages present in the NFVO Catalogue, using fields
Pass Execution If
${NFVO_FIELDS}
=
= 0
The NFVO is not able to use fields parameter
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}
/alarms?exclude_fields=
${fields}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Send POST request for fault management Individual Alarm
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
}
"}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${alarmId}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -183,7 +183,7 @@ Send POST request for fault management Individual Alarm
DELETE Fault Management Individual Alarm
log
Trying to perform a DELETE. 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
}
"}
Delete
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${alarmId}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -191,7 +191,7 @@ DELETE Fault Management Individual Alarm
PUT Fault Management Individual Alarm
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}
/alarms/
${alarmId}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -200,7 +200,7 @@ GET Fault Management Individual Alarm
Log
Query VNF The GET method queries information about an alarm.
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
}
"}
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${alarmId}
${etag}
Output
response headers ETag
...
...
@@ -212,7 +212,7 @@ GET Fault Management Individual Alarm with invalid id
Log
Query NFVO The GET method queries information about an invalid alarm. Should return does not exist
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
}
"}
Log
Execute Query
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${invalidAlarmId}
${outputResponse}
=
Output
response
...
...
@@ -222,7 +222,7 @@ PATCH Fault Management Individual Alarm
log
Trying to perform a PATCH. This method modifies an individual alarm resource
Set Headers
{"Accept":"
${ACCEPT}
"}
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_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
${body}
=
Get File
jsons/alarmModifications.json
Patch
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${alarmId}
${body}
${outputResponse}
=
Output
response
...
...
@@ -233,7 +233,7 @@ PATCH Fault Management Individual Alarm - precondition failed
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE_PATCH}
"}
Set Headers
{"If-Match": "
${original_etag[0]}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
Authorization
":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
${body}
=
Get File
jsons/alarmModifications.json
Patch
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${alarmId}
${body}
${outputResponse}
=
Output
response
...
...
@@ -244,7 +244,7 @@ PATCH Fault Management Individual Alarm Conflict
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE_PATCH}
"}
Set Headers
{"If-Match": "
${Etag}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
Authorization
":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
${body}
=
Get File
jsons/alarmModifications.json
Patch
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${alarmId}
${body}
${outputResponse}
=
Output
response
...
...
@@ -254,7 +254,7 @@ POST Subscription
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/fmSubscriptionRequest.json
${body}
=
Format String
${template}
vnfdIds=
${vnfdIds}
callback_uri=
${callback_uri}
:
${callback_port}
callback_endpoint=
${callback_endpoint}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
...
...
@@ -266,7 +266,7 @@ Send POST Request for duplicated subscription
Pass Execution If
${VNFM_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/fmSubscriptionRequest.json
${body}
=
Format String
${template}
vnfdIds=
${vnfdIds}
callback_uri=
${callback_uri}
:
${callback_port}
callback_endpoint=
${callback_endpoint}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
...
...
@@ -278,7 +278,7 @@ Send POST Request for duplicated subscription not permitted
Pass Execution If
${VNFM_DUPLICATION}
=
= 1
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/fmSubscriptionRequest.json
${body}
=
Format String
${template}
vnfdIds=
${vnfdIds}
callback_uri=
${callback_uri}
:
${callback_port}
callback_endpoint=
${callback_endpoint}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
...
...
@@ -288,7 +288,7 @@ Send POST Request for duplicated subscription not permitted
GET 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
}
"}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -296,7 +296,7 @@ GET Subscriptions
GET Subscriptions with filter
Log
Get the list of active subscriptions using a 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}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -304,42 +304,42 @@ GET Subscriptions with filter
GET Subscriptions with Invalid filter
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}
Get subscriptions with all_fields attribute selector
Log
Get the list of active subscriptions, using fields
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}
/subscriptions?exclude_default
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Get subscriptions with exclude_default attribute selector
Log
Get the list of active subscriptions, using fields
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}
/subscriptions?exclude_default
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Get subscriptions with fields attribute selector
Log
Get the list of active subscriptions, using fields
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}
/subscriptions?fields=
${fields}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Get subscriptions with exclude_fields attribute selector
Log
Get the list of active subscriptions, using fields
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}
/subscriptions?exclude_fields=
${fields}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
PUT Subscriptions
log
Trying to perform a PUT Subscriptions. 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
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -347,7 +347,7 @@ PUT Subscriptions
PATCH Subscriptions
log
Trying to perform a PATCH Subscriptions. 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
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -355,7 +355,7 @@ PATCH Subscriptions
DELETE Subscriptions
log
Trying to perform a DELETE Subscriptions. 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
}
"}
Delete
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -363,7 +363,7 @@ DELETE Subscriptions
POST 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}
...
...
@@ -371,7 +371,7 @@ POST Individual Subscription
GET 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}
...
...
@@ -379,7 +379,7 @@ GET Individual Subscription
PUT 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}
...
...
@@ -387,7 +387,7 @@ PUT Individual Subscription
PATCH 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}
...
...
@@ -395,7 +395,7 @@ PATCH Individual Subscription
DELETE Individual Subscription
log
Trying to perform a DELETE.
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}
...
...
@@ -407,7 +407,7 @@ Check HTTP Response Header Contain Link
Get subscriptions with filter "id"
Log
Get the list of active subscriptions using a filter "id"
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?id=
${subscription_id}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -418,7 +418,7 @@ Check PostCondition HTTP Response Body Subscription Matches the requested attrib
Get subscriptions with filter "filter_notificationTypes"
Log
Get the list of active subscriptions using a filter "filter.notificationTypes"
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?filter.notificationTypes=
${notification_type}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -431,7 +431,7 @@ Check PostCondition HTTP Response Body Subscriptions Matches the requested attri
Get subscriptions with filter "filter_faultyResourceTypes"
Log
Get the list of active subscriptions using a filter "filter.faultyResourceTypes"
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?filter.faultyResourceTypes=
${faultyResourceType}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -444,7 +444,7 @@ Check PostCondition HTTP Response Body Subscriptions Matches the requested attri
Get subscriptions with filter "filter_perceivedSeverities"
Log
Get the list of active subscriptions using a filter "filter.perceivedSeverities"
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?filter.perceivedSeverities=
${perceivedSeverity}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -457,7 +457,7 @@ Check PostCondition HTTP Response Body Subscriptions Matches the requested attri
Get subscriptions with filter "filter_eventTypes"
Log
Get the list of active subscriptions using a filter "filter.eventTypes"
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?filter.eventTypes=
${eventType}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -470,7 +470,7 @@ Check PostCondition HTTP Response Body Subscriptions Matches the requested attri
Get subscriptions with filter "filter_probableCauses"
Log
Get the list of active subscriptions using a filter "filter.probableCauses"
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?filter.probableCauses=
${probableCause}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
SOL003/VNFFaultManagement-API/NotificationConsumer.robot
View file @
3289ba78
...
...
@@ -48,7 +48,7 @@ VNF Fault Alarm List Reulit 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
FmSubscriptions.schema.json
...
...
@@ -64,7 +64,7 @@ Post Alarm 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/AlarmNotification.json
${body}
=
Format String
${template}
subscriptionId=
${subscriptionId}
Post
${callbackResp}
${body}
...
...
@@ -75,7 +75,7 @@ Post Alarm Cleared 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/AlarmClearedNotification.json
${body}
=
Format String
${template}
subscriptionId=
${subscriptionId}
alarmId=
${alarmId}
Post
${callbackResp}
${body}
...
...
@@ -86,7 +86,7 @@ Post Alarm List Rebuilt 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/AlarmListRebuiltNotification.json
${body}
=
Format String
${template}
subscriptionId=
${subscriptionId}
Post
${callbackResp}
${body}
...
...
SOL003/VNFFaultManagement-API/environment/variables.txt
View file @
3289ba78
...
...
@@ -2,7 +2,8 @@
${VNFM_HOST} localhost # Hostname of the VNFM
${VNFM_PORT} 8080 # Listening port of the VNFM
${VNFM_SCHEMA} https
${AUTHORIZATION} Bearer QWxhZGRpbjpvcGVuIHNlc2FtZQ==
${AUTHORIZATION_HEADER} Authorization
${AUTHORIZATION_TOKEN} Bearer 0b79bab50daca910b000d4f1a2b675d604257e42
${CONTENT_TYPE} application/json
${ACCEPT} application/json
${ACCEPT_JSON} application/json
...
...
SOL003/VNFIndicator-API/ApiVersion.robot
View file @
3289ba78
...
...
@@ -133,70 +133,70 @@ DELETE API Version with apiMajorVerion - Method not implemented
*** Keywords ***
POST API Version
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
}
"}
Post
${apiRoot}
/
${apiName}
/api_versions
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
GET API Version
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}
/api_versions
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
PUT API Version
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
}
"}
Put
${apiRoot}
/
${apiName}
/api_versions
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
PATCH API Version
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
}
"}
Patch
${apiRoot}
/
${apiName}
/api_versions
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}