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
Hide 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
...
@@ -133,70 +133,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}
...
...
SOL003/VNFFaultManagement-API/FaultManagement-APIKeyword.robot
View file @
3289ba78
...
@@ -15,7 +15,7 @@ ${original_etag} 1234
...
@@ -15,7 +15,7 @@ ${original_etag} 1234
*** Keywords ***
*** Keywords ***
Check created Subscription existence
Check created 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/
${response['body']['id']}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions/
${response['body']['id']}
Integer
response status
200
Integer
response status
200
Check Postcondition FaultManagement Subscription Is Set
Check Postcondition FaultManagement Subscription Is Set
...
@@ -37,13 +37,13 @@ Check Precondition VNF fault management individual alarm Exists
...
@@ -37,13 +37,13 @@ Check Precondition VNF fault management individual alarm Exists
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
Check Individual Subscription deleted
Check Individual Subscription deleted
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
404
Integer
response status
404
...
@@ -72,7 +72,7 @@ Check HTTP Response Header ContentType is
...
@@ -72,7 +72,7 @@ Check HTTP Response Header ContentType is
Check Postcondition Subscription Resource Returned in Location Header Is Available
Check Postcondition Subscription Resource Returned in Location Header Is Available
Log
Going to check postcondition
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']}
GET
${response['headers']['Location']}
Integer
response status
200
Integer
response status
200
Log
Received a 200 OK as expected
Log
Received a 200 OK as expected
...
@@ -85,7 +85,7 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab
...
@@ -85,7 +85,7 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab
Send POST request for fault management Alarms
Send POST request for fault management Alarms
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}
/alarms
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
...
@@ -93,7 +93,7 @@ Send POST request for fault management Alarms
...
@@ -93,7 +93,7 @@ Send POST request for fault management Alarms
PATCH Fault management Alarms
PATCH Fault management Alarms
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}
/alarms
Patch
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
...
@@ -101,7 +101,7 @@ PATCH Fault management Alarms
...
@@ -101,7 +101,7 @@ PATCH Fault management Alarms
PUT Fault management Alarms
PUT Fault management Alarms
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}
/alarms
Put
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
...
@@ -109,7 +109,7 @@ PUT Fault management Alarms
...
@@ -109,7 +109,7 @@ PUT Fault management Alarms
DELETE Fault management Alarms
DELETE Fault management Alarms
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}
"}
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
Delete
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
...
@@ -117,7 +117,7 @@ DELETE Fault management Alarms
...
@@ -117,7 +117,7 @@ DELETE Fault management Alarms
GET Fault Management Alarms
GET Fault Management Alarms
Log
Query NFVO The GET method queries information about multiple alarms.
Log
Query NFVO The GET method queries information about multiple alarms.
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
Log
Execute Query
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
...
@@ -126,7 +126,7 @@ GET Fault Management Alarms
...
@@ -126,7 +126,7 @@ GET Fault Management Alarms
GET Fault Management Alarms With Filters
GET Fault Management Alarms With Filters
Log
Query NFVO The GET method queries information about multiple alarms with filters.
Log
Query NFVO The GET method queries information about multiple alarms with filters.
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
Log
Execute Query
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?
${alarm_filter}
=
${nsInstanceId}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?
${alarm_filter}
=
${nsInstanceId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
...
@@ -135,7 +135,7 @@ GET Fault Management Alarms With Filters
...
@@ -135,7 +135,7 @@ GET Fault Management Alarms With Filters
GET Fault Management Alarms With Invalid Filters
GET Fault Management Alarms With Invalid Filters
Log
Query NFVO The GET method queries information about multiple alarms with filters.
Log
Query NFVO The GET method queries information about multiple alarms with filters.
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
Log
Execute Query
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?
${invalid_alarm_filter}
=
${nsInstanceId}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?
${invalid_alarm_filter}
=
${nsInstanceId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
...
@@ -144,7 +144,7 @@ GET Alarms Task with all_fields attribute selector
...
@@ -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
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
Pass Execution If
${NFVO_FIELDS}
=
= 0
The NFVO is not able to use fields parameter
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}
/alarms?exclude_default
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?exclude_default
${output}
=
Output
response
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Set Suite Variable
${response}
${output}
...
@@ -152,7 +152,7 @@ GET Alarms Task with exclude_default attribute selector
...
@@ -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
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
Pass Execution If
${NFVO_FIELDS}
=
= 0
The NFVO is not able to use fields parameter
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}
/alarms?exclude_default
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?exclude_default
${output}
=
Output
response
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Set Suite Variable
${response}
${output}
...
@@ -160,7 +160,7 @@ GET Alarms Task with fields attribute selector
...
@@ -160,7 +160,7 @@ GET Alarms Task with fields attribute selector
Log
Trying to get all alarms present in the NFVO Catalogue, using fields
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
Pass Execution If
${NFVO_FIELDS}
=
= 0
The NFVO is not able to use fields parameter
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}
/alarms?fields=
${fields}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?fields=
${fields}
${output}
=
Output
response
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Set Suite Variable
${response}
${output}
...
@@ -168,14 +168,14 @@ GET Alarms Task with exclude_fields attribute selector
...
@@ -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
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
Pass Execution If
${NFVO_FIELDS}
=
= 0
The NFVO is not able to use fields parameter
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}
/alarms?exclude_fields=
${fields}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?exclude_fields=
${fields}
${output}
=
Output
response
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Set Suite Variable
${response}
${output}
Send POST request for fault management Individual Alarm
Send POST request for fault management Individual Alarm
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
}
"}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${alarmId}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${alarmId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
...
@@ -183,7 +183,7 @@ Send POST request for fault management Individual Alarm
...
@@ -183,7 +183,7 @@ Send POST request for fault management Individual Alarm
DELETE Fault Management Individual Alarm
DELETE Fault Management Individual Alarm
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}
"}
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}
Delete
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${alarmId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
...
@@ -191,7 +191,7 @@ DELETE Fault Management Individual Alarm
...
@@ -191,7 +191,7 @@ DELETE Fault Management Individual Alarm
PUT Fault Management Individual Alarm
PUT Fault Management Individual Alarm
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}
/alarms/
${alarmId}
Put
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${alarmId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
...
@@ -200,7 +200,7 @@ GET Fault Management Individual Alarm
...
@@ -200,7 +200,7 @@ GET Fault Management Individual Alarm
Log
Query VNF The GET method queries information about an alarm.
Log
Query VNF The GET method queries information about an alarm.
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
}
"}
Log
Execute Query and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${alarmId}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${alarmId}
${etag}
Output
response headers ETag
${etag}
Output
response headers ETag
...
@@ -212,7 +212,7 @@ GET Fault Management Individual Alarm with invalid id
...
@@ -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
Log
Query NFVO The GET method queries information about an invalid alarm. Should return does not exist
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
}
"}
Log
Execute Query
Log
Execute Query
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${invalidAlarmId}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${invalidAlarmId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
...
@@ -222,7 +222,7 @@ PATCH Fault Management Individual Alarm
...
@@ -222,7 +222,7 @@ PATCH Fault Management Individual Alarm
log
Trying to perform a PATCH. This method modifies an individual alarm resource
log
Trying to perform a PATCH. This method modifies an individual alarm resource
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE_PATCH}
"}
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
${body}
=
Get File
jsons/alarmModifications.json
Patch
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${alarmId}
${body}
Patch
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${alarmId}
${body}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
...
@@ -233,7 +233,7 @@ PATCH Fault Management Individual Alarm - precondition failed
...
@@ -233,7 +233,7 @@ PATCH Fault Management Individual Alarm - precondition failed
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE_PATCH}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE_PATCH}
"}
Set Headers
{"If-Match": "
${original_etag[0]}
"}
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
${body}
=
Get File
jsons/alarmModifications.json
Patch
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${alarmId}
${body}
Patch
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${alarmId}
${body}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
...
@@ -244,7 +244,7 @@ PATCH Fault Management Individual Alarm Conflict
...
@@ -244,7 +244,7 @@ PATCH Fault Management Individual Alarm Conflict
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE_PATCH}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE_PATCH}
"}
Set Headers
{"If-Match": "
${Etag}
"}
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
${body}
=
Get File
jsons/alarmModifications.json
Patch
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${alarmId}
${body}
Patch
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms/
${alarmId}
${body}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
...
@@ -254,7 +254,7 @@ POST Subscription
...
@@ -254,7 +254,7 @@ POST Subscription
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/fmSubscriptionRequest.json
${template}
=
Get File
jsons/fmSubscriptionRequest.json
${body}
=
Format String
${template}
vnfdIds=
${vnfdIds}
callback_uri=
${callback_uri}
:
${callback_port}
callback_endpoint=
${callback_endpoint}
${body}
=
Format String
${template}
vnfdIds=
${vnfdIds}
callback_uri=
${callback_uri}
:
${callback_port}
callback_endpoint=
${callback_endpoint}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
...
@@ -266,7 +266,7 @@ Send POST Request for duplicated subscription
...
@@ -266,7 +266,7 @@ Send POST Request for duplicated subscription
Pass Execution If
${VNFM_DUPLICATION}
=
= 0
NVFO is not permitting duplication. Skipping the test
Pass Execution If
${VNFM_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/fmSubscriptionRequest.json
${template}
=
Get File
jsons/fmSubscriptionRequest.json
${body}
=
Format String
${template}
vnfdIds=
${vnfdIds}
callback_uri=
${callback_uri}
:
${callback_port}
callback_endpoint=
${callback_endpoint}
${body}
=
Format String
${template}
vnfdIds=
${vnfdIds}
callback_uri=
${callback_uri}
:
${callback_port}
callback_endpoint=
${callback_endpoint}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
...
@@ -278,7 +278,7 @@ Send POST Request for duplicated subscription not permitted
...
@@ -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
Pass Execution If
${VNFM_DUPLICATION}
=
= 1
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/fmSubscriptionRequest.json
${template}
=
Get File
jsons/fmSubscriptionRequest.json
${body}
=
Format String
${template}
vnfdIds=
${vnfdIds}
callback_uri=
${callback_uri}
:
${callback_port}
callback_endpoint=
${callback_endpoint}
${body}
=
Format String
${template}
vnfdIds=
${vnfdIds}
callback_uri=
${callback_uri}
:
${callback_port}
callback_endpoint=
${callback_endpoint}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
...
@@ -288,7 +288,7 @@ Send POST Request for duplicated subscription not permitted
...
@@ -288,7 +288,7 @@ Send POST Request for duplicated subscription not permitted
GET Subscriptions
GET 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
}
"}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
...
@@ -296,7 +296,7 @@ GET Subscriptions
...
@@ -296,7 +296,7 @@ GET Subscriptions
GET Subscriptions with filter
GET Subscriptions with filter
Log
Get the list of active subscriptions using a filter
Log
Get the list of active subscriptions using a 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}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions?
${sub_filter}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
...
@@ -304,42 +304,42 @@ GET Subscriptions with filter
...
@@ -304,42 +304,42 @@ GET Subscriptions with filter
GET Subscriptions with Invalid filter
GET Subscriptions with Invalid filter
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}
Get subscriptions with all_fields attribute selector
Get subscriptions with all_fields attribute selector
Log
Get the list of active subscriptions, using fields
Log
Get the list of active subscriptions, using fields
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}
/subscriptions?exclude_default
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions?exclude_default
${output}
=
Output
response
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Set Suite Variable
${response}
${output}
Get subscriptions with exclude_default attribute selector
Get subscriptions with exclude_default attribute selector
Log
Get the list of active subscriptions, using fields
Log
Get the list of active subscriptions, using fields
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}
/subscriptions?exclude_default
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions?exclude_default
${output}
=
Output
response
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Set Suite Variable
${response}
${output}
Get subscriptions with fields attribute selector
Get subscriptions with fields attribute selector
Log
Get the list of active subscriptions, using fields
Log
Get the list of active subscriptions, using fields
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}
/subscriptions?fields=
${fields}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions?fields=
${fields}
${output}
=
Output
response
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Set Suite Variable
${response}
${output}
Get subscriptions with exclude_fields attribute selector