Skip to content
Snippets Groups Projects
Commit 40f8cf3b authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

fixes to low level code for subscriptions

parent 6fd15489
No related branches found
No related tags found
1 merge request!48addressed comments for TST010 contrbutions
...@@ -310,6 +310,10 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab ...@@ -310,6 +310,10 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab
${result}= Output response body ${result}= Output response body
Validate Json PmSubscription.schema.json ${result} Validate Json PmSubscription.schema.json ${result}
Log Validated PmSubscription schema 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 Check Postcondition VNF Performance Subscriptions Exists
Log Checking that subscriptions exists Log Checking that subscriptions exists
......
...@@ -214,6 +214,10 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab ...@@ -214,6 +214,10 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab
${result}= Output response body ${result}= Output response body
Validate Json VnfIndicatorSubscription.schema.json ${result} Validate Json VnfIndicatorSubscription.schema.json ${result}
Log Validated VnfIndicatorSubscription schema 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 Check HTTP Response Header Contains
[Arguments] ${CONTENT_TYPE} [Arguments] ${CONTENT_TYPE}
......
...@@ -665,7 +665,11 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab ...@@ -665,7 +665,11 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab
Should Contain ${contentType} application/json Should Contain ${contentType} application/json
${result}= Output response body ${result}= Output response body
Validate Json PkgmSubscription.schema.json ${result} 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 Get Individual VNF Package Subscription
Log Trying to get a single subscription identified by subscriptionId Log Trying to get a single subscription identified by subscriptionId
......
...@@ -924,6 +924,10 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab ...@@ -924,6 +924,10 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab
${result}= Output response body ${result}= Output response body
Validate Json NsdmSubscription.schema.json ${result} Validate Json NsdmSubscription.schema.json ${result}
Log Validated NsdmSubscription schema 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 Get Individual NSD Management Subscription
Log Trying to get a single subscription identified by subscriptionId Log Trying to get a single subscription identified by subscriptionId
......
...@@ -685,6 +685,10 @@ Check Postcondition Subscription Resource URI Returned in Location Header Is Ava ...@@ -685,6 +685,10 @@ Check Postcondition Subscription Resource URI Returned in Location Header Is Ava
${result}= Output response body ${result}= Output response body
Validate Json PmSubscriptions.schema.json ${result} Validate Json PmSubscriptions.schema.json ${result}
Log Validated PmSubscriptions schema 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 Get Individual NS Performance Subscription
Log Trying to get a single subscription identified by subscriptionId Log Trying to get a single subscription identified by subscriptionId
......
...@@ -801,7 +801,11 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab ...@@ -801,7 +801,11 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab
Should Contain ${contentType} application/json Should Contain ${contentType} application/json
${result}= Output response body ${result}= Output response body
Validate Json PkgmSubscription.schema.json ${result} 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 Get Individual VNF Package Subscription
Log Trying to get a single subscription identified by subscriptionId Log Trying to get a single subscription identified by subscriptionId
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment