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
d65c7b04
Commit
d65c7b04
authored
Jun 04, 2020
by
Elian Kraja
Browse files
Fix on status code check
parent
0d8da175
Changes
40
Expand all
Show whitespace changes
Inline
Side-by-side
SOL002/VNFConfiguration-API/ApiVersion.robot
View file @
d65c7b04
...
@@ -201,7 +201,7 @@ DELETE API Version with apiMajorVersion
...
@@ -201,7 +201,7 @@ DELETE API Version with apiMajorVersion
Check HTTP Response Status Code Is
Check HTTP Response Status Code Is
[
Arguments
]
${expected_status}
[
Arguments
]
${expected_status}
Should Be Equal
${response
.
status
_code
}
${expected_status}
Should Be Equal
As Strings
${response
[0]['
status
']
}
${expected_status}
Log
Status code validated
Log
Status code validated
Check HTTP Response Body Json Schema Is
Check HTTP Response Body Json Schema Is
...
...
SOL002/VNFConfiguration-API/Configuration.robot
View file @
d65c7b04
...
@@ -126,8 +126,7 @@ Send VNF configuration
...
@@ -126,8 +126,7 @@ Send VNF configuration
Check HTTP Response Status Code Is
Check HTTP Response Status Code Is
[
Arguments
]
${expected_status}
[
Arguments
]
${expected_status}
${status}
=
Convert To Integer
${expected_status}
Should Be Equal As Strings
${response['status']}
${expected_status}
Should Be Equal As Strings
${response['status']}
${status}
Log
Status code validated
Log
Status code validated
Check HTTP Response Header Contains
Check HTTP Response Header Contains
...
...
SOL002/VNFFaultManagement-API/Alarms.robot
View file @
d65c7b04
...
@@ -265,28 +265,28 @@ POST Alarms Task
...
@@ -265,28 +265,28 @@ POST Alarms Task
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/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":"
${AUTHORIZATION}
"}
Put
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms
Put
${apiRoot}
/
${apiName}
/
${apiVersion}
/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":"
${AUTHORIZATION}
"}
Patch
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms
Patch
${apiRoot}
/
${apiName}
/
${apiVersion}
/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":"
${AUTHORIZATION}
"}
Delete
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms
Delete
${apiRoot}
/
${apiName}
/
${apiVersion}
/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}
"}
...
@@ -294,7 +294,7 @@ GET Alarms Task
...
@@ -294,7 +294,7 @@ GET Alarms Task
Log
Execute Query and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
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}
"}
...
@@ -302,7 +302,7 @@ GET Alarms Task with filter
...
@@ -302,7 +302,7 @@ GET Alarms Task with filter
Log
Execute Query and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms?
${alarm_filter}
=
${managedObjectId}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms?
${alarm_filter}
=
${managedObjectId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
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}
"}
...
@@ -310,7 +310,7 @@ GET Alarms Task with invalid filter
...
@@ -310,7 +310,7 @@ GET Alarms Task with invalid filter
Log
Execute Query and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms?
${invalid_alarm_filter}
=
${managedObjectId}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms?
${invalid_alarm_filter}
=
${managedObjectId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
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}
"}
...
@@ -342,7 +342,7 @@ GET Alarms Task with exclude_fields attribute selector
...
@@ -342,7 +342,7 @@ GET Alarms Task with exclude_fields attribute selector
Check HTTP Response Status Code Is
Check HTTP Response Status Code Is
[
Arguments
]
${expected_status}
[
Arguments
]
${expected_status}
Should Be Equal
${response
.
status
_code
}
${expected_status}
Should Be Equal
As Strings
${response
['
status
']
}
${expected_status}
Log
Status code validated
Log
Status code validated
Check HTTP Response Header Contains
Check HTTP Response Header Contains
...
@@ -369,7 +369,7 @@ GET Alarms Task with filter "id"
...
@@ -369,7 +369,7 @@ GET Alarms Task with filter "id"
Log
Execute Query and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms?id=
${alarmId}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms?id=
${alarmId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
Check PostCondition HTTP Response Body alarms Matches the requested attribute-based filter "id"
Check PostCondition HTTP Response Body alarms Matches the requested attribute-based filter "id"
Should Be Equal As Strings
${response['body']['id']}
${alarmId}
Should Be Equal As Strings
${response['body']['id']}
${alarmId}
...
@@ -381,7 +381,7 @@ GET Alarms Task with filter "vnfcInstanceIds"
...
@@ -381,7 +381,7 @@ GET Alarms Task with filter "vnfcInstanceIds"
Log
Execute Query and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms?vnfcInstanceIds=
${vnfcInstanceIds}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms?vnfcInstanceIds=
${vnfcInstanceIds}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
Check PostCondition HTTP Response Body alarms Matches the requested attribute-based filter "vnfcInstanceIds"
Check PostCondition HTTP Response Body alarms Matches the requested attribute-based filter "vnfcInstanceIds"
:FOR
${item}
IN
@{response['body']}
:FOR
${item}
IN
@{response['body']}
...
@@ -395,7 +395,7 @@ GET Alarms Task with filter "rootCauseFaultyResource_faultyResourceType"
...
@@ -395,7 +395,7 @@ GET Alarms Task with filter "rootCauseFaultyResource_faultyResourceType"
Log
Execute Query and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms?rootCauseFaultyResource.faultyResourceType=
${faultyResourceType}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms?rootCauseFaultyResource.faultyResourceType=
${faultyResourceType}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
Check PostCondition HTTP Response Body alarms Matches the requested attribute-based filter "rootCauseFaultyResource_faultyResourceType"
Check PostCondition HTTP Response Body alarms Matches the requested attribute-based filter "rootCauseFaultyResource_faultyResourceType"
:FOR
${item}
IN
@{response['body']}
:FOR
${item}
IN
@{response['body']}
...
@@ -409,7 +409,7 @@ GET Alarms Task with filter "eventType"
...
@@ -409,7 +409,7 @@ GET Alarms Task with filter "eventType"
Log
Execute Query and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms?eventType=
${eventType}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms?eventType=
${eventType}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
Check PostCondition HTTP Response Body alarms Matches the requested attribute-based filter "eventType"
Check PostCondition HTTP Response Body alarms Matches the requested attribute-based filter "eventType"
:FOR
${item}
IN
@{response['body']}
:FOR
${item}
IN
@{response['body']}
...
@@ -423,7 +423,7 @@ GET Alarms Task with filter "perceivedSeverity"
...
@@ -423,7 +423,7 @@ GET Alarms Task with filter "perceivedSeverity"
Log
Execute Query and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms?perceivedSeverity=
${perceivedSeverity}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms?perceivedSeverity=
${perceivedSeverity}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
Check PostCondition HTTP Response Body alarms Matches the requested attribute-based filter "perceivedSeverity"
Check PostCondition HTTP Response Body alarms Matches the requested attribute-based filter "perceivedSeverity"
:FOR
${item}
IN
@{response['body']}
:FOR
${item}
IN
@{response['body']}
...
@@ -437,7 +437,7 @@ GET Alarms Task with filter "probableCause"
...
@@ -437,7 +437,7 @@ GET Alarms Task with filter "probableCause"
Log
Execute Query and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms?probableCause=
${probableCause}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms?probableCause=
${probableCause}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
Check PostCondition HTTP Response Body alarms Matches the requested attribute-based filter "probableCause"
Check PostCondition HTTP Response Body alarms Matches the requested attribute-based filter "probableCause"
:FOR
${item}
IN
@{response['body']}
:FOR
${item}
IN
@{response['body']}
...
...
SOL002/VNFFaultManagement-API/ApiVersion.robot
View file @
d65c7b04
...
@@ -203,7 +203,7 @@ DELETE API Version with apiMajorVersion
...
@@ -203,7 +203,7 @@ DELETE API Version with apiMajorVersion
Check HTTP Response Status Code Is
Check HTTP Response Status Code Is
[
Arguments
]
${expected_status}
[
Arguments
]
${expected_status}
Should Be Equal
${response
.
status
_code
}
${expected_status}
Should Be Equal
As Strings
${response
[0]['
status
']
}
${expected_status}
Log
Status code validated
Log
Status code validated
Check HTTP Response Body Json Schema Is
Check HTTP Response Body Json Schema Is
...
...
SOL002/VNFFaultManagement-API/EscalatePerceivedSeverityTask.robot
View file @
d65c7b04
...
@@ -80,35 +80,35 @@ POST escalate severity
...
@@ -80,35 +80,35 @@ POST escalate severity
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms/
${alarmId}
/escalate
${PerceivedSeverity}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms/
${alarmId}
/escalate
${PerceivedSeverity}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
GET escalate severity
GET escalate severity
log
Trying to perform a GET. This method should not be implemented
log
Trying to perform a GET. This method should not be implemented
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms/
${alarmId}
/escalate
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms/
${alarmId}
/escalate
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
PUT escalate severity
PUT escalate severity
log
Trying to perform a PUT. This method should not be implemented
log
Trying to perform a PUT. This method should not be implemented
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Put
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms/
${alarmId}
/escalate
Put
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms/
${alarmId}
/escalate
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
PATCH escalate severity
PATCH escalate severity
log
Trying to perform a PATCH. This method should not be implemented
log
Trying to perform a PATCH. This method should not be implemented
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Patch
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms/
${alarmId}
/escalate
Patch
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms/
${alarmId}
/escalate
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
DELETE escalate severity
DELETE escalate severity
log
Trying to perform a DELETE. This method should not be implemented
log
Trying to perform a DELETE. This method should not be implemented
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Delete
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms/
${alarmId}
/escalate
Delete
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms/
${alarmId}
/escalate
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
Check HTTP Response Status Code Is
Check HTTP Response Status Code Is
[
Arguments
]
${expected_status}
[
Arguments
]
${expected_status}
Should Be Equal
${response
.
status
_code
}
${expected_status}
Should Be Equal
As Strings
${response
['
status
']
}
${expected_status}
Log
Status code validated
Log
Status code validated
Check HTTP Response Body Json Schema Is
Check HTTP Response Body Json Schema Is
...
...
SOL002/VNFFaultManagement-API/IndividualAlarm.robot
View file @
d65c7b04
...
@@ -113,7 +113,7 @@ POST Alarm Task
...
@@ -113,7 +113,7 @@ POST Alarm Task
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms/
${alarmId}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms/
${alarmId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
PUT Alarm Task
PUT Alarm 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}
"}
...
@@ -121,7 +121,7 @@ PUT Alarm Task
...
@@ -121,7 +121,7 @@ PUT Alarm Task
${body}
=
Get File
jsons/alarmModifications.json
${body}
=
Get File
jsons/alarmModifications.json
Put
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms/
${alarmId}
${body}
Put
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms/
${alarmId}
${body}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
PATCH Alarm Task
PATCH Alarm Task
log
Trying to perform a PATCH. This method modifies an individual alarm resource
log
Trying to perform a PATCH. This method modifies an individual alarm resource
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
...
@@ -131,7 +131,7 @@ PATCH Alarm Task
...
@@ -131,7 +131,7 @@ PATCH Alarm Task
${body}
=
Get File
jsons/alarmModifications.json
${body}
=
Get File
jsons/alarmModifications.json
Patch
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms/
${alarmId}
${body}
Patch
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms/
${alarmId}
${body}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
PATCH Alarm Task with wrong precondition
PATCH Alarm Task with wrong precondition
log
Trying to perform a PATCH. This method modifies an individual alarm resource
log
Trying to perform a PATCH. This method modifies an individual alarm resource
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
...
@@ -140,14 +140,14 @@ PATCH Alarm Task with wrong precondition
...
@@ -140,14 +140,14 @@ PATCH Alarm Task with wrong precondition
${body}
=
Get File
jsons/alarmModifications.json
${body}
=
Get File
jsons/alarmModifications.json
Patch
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms/
${alarmId}
${body}
Patch
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms/
${alarmId}
${body}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
DELETE Alarm Task
DELETE Alarm 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":"
${AUTHORIZATION}
"}
Delete
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms/
${alarmId}
Delete
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms/
${alarmId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
GET Alarm Task
GET Alarm Task
Log
Query VNF The GET method queries information about individual alarm.
Log
Query VNF The GET method queries information about individual alarm.
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
...
@@ -157,7 +157,7 @@ GET Alarm Task
...
@@ -157,7 +157,7 @@ GET Alarm Task
${etag}
Output
response headers ETag
${etag}
Output
response headers ETag
Set Suite Variable
&{original_etag}
${etag}
Set Suite Variable
&{original_etag}
${etag}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
GET Alarm Task with filter
GET Alarm Task with filter
Log
Query VNF The GET method queries information about individual alarm with filters.
Log
Query VNF The GET method queries information about individual alarm with filters.
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
...
@@ -165,7 +165,7 @@ GET Alarm Task with filter
...
@@ -165,7 +165,7 @@ GET Alarm Task with filter
Log
Execute Query and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms?
${alarm_filter}
=
${managedObjectId}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms?
${alarm_filter}
=
${managedObjectId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
GET Alarm Task with invalid filter
GET Alarm Task with invalid filter
Log
Query VNF The GET method queries information about individual alarm with filters.
Log
Query VNF The GET method queries information about individual alarm with filters.
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
...
@@ -173,10 +173,10 @@ GET Alarm Task with invalid filter
...
@@ -173,10 +173,10 @@ GET Alarm Task with invalid filter
Log
Execute Query and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms?
${invalid_alarm_filter}
=
${managedObjectId}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/alarms?
${invalid_alarm_filter}
=
${managedObjectId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
Check HTTP Response Status Code Is
Check HTTP Response Status Code Is
[
Arguments
]
${expected_status}
[
Arguments
]
${expected_status}
Should Be Equal
${response
.
status
_code
}
${expected_status}
Should Be Equal
As Strings
${response
['
status
']
}
${expected_status}
Log
Status code validated
Log
Status code validated
Check HTTP Response Body Json Schema Is
Check HTTP Response Body Json Schema Is
...
...
SOL002/VNFFaultManagement-API/IndividualSubscription.robot
View file @
d65c7b04
...
@@ -83,35 +83,35 @@ Post Create individual subscription
...
@@ -83,35 +83,35 @@ Post Create individual subscription
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions/
${subscriptionId}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions/
${subscriptionId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
Get individual subscription
Get individual subscription
log
Trying to get information about an individual subscription
log
Trying to get information about an individual subscription
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":"
${AUTHORIZATION}
"}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions/
${subscriptionId}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions/
${subscriptionId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
Get individual subscription - filter
Get individual subscription - filter
Log
Get the list of active individual subscription using a filter
Log
Get the list of active individual subscription using a filter
Set Headers
{"Accept": "
${ACCEPT}
"}
Set Headers
{"Accept": "
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization": "
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization": "
${AUTHORIZATION}
"}
GET
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions?
${sub_filter}
GET
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions?
${sub_filter}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
Get individual subscription - invalid filter
Get individual subscription - invalid filter
Log
Get the list of active individual subscription using an invalid filter
Log
Get the list of active individual subscription using an invalid filter
Set Headers
{"Accept": "
${ACCEPT}
"}
Set Headers
{"Accept": "
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization": "
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization": "
${AUTHORIZATION}
"}
GET
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions?
${sub_filter_invalid}
GET
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions?
${sub_filter_invalid}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
PUT individual subscription
PUT individual subscription
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":"
${AUTHORIZATION}
"}
Put
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions/
${subscriptionId}
Put
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions/
${subscriptionId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
PATCH individual subscription
PATCH individual subscription
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}
"}
...
@@ -119,18 +119,18 @@ PATCH individual subscription
...
@@ -119,18 +119,18 @@ PATCH individual subscription
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Patch
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions/
${subscriptionId}
Patch
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions/
${subscriptionId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
DELETE individual subscription
DELETE individual subscription
log
Try to delete an individual subscription
log
Try to delete an individual subscription
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":"
${AUTHORIZATION}
"}
Delete
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions/
${subscriptionId}
Delete
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions/
${subscriptionId}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
Check HTTP Response Status Code Is
Check HTTP Response Status Code Is
[
Arguments
]
${expected_status}
[
Arguments
]
${expected_status}
Should Be Equal
${response
.
status
_code
}
${expected_status}
Should Be Equal
As Strings
${response
['
status
']
}
${expected_status}
Log
Status code validated
Log
Status code validated
Check HTTP Response Body Json Schema Is
Check HTTP Response Body Json Schema Is
...
...
SOL002/VNFFaultManagement-API/Subscriptions.robot
View file @
d65c7b04
...
@@ -294,7 +294,7 @@ Post Create subscription
...
@@ -294,7 +294,7 @@ Post Create subscription
${body}
=
Get File
jsons/fmSubscriptionRequest.json
${body}
=
Get File
jsons/fmSubscriptionRequest.json
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions
${body}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
Post Create subscription - DUPLICATION
Post Create subscription - DUPLICATION
Log
Trying to create a subscription with an already created content
Log
Trying to create a subscription with an already created content
Pass Execution If
${VNFM_ALLOWS_DUPLICATE_SUBS}
=
= 0
NVFO is not permitting duplication. Skipping the test
Pass Execution If
${VNFM_ALLOWS_DUPLICATE_SUBS}
=
= 0
NVFO is not permitting duplication. Skipping the test
...
@@ -304,7 +304,7 @@ Post Create subscription - DUPLICATION
...
@@ -304,7 +304,7 @@ Post Create subscription - DUPLICATION
${body}
=
Get File
jsons/fmSubscriptionRequest.json
${body}
=
Get File
jsons/fmSubscriptionRequest.json
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions
${body}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
Post Create subscription - NO-DUPLICATION
Post Create subscription - NO-DUPLICATION
Log
Trying to create a subscription with an already created content
Log
Trying to create a subscription with an already created content
Pass Execution If
${VNFM_ALLOWS_DUPLICATE_SUBS}
=
= 1
VNFM permits duplication. Skipping the test
Pass Execution If
${VNFM_ALLOWS_DUPLICATE_SUBS}
=
= 1
VNFM permits duplication. Skipping the test
...
@@ -314,7 +314,7 @@ Post Create subscription - NO-DUPLICATION
...
@@ -314,7 +314,7 @@ Post Create subscription - NO-DUPLICATION
${body}
=
Get File
jsons/fmSubscriptionRequest.json
${body}
=
Get File
jsons/fmSubscriptionRequest.json
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions
${body}
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
Get subscriptions
Get subscriptions
Log
Get the list of active subscriptions
Log
Get the list of active subscriptions
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
...
@@ -323,21 +323,21 @@ Get subscriptions
...
@@ -323,21 +323,21 @@ Get subscriptions
Log
Execute Query and validate response
Log
Execute Query and validate response
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions
${outputResponse}
=
Output
response
${outputResponse}
=
Output
response
Set Global Variable
@
{response}
${outputResponse}
Set Global Variable
$
{response}
${outputResponse}
Get subscriptions - filter
Get subscriptions - filter
Log
Get the list of active subscriptions using a filter
Log
Get the list of active subscriptions using a filter
Set Headers
{"Accept": "
${ACCEPT}
"}
Set Headers
{"Accept": "
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization": "
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization": "
${AUTHORIZATION}
"}
GET
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions?
${sub_filter}
GET
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions?
${sub_filter}