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
bf39094b
Commit
bf39094b
authored
Feb 12, 2021
by
Giacomo Bernini
Browse files
updated authorization header and token use in SOL002ù v2.7.1
parent
5616c8ce
Changes
43
Hide whitespace changes
Inline
Side-by-side
SOL002/VNFConfiguration-API/ApiVersion.robot
View file @
bf39094b
...
@@ -131,70 +131,70 @@ DELETE API Version with apiMajorVerion - Method not implemented
...
@@ -131,70 +131,70 @@ DELETE API Version with apiMajorVerion - Method not implemented
*** Keywords ***
*** Keywords ***
POST API Version
POST API Version
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
Authorization
":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
Post
${apiRoot}
/
${apiName}
/api_versions
Post
${apiRoot}
/
${apiName}
/api_versions
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
GET API Version
GET API Version
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
Authorization
":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
Get
${apiRoot}
/
${apiName}
/api_versions
Get
${apiRoot}
/
${apiName}
/api_versions
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
PUT API Version
PUT API Version
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
Authorization
":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
Put
${apiRoot}
/
${apiName}
/api_versions
Put
${apiRoot}
/
${apiName}
/api_versions
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
PATCH API Version
PATCH API Version
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
Authorization
":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
Patch
${apiRoot}
/
${apiName}
/api_versions
Patch
${apiRoot}
/
${apiName}
/api_versions
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
DELETE API Version
DELETE API Version
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
Authorization
":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
Delete
${apiRoot}
/
${apiName}
/api_versions
Delete
${apiRoot}
/
${apiName}
/api_versions
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
POST API Version with apiMajorVersion
POST API Version with apiMajorVersion
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
Authorization
":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/api_versions
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/api_versions
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
GET API Version with apiMajorVersion
GET API Version with apiMajorVersion
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
Authorization
":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/api_versions
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/api_versions
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
PUT API Version with apiMajorVersion
PUT API Version with apiMajorVersion
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
Authorization
":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
Put
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/api_versions
Put
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/api_versions
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
PATCH API Version with apiMajorVersion
PATCH API Version with apiMajorVersion
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
Authorization
":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
Patch
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/api_versions
Patch
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/api_versions
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
DELETE API Version with apiMajorVersion
DELETE API Version with apiMajorVersion
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
Authorization
":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
Delete
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/api_versions
Delete
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/api_versions
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Set Global Variable
${response}
${outputResponse}
...
...
SOL002/VNFConfiguration-API/Configuration.robot
View file @
bf39094b
...
@@ -107,7 +107,7 @@ Get VNF configuration
...
@@ -107,7 +107,7 @@ Get VNF configuration
Log
Query VNF The GET method queries information about a configuration.
Log
Query VNF The GET method queries information about a configuration.
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}
/configuration
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/configuration
${output}
=
Output
response
${output}
=
Output
response
...
@@ -117,7 +117,7 @@ Send VNF configuration
...
@@ -117,7 +117,7 @@ Send VNF configuration
log
Trying to perform a PATCH. This method modifies the configuration
log
Trying to perform a PATCH. This method modifies the configuration
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
}
"}
${body}
=
Get File
jsons/vnfConfigModifications.json
${body}
=
Get File
jsons/vnfConfigModifications.json
Patch
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/configuration
${body}
Patch
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/configuration
${body}
${output}
=
Output
response
${output}
=
Output
response
...
@@ -158,7 +158,7 @@ Send Duplicated VNF configuration
...
@@ -158,7 +158,7 @@ Send Duplicated VNF configuration
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE}
"}
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/vnfConfigModifications.json
${body}
=
Get File
jsons/vnfConfigModifications.json
Patch
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/configuration
${body}
Patch
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/configuration
${body}
${output}
=
Output
response
${output}
=
Output
response
...
@@ -167,7 +167,7 @@ Send Duplicated VNF configuration
...
@@ -167,7 +167,7 @@ Send Duplicated VNF configuration
Send POST Request for VNF Configuration
Send POST Request for VNF Configuration
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}
/configuration
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/configuration
${output}
=
Output
response
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Set Suite Variable
${response}
${output}
...
@@ -175,7 +175,7 @@ Send POST Request for VNF Configuration
...
@@ -175,7 +175,7 @@ Send POST Request for VNF Configuration
Send PUT Request for VNF Configuration
Send PUT Request for VNF Configuration
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
}
"}
Put
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/configuration
Put
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/configuration
${output}
=
Output
response
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Set Suite Variable
${response}
${output}
...
@@ -183,7 +183,7 @@ Send PUT Request for VNF Configuration
...
@@ -183,7 +183,7 @@ Send PUT Request for VNF Configuration
Send DELETE Request for VNF Configuration
Send DELETE Request for VNF Configuration
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
}
"}
Delete
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/configuration
Delete
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/configuration
${output}
=
Output
response
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Set Suite Variable
${response}
${output}
\ No newline at end of file
SOL002/VNFConfiguration-API/environment/variables.txt
View file @
bf39094b
...
@@ -10,7 +10,8 @@ ${EM-VNF_SCHEMA} https
...
@@ -10,7 +10,8 @@ ${EM-VNF_SCHEMA} https
${ACCEPT} application/json
${ACCEPT} application/json
${AUTH_USAGE} 1
${AUTH_USAGE} 1
${AUTHORIZATION} Bearer QWxhZGRpbjpvcGVuIHNlc2FtZQ==
${AUTHORIZATION_HEADER} Authorization
${AUTHORIZATION_TOKEN} Bearer 0b79bab50daca910b000d4f1a2b675d604257e42
${CONTENT_TYPE} application/json
${CONTENT_TYPE} application/json
...
...
SOL002/VNFFaultManagement-API/Alarms.robot
View file @
bf39094b
...
@@ -261,35 +261,35 @@ GET information about multiple alarms with attribute-based filter "probableCause
...
@@ -261,35 +261,35 @@ GET information about multiple alarms with attribute-based filter "probableCause
POST Alarms Task
POST Alarms Task
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}
PUT Alarms Task
PUT Alarms Task
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}
PATCH Alarms Task
PATCH Alarms Task
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}
DELETE Alarms Task
DELETE Alarms Task
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}
GET Alarms Task
GET Alarms Task
Log
Query VNF The GET method queries information about multiple alarms.
Log
Query VNF 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 and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
...
@@ -297,7 +297,7 @@ GET Alarms Task
...
@@ -297,7 +297,7 @@ GET Alarms Task
GET Alarms Task with filter
GET Alarms Task with filter
Log
Query VNF The GET method queries information about multiple alarms with filters.
Log
Query VNF 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 and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?
${alarm_filter}
=
${managedObjectId}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?
${alarm_filter}
=
${managedObjectId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
...
@@ -305,7 +305,7 @@ GET Alarms Task with filter
...
@@ -305,7 +305,7 @@ GET Alarms Task with filter
GET Alarms Task with invalid filter
GET Alarms Task with invalid filter
Log
Query VNF The GET method queries information about multiple alarms with filters.
Log
Query VNF 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 and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?
${invalid_alarm_filter}
=
${managedObjectId}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?
${invalid_alarm_filter}
=
${managedObjectId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
...
@@ -313,28 +313,28 @@ GET Alarms Task with invalid filter
...
@@ -313,28 +313,28 @@ GET Alarms Task with invalid filter
GET Alarms Task with all_fields attribute selector
GET Alarms Task with all_fields attribute selector
Log
Query VNF The GET method queries information about multiple alarms, using fields
Log
Query VNF The GET method queries information about multiple alarms, 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}
/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}
GET Alarms Task with exclude_default attribute selector
GET Alarms Task with exclude_default attribute selector
Log
Query VNF The GET method queries information about multiple alarms, using fields
Log
Query VNF The GET method queries information about multiple alarms, 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}
/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}
GET Alarms Task with fields attribute selector
GET Alarms Task with fields attribute selector
Log
Query VNF The GET method queries information about multiple alarms, using fields
Log
Query VNF The GET method queries information about multiple alarms, 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}
/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}
GET Alarms Task with exclude_fields attribute selector
GET Alarms Task with exclude_fields attribute selector
Log
Query VNF The GET method queries information about multiple alarms, using fields
Log
Query VNF The GET method queries information about multiple alarms, 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}
/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}
...
@@ -364,7 +364,7 @@ Check HTTP Response Header Contain Link
...
@@ -364,7 +364,7 @@ Check HTTP Response Header Contain Link
GET Alarms Task with filter "id"
GET Alarms Task with filter "id"
Log
Query VNF The GET method queries information about multiple alarms with filters "id".
Log
Query VNF The GET method queries information about multiple alarms with filters "id".
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
Authorization
":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
Log
Execute Query and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?id=
${alarmId}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?id=
${alarmId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
...
@@ -376,7 +376,7 @@ Check PostCondition HTTP Response Body alarms Matches the requested attribute-ba
...
@@ -376,7 +376,7 @@ Check PostCondition HTTP Response Body alarms Matches the requested attribute-ba
GET Alarms Task with filter "vnfcInstanceIds"
GET Alarms Task with filter "vnfcInstanceIds"
Log
Query VNF The GET method queries information about multiple alarms with filters "vnfcInstanceIds".
Log
Query VNF The GET method queries information about multiple alarms with filters "vnfcInstanceIds".
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
Authorization
":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
Log
Execute Query and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?vnfcInstanceIds=
${vnfcInstanceIds}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?vnfcInstanceIds=
${vnfcInstanceIds}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
...
@@ -390,7 +390,7 @@ Check PostCondition HTTP Response Body alarms Matches the requested attribute-ba
...
@@ -390,7 +390,7 @@ Check PostCondition HTTP Response Body alarms Matches the requested attribute-ba
GET Alarms Task with filter "rootCauseFaultyResource_faultyResourceType"
GET Alarms Task with filter "rootCauseFaultyResource_faultyResourceType"
Log
Query VNF The GET method queries information about multiple alarms with filters "rootCauseFaultyResource.faultyResourceType".
Log
Query VNF The GET method queries information about multiple alarms with filters "rootCauseFaultyResource.faultyResourceType".
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
Authorization
":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
Log
Execute Query and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?rootCauseFaultyResource.faultyResourceType=
${faultyResourceType}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?rootCauseFaultyResource.faultyResourceType=
${faultyResourceType}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
...
@@ -404,7 +404,7 @@ Check PostCondition HTTP Response Body alarms Matches the requested attribute-ba
...
@@ -404,7 +404,7 @@ Check PostCondition HTTP Response Body alarms Matches the requested attribute-ba
GET Alarms Task with filter "eventType"
GET Alarms Task with filter "eventType"
Log
Query VNF The GET method queries information about multiple alarms with filters "eventType".
Log
Query VNF The GET method queries information about multiple alarms with filters "eventType".
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
Authorization
":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
Log
Execute Query and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?eventType=
${eventType}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?eventType=
${eventType}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
...
@@ -418,7 +418,7 @@ Check PostCondition HTTP Response Body alarms Matches the requested attribute-ba
...
@@ -418,7 +418,7 @@ Check PostCondition HTTP Response Body alarms Matches the requested attribute-ba
GET Alarms Task with filter "perceivedSeverity"
GET Alarms Task with filter "perceivedSeverity"
Log
Query VNF The GET method queries information about multiple alarms with filters "perceivedSeverity".
Log
Query VNF The GET method queries information about multiple alarms with filters "perceivedSeverity".
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
Authorization
":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
Log
Execute Query and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?perceivedSeverity=
${perceivedSeverity}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?perceivedSeverity=
${perceivedSeverity}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
...
@@ -432,7 +432,7 @@ Check PostCondition HTTP Response Body alarms Matches the requested attribute-ba
...
@@ -432,7 +432,7 @@ Check PostCondition HTTP Response Body alarms Matches the requested attribute-ba
GET Alarms Task with filter "probableCause"
GET Alarms Task with filter "probableCause"
Log
Query VNF The GET method queries information about multiple alarms with filters "probableCause".
Log
Query VNF The GET method queries information about multiple alarms with filters "probableCause".
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
Authorization
":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
Log
Execute Query and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?probableCause=
${probableCause}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/alarms?probableCause=
${probableCause}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
...
...
SOL002/VNFFaultManagement-API/ApiVersion.robot
View file @
bf39094b
...
@@ -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