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
62da7cab
Commit
62da7cab
authored
Sep 21, 2021
by
Giacomo Bernini
Browse files
fixed issues
#90
and
#190
in 2.6.1
parent
2daea4b8
Changes
31
Show whitespace changes
Inline
Side-by-side
SOL002/VNFConfiguration-API/Configuration.robot
View file @
62da7cab
...
...
@@ -137,7 +137,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 @
62da7cab
...
...
@@ -353,7 +353,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/EscalatePerceivedSeverityTask.robot
View file @
62da7cab
...
...
@@ -113,7 +113,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
\ No newline at end of file
SOL002/VNFFaultManagement-API/IndividualAlarm.robot
View file @
62da7cab
...
...
@@ -181,7 +181,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 @
62da7cab
...
...
@@ -135,7 +135,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 @
62da7cab
...
...
@@ -443,7 +443,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 @
62da7cab
...
...
@@ -172,7 +172,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 @
62da7cab
...
...
@@ -221,7 +221,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 @
62da7cab
...
...
@@ -231,7 +231,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 @
62da7cab
...
...
@@ -284,7 +284,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 @
62da7cab
...
...
@@ -216,7 +216,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 @
62da7cab
...
...
@@ -34,6 +34,8 @@ Check Operation Occurrence Id
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 @
62da7cab
...
...
@@ -199,7 +199,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 @
62da7cab
...
...
@@ -167,7 +167,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 @
62da7cab
...
...
@@ -197,7 +197,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 @
62da7cab
...
...
@@ -377,7 +377,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 @
62da7cab
...
...
@@ -237,7 +237,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 @
62da7cab
...
...
@@ -267,7 +267,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 @
62da7cab
...
...
@@ -70,6 +70,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 @
62da7cab
...
...
@@ -177,7 +177,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
...
...
Prev
1
2
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