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
Expand all
Show whitespace changes
Inline
Side-by-side
SOL003/VNFFaultManagement-API/ApiVersion.robot
View file @
3289ba78
...
@@ -133,70 +133,70 @@ DELETE API Version with apiMajorVerion - Method not implemented
...
@@ -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
This diff is collapsed.
Click to expand it.
SOL003/VNFFaultManagement-API/NotificationConsumer.robot
View file @
3289ba78
...
@@ -48,7 +48,7 @@ VNF Fault Alarm List Reulit Notification
...
@@ -48,7 +48,7 @@ VNF Fault Alarm List Reulit Notification
Check resource existence and get CallbackUri
Check resource existence and get CallbackUri
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
}
"}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions/
${subscriptionId}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions/
${subscriptionId}
Integer
response status
200
Integer
response status
200
Validate Json
response body
FmSubscriptions.schema.json
Validate Json
response body
FmSubscriptions.schema.json
...
@@ -64,7 +64,7 @@ Post Alarm Notification
...
@@ -64,7 +64,7 @@ Post Alarm Notification
log
Trying to perform a POST to get notification
log
Trying to perform a POST to get notification
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/AlarmNotification.json
${template}
=
Get File
jsons/AlarmNotification.json
${body}
=
Format String
${template}
subscriptionId=
${subscriptionId}
${body}
=
Format String
${template}
subscriptionId=
${subscriptionId}
Post
${callbackResp}
${body}
Post
${callbackResp}
${body}
...
@@ -75,7 +75,7 @@ Post Alarm Cleared Notification
...
@@ -75,7 +75,7 @@ Post Alarm Cleared Notification
log
Trying to perform a POST to get notification
log
Trying to perform a POST to get notification
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/AlarmClearedNotification.json
${template}
=
Get File
jsons/AlarmClearedNotification.json
${body}
=
Format String
${template}
subscriptionId=
${subscriptionId}
alarmId=
${alarmId}
${body}
=
Format String
${template}
subscriptionId=
${subscriptionId}
alarmId=
${alarmId}
Post
${callbackResp}
${body}
Post
${callbackResp}
${body}
...
@@ -86,7 +86,7 @@ Post Alarm List Rebuilt Notification
...
@@ -86,7 +86,7 @@ Post Alarm List Rebuilt Notification
log
Trying to perform a POST to get notification
log
Trying to perform a POST to get notification
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/AlarmListRebuiltNotification.json
${template}
=
Get File
jsons/AlarmListRebuiltNotification.json
${body}
=
Format String
${template}
subscriptionId=
${subscriptionId}
${body}
=
Format String
${template}
subscriptionId=
${subscriptionId}
Post
${callbackResp}
${body}
Post
${callbackResp}
${body}
...
...
SOL003/VNFFaultManagement-API/environment/variables.txt
View file @
3289ba78
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
${VNFM_HOST} localhost # Hostname of the VNFM
${VNFM_HOST} localhost # Hostname of the VNFM
${VNFM_PORT} 8080 # Listening port of the VNFM
${VNFM_PORT} 8080 # Listening port of the VNFM
${VNFM_SCHEMA} https
${VNFM_SCHEMA} https
${AUTHORIZATION} Bearer QWxhZGRpbjpvcGVuIHNlc2FtZQ==
${AUTHORIZATION_HEADER} Authorization
${AUTHORIZATION_TOKEN} Bearer 0b79bab50daca910b000d4f1a2b675d604257e42
${CONTENT_TYPE} application/json
${CONTENT_TYPE} application/json
${ACCEPT} application/json
${ACCEPT} application/json
${ACCEPT_JSON} application/json
${ACCEPT_JSON} application/json
...
...
SOL003/VNFIndicator-API/ApiVersion.robot
View file @
3289ba78
...
@@ -133,70 +133,70 @@ DELETE API Version with apiMajorVerion - Method not implemented
...
@@ -133,70 +133,70 @@ DELETE API Version with apiMajorVerion - Method not implemented
*** Keywords ***
*** Keywords ***
POST API Version
POST API Version
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
}
"}
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_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}
/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_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
}
"}
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_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
}
"}
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_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
}
"}
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_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
}
"}
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_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}
/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_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
}
"}
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_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
}
"}
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_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
}
"}
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/VNFIndicator-API/NotificationConsumer.robot
View file @
3289ba78
...
@@ -23,7 +23,7 @@ VNF Indicator Value Change Notification
...
@@ -23,7 +23,7 @@ VNF Indicator Value Change Notification
Check resource existence and get CallbackUri
Check resource existence and get CallbackUri
Set Headers
{"Accept":"
${ACCEPT_JSON}
"}
Set Headers
{"Accept":"
${ACCEPT_JSON}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE_JSON}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE_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/
${subscriptionId}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions/
${subscriptionId}
Integer
response status
200
Integer
response status
200
Validate Json
response body
VnfIndicatorSubscription.schema.json
Validate Json
response body
VnfIndicatorSubscription.schema.json
...
@@ -38,7 +38,7 @@ Post VNF Indicator Value Change Notification
...
@@ -38,7 +38,7 @@ Post VNF Indicator Value Change Notification
log
Trying to perform a POST to get notification
log
Trying to perform a POST to get notification
Set Headers
{"Accept":"
${ACCEPT_JSON}
"}
Set Headers
{"Accept":"
${ACCEPT_JSON}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE_JSON}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE_JSON}
"}
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/VnfIndicatorValueChangeNotification.json
${template}
=
Get File
jsons/VnfIndicatorValueChangeNotification.json
${body}
=
Format String
${template}
subscriptionId=
${subscriptionId}
indicatorId=
${indicatorId}
vnfInstanceId=
${vnfInstanceId}
${body}
=
Format String
${template}
subscriptionId=
${subscriptionId}
indicatorId=
${indicatorId}
vnfInstanceId=
${vnfInstanceId}
Post
${callbackResp}
${body}
Post
${callbackResp}
${body}
...
...
SOL003/VNFIndicator-API/VNFIndicatorsKeywords.robot
View file @
3289ba78
This diff is collapsed.
Click to expand it.
SOL003/VNFIndicator-API/environment/variables.txt
View file @
3289ba78
...
@@ -3,9 +3,10 @@ ${VNFM_HOST} localhost # Hostname of the VNFM
...
@@ -3,9 +3,10 @@ ${VNFM_HOST} localhost # Hostname of the VNFM
${VNFM_PORT} 8080 # Listening port of the VNFM
${VNFM_PORT} 8080 # Listening port of the VNFM
${VNFM_SCHEMA} https
${VNFM_SCHEMA} https
${AUTHORIZATION} Bearer 0b79bab50daca910b000d4f1a2b675d604257e42
${AUTHORIZATION_HEADER} Authorization
${NEG_AUTHORIZATION} Bearer negativetoken
${AUTHORIZATION_TOKEN} Bearer 0b79bab50daca910b000d4f1a2b675d604257e42
${BAD_AUTHORIZATION} Bear sometoken
${NEG_AUTHORIZATION_TOKEN} Bearer negativetoken
${BAD_AUTHORIZATION_TOKEN} Bear sometoken
${ACCEPT_JSON} application/json
${ACCEPT_JSON} application/json
${AUTH_USAGE} 1
${AUTH_USAGE} 1
${CONTENT_TYPE_JSON} application/json
${CONTENT_TYPE_JSON} application/json
...
...
SOL003/VNFLifecycleManagement-API/ApiVersion.robot
View file @
3289ba78
...
@@ -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}
...
...
SOL003/VNFLifecycleManagement-API/CancelOperationWorkflow.robot
View file @
3289ba78
...
@@ -52,17 +52,17 @@ Initialize System
...
@@ -52,17 +52,17 @@ Initialize System
Create Sessions
Create Sessions
Precondition Checks - STARTING
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}
/
${apiMajorVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
String
response body operationState
STARTING
String
response body operationState
STARTING
Check Postcondition VNF Cancel - STARTING
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}
/
${apiMajorVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
String
response body operationState
ROLLED_BACK
String
response body operationState
ROLLED_BACK
Check Postcondition VNF Cancel - PROCESSING - ROLLING_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}
/
${apiMajorVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
String
response body operationState
FAILED_TEMP
String
response body operationState
FAILED_TEMP
...
...
SOL003/VNFLifecycleManagement-API/FailOperationWorkflow.robot
View file @
3289ba78
...
@@ -31,7 +31,7 @@ Initialize System
...
@@ -31,7 +31,7 @@ Initialize System
Create Sessions
Create Sessions
Check Postcondition VNF Fail
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}
/
${apiMajorVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
Get
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_lcm_op_occs/
${vnfLcmOpOccId}
String
response body operationState
FAILED
String
response body operationState
FAILED
...
...
SOL003/VNFLifecycleManagement-API/IndividualVNFInstance.robot
View file @
3289ba78
...
@@ -131,6 +131,6 @@ Get Information about an individual VNF Instance - Not Found
...
@@ -131,6 +131,6 @@ Get Information about an individual VNF Instance - Not Found
Check resource existence
Check resource existence
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}