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
e26b745a
Commit
e26b745a
authored
Sep 21, 2021
by
Giacomo Bernini
Committed by
Giacomo Bernini
Oct 05, 2021
Browse files
fixed issues
#90
and
#190
in 3.3.1
parent
fd70870c
Changes
50
Hide whitespace changes
Inline
Side-by-side
SOL002/VNFConfiguration-API/Configuration.robot
View file @
e26b745a
...
...
@@ -136,7 +136,8 @@ Check HTTP Response Header Contains
Check HTTP Response Body Json Schema Is
[
Arguments
]
${input}
Should Contain
${response['headers']['Content-Type']}
application/problem+json
Run Keyword If
'
${input}
' == 'ProblemDetails'
Should Contain
${response['headers']['Content-Type']}
application/problem+json
...
ELSE
Should Contain
${response['headers']['Content-Type']}
application/json
${schema}
=
Catenate
SEPARATOR=
${input}
.schema.json
Validate Json
${schema}
${response['body']}
Log
Json Schema Validation OK
...
...
SOL002/VNFFaultManagement-API/Alarms.robot
View file @
e26b745a
...
...
@@ -352,7 +352,8 @@ Check HTTP Response Header Contains
Check HTTP Response Body Json Schema Is
[
Arguments
]
${input}
Should Contain
${response['headers']['Content-Type']}
application/json
Run Keyword If
'
${input}
' == 'ProblemDetails'
Should Contain
${response['headers']['Content-Type']}
application/problem+json
...
ELSE
Should Contain
${response['headers']['Content-Type']}
application/json
${schema}
=
Catenate
SEPARATOR=
${input}
.schema.json
Validate Json
${schema}
${response['body']}
Log
Json Schema Validation OK
...
...
SOL002/VNFFaultManagement-API/IndividualAlarm.robot
View file @
e26b745a
...
...
@@ -191,7 +191,8 @@ Check HTTP Response Status Code Is
Check HTTP Response Body Json Schema Is
[
Arguments
]
${input}
Should Contain
${response['headers']['Content-Type']}
application/json
Run Keyword If
'
${input}
' == 'ProblemDetails'
Should Contain
${response['headers']['Content-Type']}
application/problem+json
...
ELSE
Should Contain
${response['headers']['Content-Type']}
application/json
${schema}
=
Catenate
SEPARATOR=
${input}
.schema.json
Validate Json
${schema}
${response['body']}
Log
Json Schema Validation OK
...
...
SOL002/VNFFaultManagement-API/IndividualSubscription.robot
View file @
e26b745a
...
...
@@ -147,7 +147,8 @@ Check HTTP Response Status Code Is
Check HTTP Response Body Json Schema Is
[
Arguments
]
${input}
Should Contain
${response['headers']['Content-Type']}
application/json
Run Keyword If
'
${input}
' == 'ProblemDetails'
Should Contain
${response['headers']['Content-Type']}
application/problem+json
...
ELSE
Should Contain
${response['headers']['Content-Type']}
application/json
${schema}
=
Catenate
SEPARATOR=
${input}
.schema.json
Validate Json
${schema}
${response['body']}
Log
Json Schema Validation OK
...
...
SOL002/VNFFaultManagement-API/Subscriptions.robot
View file @
e26b745a
...
...
@@ -427,7 +427,8 @@ Check HTTP Response Status Code Is
Check HTTP Response Body Json Schema Is
[
Arguments
]
${input}
Should Contain
${response['headers']['Content-Type']}
application/json
Run Keyword If
'
${input}
' == 'ProblemDetails'
Should Contain
${response['headers']['Content-Type']}
application/problem+json
...
ELSE
Should Contain
${response['headers']['Content-Type']}
application/json
${schema}
=
Catenate
SEPARATOR=
${input}
.schema.json
Validate Json
${schema}
${response['body']}
Log
Json Schema Validation OK
...
...
SOL002/VNFIndicator-API/IndividualSubscription.robot
View file @
e26b745a
...
...
@@ -168,7 +168,8 @@ Check HTTP Response Header Contains
Check HTTP Response Body Json Schema Is
[
Arguments
]
${input}
Should Contain
${response['headers']['Content-Type']}
application/json
Run Keyword If
'
${input}
' == 'ProblemDetails'
Should Contain
${response['headers']['Content-Type']}
application/problem+json
...
ELSE
Should Contain
${response['headers']['Content-Type']}
application/json
${schema}
=
Catenate
SEPARATOR=
${input}
.schema.json
Validate Json
${schema}
${response['body']}
Log
Json Schema Validation OK
...
...
SOL002/VNFIndicator-API/IndividualVNFindicator.robot
View file @
e26b745a
...
...
@@ -218,7 +218,8 @@ Check HTTP Response Header Contains
Check HTTP Response Body Json Schema Is
[
Arguments
]
${input}
Should Contain
${response['headers']['Content-Type']}
application/json
Run Keyword If
'
${input}
' == 'ProblemDetails'
Should Contain
${response['headers']['Content-Type']}
application/problem+json
...
ELSE
Should Contain
${response['headers']['Content-Type']}
application/json
${schema}
=
Catenate
SEPARATOR=
${input}
.schema.json
Validate Json
${schema}
${response['body']}
Log
Json Schema Validation OK
...
...
SOL002/VNFIndicator-API/Subscriptions.robot
View file @
e26b745a
...
...
@@ -282,7 +282,8 @@ Check HTTP Response Header Contains
Check
HTTP
Response
Body
Json
Schema
Is
[Arguments]
${input}
Should
Contain
${response['headers']['Content-Type']}
application/json
Run
Keyword
If
'${input}'
==
'ProblemDetails'
Should
Contain
${response['headers']['Content-Type']}
application/problem+json
...
ELSE
Should
Contain
${response['headers']['Content-Type']}
application/json
${schema}
=
Catenate
SEPARATOR=
${input}
.schema.json
Validate
Json
${schema}
${response['body']}
Log
Json
Schema
Validation
OK
...
...
SOL002/VNFIndicator-API/VNFIndicators.robot
View file @
e26b745a
...
...
@@ -286,7 +286,8 @@ Check HTTP Response Header Contains
Check HTTP Response Body Json Schema Is
[
Arguments
]
${schema}
Should Contain
${response['headers']['Content-Type']}
application/json
Run Keyword If
'
${input}
' == 'ProblemDetails'
Should Contain
${response['headers']['Content-Type']}
application/problem+json
...
ELSE
Should Contain
${response['headers']['Content-Type']}
application/json
${jsonSchema}
=
Catenate
SEPARATOR=
${schema}
.schema.json
Validate Json
${jsonSchema}
${response['body']}
Log
Json Schema Validation OK
...
...
SOL002/VNFIndicator-API/VnfIndicatorsInVnfInstanceId.robot
View file @
e26b745a
...
...
@@ -214,7 +214,8 @@ Check HTTP Response Header Contains
Check HTTP Response Body Json Schema Is
[
Arguments
]
${input}
Should Contain
${response['headers']['Content-Type']}
application/json
Run Keyword If
'
${input}
' == 'ProblemDetails'
Should Contain
${response['headers']['Content-Type']}
application/problem+json
...
ELSE
Should Contain
${response['headers']['Content-Type']}
application/json
${schema}
=
Catenate
SEPARATOR=
${input}
.schema.json
Validate Json
${schema}
${response['body']}
Log
Json Schema Validation OK
...
...
SOL002/VNFLifecycleManagement-API/VnfLcmOperationKeywords.robot
View file @
e26b745a
...
...
@@ -44,6 +44,8 @@ Check HTTP Location Header Contains URI of Created Resource
Check HTTP Response Body Json Schema Is
[
Arguments
]
${input}
Run Keyword If
'
${input}
' == 'ProblemDetails'
Should Contain
${response['headers']['Content-Type']}
application/problem+json
...
ELSE
Should Contain
${response['headers']['Content-Type']}
application/json
${schema}
=
Catenate
SEPARATOR=
${input}
.schema.json
Validate Json
${schema}
${response['body']}
Log
Json Schema Validation OK
...
...
SOL002/VNFPerformanceManagement-API/IndividualPmJob.robot
View file @
e26b745a
...
...
@@ -229,7 +229,8 @@ Check HTTP Response Header Contains
Check HTTP Response Body Json Schema Is
[
Arguments
]
${input}
Should Contain
${response['headers']['Content-Type']}
application/json
Run Keyword If
'
${input}
' == 'ProblemDetails'
Should Contain
${response['headers']['Content-Type']}
application/problem+json
...
ELSE
Should Contain
${response['headers']['Content-Type']}
application/json
${schema}
=
Catenate
SEPARATOR=
${input}
.schema.json
Validate Json
${schema}
${response['body']}
Log
Json Schema Validation OK
...
...
SOL002/VNFPerformanceManagement-API/IndividualReport.robot
View file @
e26b745a
...
...
@@ -155,7 +155,8 @@ Check HTTP Response Header Contains
Check HTTP Response Body Json Schema Is
[
Arguments
]
${input}
Should Contain
${response['headers']['Content-Type']}
application/json
Run Keyword If
'
${input}
' == 'ProblemDetails'
Should Contain
${response['headers']['Content-Type']}
application/problem+json
...
ELSE
Should Contain
${response['headers']['Content-Type']}
application/json
${schema}
=
Catenate
SEPARATOR=
${input}
.schema.json
Validate Json
${schema}
${response['body']}
Log
Json Schema Validation OK
...
...
SOL002/VNFPerformanceManagement-API/IndividualThreshold.robot
View file @
e26b745a
...
...
@@ -228,7 +228,8 @@ Check HTTP Response Header Contains
Check HTTP Response Body Json Schema Is
[
Arguments
]
${input}
Should Contain
${response['headers']['Content-Type']}
application/json
Run Keyword If
'
${input}
' == 'ProblemDetails'
Should Contain
${response['headers']['Content-Type']}
application/problem+json
...
ELSE
Should Contain
${response['headers']['Content-Type']}
application/json
${schema}
=
Catenate
SEPARATOR=
${input}
.schema.json
Validate Json
${schema}
${response['body']}
Log
Json Schema Validation OK
...
...
SOL002/VNFPerformanceManagement-API/PMJobs.robot
View file @
e26b745a
...
...
@@ -409,7 +409,8 @@ Check HTTP Response Header Contains
Check HTTP Response Body Json Schema Is
[
Arguments
]
${input}
Should Contain
${response['headers']['Content-Type']}
application/json
Run Keyword If
'
${input}
' == 'ProblemDetails'
Should Contain
${response['headers']['Content-Type']}
application/problem+json
...
ELSE
Should Contain
${response['headers']['Content-Type']}
application/json
${schema}
=
Catenate
SEPARATOR=
${input}
.schema.json
Validate Json
${schema}
${response['body']}
Log
Json Schema Validation OK
...
...
SOL002/VNFPerformanceManagement-API/Thresholds.robot
View file @
e26b745a
...
...
@@ -258,7 +258,8 @@ Check HTTP Response Header Contains
Check HTTP Response Body Json Schema Is
[
Arguments
]
${input}
Should Contain
${response['headers']['Content-Type']}
application/json
Run Keyword If
'
${input}
' == 'ProblemDetails'
Should Contain
${response['headers']['Content-Type']}
application/problem+json
...
ELSE
Should Contain
${response['headers']['Content-Type']}
application/json
${schema}
=
Catenate
SEPARATOR=
${input}
.schema.json
Validate Json
${schema}
${response['body']}
Log
Json Schema Validation OK
...
...
SOL002/VNFPerformanceManagement-API/VNFPerformanceManagementKeywords.robot
View file @
e26b745a
...
...
@@ -271,7 +271,8 @@ Check HTTP Response Status Code Is
Check HTTP Response Body Json Schema Is
[
Arguments
]
${input}
Should Contain
${response['headers']['Content-Type']}
application/json
Run Keyword If
'
${input}
' == 'ProblemDetails'
Should Contain
${response['headers']['Content-Type']}
application/problem+json
...
ELSE
Should Contain
${response['headers']['Content-Type']}
application/json
${schema}
=
Catenate
SEPARATOR=
${input}
.schema.json
Validate Json
${schema}
${response['body']}
Log
Json Schema Validation OK
...
...
SOL003/VNFFaultManagement-API/FaultManagement-APIKeyword.robot
View file @
e26b745a
...
...
@@ -63,6 +63,8 @@ Check HTTP Response Header Contains
Check HTTP Response Body Json Schema Is
[
Arguments
]
${input}
Run Keyword If
'
${input}
' == 'ProblemDetails'
Should Contain
${response['headers']['Content-Type']}
application/problem+json
...
ELSE
Should Contain
${response['headers']['Content-Type']}
application/json
${schema}
=
Catenate
SEPARATOR=
${input}
.schema.json
Validate Json
${schema}
${response['body']}
Log
Json Schema Validation OK
...
...
SOL003/VNFIndicator-API/VNFIndicatorsKeywords.robot
View file @
e26b745a
...
...
@@ -168,7 +168,8 @@ Check HTTP Response Status Code Is
Check HTTP Response Body Json Schema Is
[
Arguments
]
${input}
Should Contain
${response['headers']['Content-Type']}
application/json
Run Keyword If
'
${input}
' == 'ProblemDetails'
Should Contain
${response['headers']['Content-Type']}
application/problem+json
...
ELSE
Should Contain
${response['headers']['Content-Type']}
application/json
${schema}
=
Catenate
SEPARATOR=
${input}
.schema.json
Validate Json
${schema}
${response['body']}
Log
Json Schema Validation OK
...
...
SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot
View file @
e26b745a
...
...
@@ -42,6 +42,8 @@ Check Operation Occurrence Id existence
Check HTTP Response Body Json Schema Is
[
Arguments
]
${input}
Run Keyword If
'
${input}
' == 'ProblemDetails'
Should Contain
${response['headers']['Content-Type']}
application/problem+json
...
ELSE
Should Contain
${response['headers']['Content-Type']}
application/json
${schema}
=
Catenate
SEPARATOR=
${input}
.schema.json
Validate Json
${schema}
${response['body']}
Log
Json Schema Validation OK
...
...
Prev
1
2
3
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment