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
40f8cf3b
Commit
40f8cf3b
authored
Jul 01, 2019
by
Giacomo Bernini
Browse files
fixes to low level code for subscriptions
parent
6fd15489
Changes
6
Hide whitespace changes
Inline
Side-by-side
SOL002/VNFPerformanceManagement-API/VNFPerformanceManagementKeywords.robot
View file @
40f8cf3b
...
...
@@ -310,6 +310,10 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab
${result}
=
Output
response body
Validate Json
PmSubscription.schema.json
${result}
Log
Validated PmSubscription schema
${body}
=
Get File
jsons/subscriptions.json
${subscription}
=
evaluate
json.loads('''
${body}
''')
json
Should Be Equal
${result['callbackUri']}
${subscription['callbackUri']}
Log
Validated Issued subscription is same as original
Check Postcondition VNF Performance Subscriptions Exists
Log
Checking that subscriptions exists
...
...
SOL003/VNFIndicator-API/VNFIndicatorsKeywords.robot
View file @
40f8cf3b
...
...
@@ -214,6 +214,10 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab
${result}
=
Output
response body
Validate Json
VnfIndicatorSubscription.schema.json
${result}
Log
Validated VnfIndicatorSubscription schema
${body}
=
Get File
jsons/subscriptions.json
${subscription}
=
evaluate
json.loads('''
${body}
''')
json
Should Be Equal
${result['callbackUri']}
${subscription['callbackUri']}
Log
Validated Issued subscription is same as original
Check HTTP Response Header Contains
[
Arguments
]
${CONTENT_TYPE}
...
...
SOL003/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
View file @
40f8cf3b
...
...
@@ -665,7 +665,11 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab
Should Contain
${contentType}
application/json
${result}
=
Output
response body
Validate Json
PkgmSubscription.schema.json
${result}
Log
Validated PkgmSubscription schema
Log
Validated PkgmSubscription schema
${body}
=
Get File
jsons/subscriptions.json
${subscription}
=
evaluate
json.loads('''
${body}
''')
json
Should Be Equal
${result['callbackUri']}
${subscription['callbackUri']}
Log
Validated Issued subscription is same as original
Get Individual VNF Package Subscription
Log
Trying to get a single subscription identified by subscriptionId
...
...
SOL005/NSDManagement-API/NSDManagementKeywords.robot
View file @
40f8cf3b
...
...
@@ -924,6 +924,10 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab
${result}
=
Output
response body
Validate Json
NsdmSubscription.schema.json
${result}
Log
Validated NsdmSubscription schema
${body}
=
Get File
jsons/subscriptions.json
${subscription}
=
evaluate
json.loads('''
${body}
''')
json
Should Be Equal
${result['callbackUri']}
${subscription['callbackUri']}
Log
Validated Issued subscription is same as original
Get Individual NSD Management Subscription
Log
Trying to get a single subscription identified by subscriptionId
...
...
SOL005/NSPerformanceManagement-API/NSPerformanceManagementKeywords.robot
View file @
40f8cf3b
...
...
@@ -685,6 +685,10 @@ Check Postcondition Subscription Resource URI Returned in Location Header Is Ava
${result}
=
Output
response body
Validate Json
PmSubscriptions.schema.json
${result}
Log
Validated PmSubscriptions schema
${body}
=
Get File
jsons/subscriptions.json
${subscription}
=
evaluate
json.loads('''
${body}
''')
json
Should Be Equal
${result['callbackUri']}
${subscription['callbackUri']}
Log
Validated Issued subscription is same as original
Get Individual NS Performance Subscription
Log
Trying to get a single subscription identified by subscriptionId
...
...
SOL005/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
View file @
40f8cf3b
...
...
@@ -801,7 +801,11 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab
Should Contain
${contentType}
application/json
${result}
=
Output
response body
Validate Json
PkgmSubscription.schema.json
${result}
Log
Validated PkgmSubscription schema
Log
Validated PkgmSubscription schema
${body}
=
Get File
jsons/subscriptions.json
${subscription}
=
evaluate
json.loads('''
${body}
''')
json
Should Be Equal
${result['callbackUri']}
${subscription['callbackUri']}
Log
Validated Issued subscription is same as original
Get Individual VNF Package Subscription
Log
Trying to get a single subscription identified by subscriptionId
...
...
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