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
77054f18
Commit
77054f18
authored
Feb 09, 2021
by
Giacomo Bernini
Browse files
SOL003 - updated usage and config of authorization header
parent
fee078ee
Changes
48
Expand all
Hide whitespace changes
Inline
Side-by-side
SOL003/VNFFaultManagement-API/ApiVersion.robot
View file @
77054f18
...
...
@@ -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}
/v1/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}
/v1/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}
/v1/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}
/v1/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}
/v1/api_versions
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
SOL003/VNFFaultManagement-API/FaultManagement-APIKeyword.robot
View file @
77054f18
This diff is collapsed.
Click to expand it.
SOL003/VNFFaultManagement-API/environment/variables.txt
View file @
77054f18
...
...
@@ -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 QWxhZGRpbjpvcGVuIHNlc2FtZQ==
${CONTENT_TYPE} application/json
${ACCEPT} application/json
${ACCEPT_JSON} application/json
...
...
@@ -51,4 +52,4 @@ ${nsInstanceId} 007c111c-38a1-42c0-a666-7475ecb1567c
${invalid_alarm_filter} badFilter
${invalidAlarmId} invalidIdAlarm
${fields} criteria,objectInstanceIds
\ No newline at end of file
${fields} criteria,objectInstanceIds
SOL003/VNFIndicator-API/ApiVersion.robot
View file @
77054f18
...
...
@@ -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}
DELETE 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
}
"}
Delete
${apiRoot}
/
${apiName}
/api_versions
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
POST API Version with apiMajorVersion
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}
/v1/api_versions
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
GET API Version with apiMajorVersion
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}
/v1/api_versions
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
PUT API Version with apiMajorVersion
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}
/v1/api_versions
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
PATCH API Version with apiMajorVersion
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}
/v1/api_versions
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
DELETE API Version with apiMajorVersion
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
}
"}
Delete
${apiRoot}
/
${apiName}
/v1/api_versions
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
SOL003/VNFIndicator-API/VNFIndicatorsKeywords.robot
View file @
77054f18
This diff is collapsed.
Click to expand it.
SOL003/VNFIndicator-API/environment/variables.txt
View file @
77054f18
...
...
@@ -3,7 +3,8 @@ ${VNFM_HOST} localhost # Hostname of the VNFM
${VNFM_PORT} 8080 # Listening port of the VNFM
${VNFM_SCHEMA} https
${AUTHORIZATION} Bearer 0b79bab50daca910b000d4f1a2b675d604257e42
${AUTHORIZATION_HEADER} Authorization
${AUTHORIZATION_TOKEN} Bearer QWxhZGRpbjpvcGVuIHNlc2FtZQ==
${NEG_AUTHORIZATION} Bearer negativetoken
${BAD_AUTHORIZATION} Bear sometoken
${ACCEPT_JSON} application/json
...
...
@@ -32,4 +33,4 @@ ${polling_interval} 10 sec
${notification_request} []
${notification_response} []
${MOCK_SERVER_JAR} ../../../bin/mockserver-netty-5.5.0-jar-with-dependencies.jar
\ No newline at end of file
${MOCK_SERVER_JAR} ../../../bin/mockserver-netty-5.5.0-jar-with-dependencies.jar
SOL003/VNFLifecycleManagement-API/ApiVersion.robot
View file @
77054f18
...
...
@@ -132,70 +132,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}
/v1/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}
/v1/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}
/v1/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}
/v1/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}
/v1/api_versions
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
SOL003/VNFLifecycleManagement-API/CancelOperationTask.robot
View file @
77054f18
...
...
@@ -98,21 +98,21 @@ DELETE Cancel operation task - Method not implemented
*** Keywords ***
Check resource 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}
/
${apiVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
Integer
response status
200
Launch another error handling action
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}
/
${apiVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
/retry
Integer
response status
202
Check Fail not supported
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}
/
${apiVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
# how to check if Fail is not supported?
Check resource FAILED_TEMP
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}
/
${apiVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
String
response body operationState
FAILED_TEMP
\ No newline at end of file
SOL003/VNFLifecycleManagement-API/CancelOperationWorkflow.robot
View file @
77054f18
...
...
@@ -50,22 +50,22 @@ Initialize System
Create Sessions
Precondition Checks - STARTING
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}
/
${apiVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
String
response body operationState
STARTING
Precondition Checks - PROCESSING - ROLLING_BACK
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}
/
${apiVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
String
response body operationState
PROCESSING
Check Postcondition VNF Cancel - STARTING
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}
/
${apiVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
String
response body operationState
ROLLED_BACK
Check Postcondition VNF Cancel - PROCESSING - ROLLING_BACK
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}
/
${apiVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
String
response body operationState
FAILED_TEMP
...
...
SOL003/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot
View file @
77054f18
...
...
@@ -73,14 +73,14 @@ DELETE Change external VNF connectivity - Method not implemented
Check resource existence
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}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
Integer
response status
200
Launch another LCM operation
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
}
"}
${body}
=
Get File
jsons/scaleVnfRequest.json
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
/scale
${body}
Integer
response status
202
\ No newline at end of file
SOL003/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot
View file @
77054f18
...
...
@@ -102,35 +102,35 @@ DELETE Change deployment flavour VNFInstance - Method not implemented
Check resource existence
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}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
Integer
response status
200
Check resource not instantiated
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}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
String
response body instantiationState
NOT_INSTANTIATED
Check resource instantiated
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}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
String
response body instantiationState
INSTANTIATED
Check change flavour not supported
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}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
# how to check if change floavour is not supported? "flavourId" doesn't exist?
Launch another LCM operation
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
}
"}
${body}
=
Get File
jsons/scaleVnfRequest.json
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
/scale
${body}
Integer
response status
202
\ No newline at end of file
SOL003/VNFLifecycleManagement-API/FailOperationTask.robot
View file @
77054f18
...
...
@@ -100,17 +100,17 @@ DELETE Fail operation task - Method not implemented
*** Keywords ***
Check resource 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}
/
${apiVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
Integer
response status
200
Launch another error handling action
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}
/
${apiVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
/retry
Integer
response status
202
Check Fail not supported
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}
/
${apiVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
# how to check if Fail is not supported?
SOL003/VNFLifecycleManagement-API/FailOperationWorkflow.robot
View file @
77054f18
...
...
@@ -35,12 +35,12 @@ Initialize System
Create Sessions
Precondition Checks
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}
/
${apiVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
String
response body operationState
FAILED_TEMP
Check Postcondition VNF Fail
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}
/
${apiVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
String
response body operationState
FAILED
...
...
SOL003/VNFLifecycleManagement-API/HealVNFTask.robot
View file @
77054f18
...
...
@@ -101,28 +101,28 @@ DELETE Heal VNFInstance - Method not implemented
Check resource existence
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}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
Integer
response status
200
Check resource not instantiated
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}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
String
response body instantiationState
NOT_INSTANTIATED
Check heal not supported
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}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
# how to check if heal is not supported? "flavourId" doesn't exist?
Launch another LCM operation
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
}
"}
${body}
=
Get File
jsons/scaleVnfRequest.json
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
/scale
${body}
Integer
response status
202
\ No newline at end of file
SOL003/VNFLifecycleManagement-API/IndividualSubscription.robot
View file @
77054f18
...
...
@@ -72,6 +72,6 @@ DELETE an individual subscription
Check resource existence
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}
/
${apiVersion}
/subscriptions/
${subscriptionId}
Integer
response status
200
\ No newline at end of file
SOL003/VNFLifecycleManagement-API/IndividualVNFInstance.robot
View file @
77054f18
...
...
@@ -119,21 +119,21 @@ DELETE Individual VNFInstance Conflict
Check resource existence
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}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
Integer
response status
200
Check resource instantiated
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}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
String
response body instantiationState
INSTANTIATED
Launch another LCM operation
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
}
"}
${body}
=
Get File
jsons/scaleVnfToLevelRequest.json
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
/scale_to_level
${body}
Integer
response status
202
...
...
SOL003/VNFLifecycleManagement-API/IndividualVnfLcmOperationOccurence.robot
View file @
77054f18
...
...
@@ -72,7 +72,7 @@ PATCH Individual VNF LCM Operation occurrences - Method not implemented
Get multiple VNF instances
Log
Query status information about multiple VNF lifecycle management operation occurrences.
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
Authorization
":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION
_TOKEN
}
"}
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
${outputResponse}
=
Output
response
...
...
SOL003/VNFLifecycleManagement-API/InstantiateVNFTask.robot
View file @
77054f18
...
...
@@ -89,13 +89,13 @@ DELETE Instantiate VNFInstance - Method not implemented
Check resource existence
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}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
Integer
response status
200
Check resource instantiated
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}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
String
response body instantiationState
INSTANTIATED
\ No newline at end of file
SOL003/VNFLifecycleManagement-API/InstantiateVNFTaskWorkflow.robot
View file @
77054f18
...
...
@@ -40,7 +40,7 @@ Send VNF Instantiation Request
Log
Instantiate a VNF Instance
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
}
"}
${body}
=
Get File
jsons/instantiateVnfRequest.json
${response}
=
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
/instantiate
${body}
...
...
SOL003/VNFLifecycleManagement-API/OperateVNFTask.robot
View file @
77054f18
...
...
@@ -102,28 +102,28 @@ DELETE Operate VNFInstance - Method not implemented
Check resource existence
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}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
Integer
response status
200
Check resource not instantiated
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}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}