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
SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot
View file @
62da7cab
...
...
@@ -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
...
...
SOL003/VNFLifecycleOperationGranting-API/Grants.robot
View file @
62da7cab
...
...
@@ -168,6 +168,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']}
...
...
SOL003/VNFLifecycleOperationGranting-API/IndividualGrant.robot
View file @
62da7cab
...
...
@@ -161,5 +161,7 @@ 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']}
SOL003/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
View file @
62da7cab
...
...
@@ -661,7 +661,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/VNFPerformanceManagement-API/VNFPerformanceManagementKeywords.robot
View file @
62da7cab
...
...
@@ -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/VirtualisedResourcesQuotaAvailableNotification-API/VRQANOperationKeywords.robot
View file @
62da7cab
...
...
@@ -34,6 +34,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
...
...
SOL005/NSDManagement-API/NSDManagementKeywords.robot
View file @
62da7cab
...
...
@@ -906,7 +906,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
...
...
SOL005/NSFaultManagement-API/NSFMOperationKeywords.robot
View file @
62da7cab
...
...
@@ -35,6 +35,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
...
...
SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot
View file @
62da7cab
...
...
@@ -217,6 +217,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
...
...
SOL005/NSPerformanceManagement-API/NSPerformanceManagementKeywords.robot
View file @
62da7cab
...
...
@@ -660,7 +660,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
...
...
SOL005/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
View file @
62da7cab
...
...
@@ -947,7 +947,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