Commit fcc1ef8e authored by Elian Kraja's avatar Elian Kraja
Browse files

Fix issue #115

parent c31a01c0
......@@ -359,7 +359,7 @@ Check HTTP Response Body Json Schema Is
Log Json Schema Validation OK
Check LINK in Header
${linkURL}= Get Value From Json ${response.headers} $..Link
${linkURL}= Get Value From Json ${response['headers']} $..Link
Should Not Be Empty ${linkURL}
GET Alarms Task with filter "id"
......
......@@ -401,7 +401,7 @@ Check HTTP Response Body Json Schema Is
Log Json Schema Validation OK
Check LINK in Header
${linkURL}= Get Value From Json ${response.headers} $..Link
${linkURL}= Get Value From Json ${response['headers']} $..Link
Should Not Be Empty ${linkURL}
Get subscriptions with filter "id"
......
......@@ -264,5 +264,5 @@ Check Notification Endpoint
Clear Requests ${callback_endpoint}
Check LINK in Header
${linkURL}= Get Value From Json ${response.headers} $..Link
${linkURL}= Get Value From Json ${response['headers']} $..Link
Should Not Be Empty ${linkURL}
\ No newline at end of file
......@@ -302,5 +302,5 @@ Check HTTP Response Body vnfIndicators Matches the requested attribute-based fil
Should Be True "${response['body'][0]['name']}"=="@{var_name}[1]" and "${response['body'][0]['vnfInstanceId']}"=="@{var_id}[1]"
Check LINK in Header
${linkURL}= Get Value From Json ${response.headers} $..Link
${linkURL}= Get Value From Json ${response['headers']} $..Link
Should Not Be Empty ${linkURL}
......@@ -235,8 +235,8 @@ Check Postcondition Indicators for VNF instance Exist
Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/indicators/${vnfInstanceId}
Should Be Equal ${response.status_code} 200
Should Be Equal ${response['status']} 200
Check LINK in Header
${linkURL}= Get Value From Json ${response.headers} $..Link
${linkURL}= Get Value From Json ${response['headers']} $..Link
Should Not Be Empty ${linkURL}
\ No newline at end of file
......@@ -27,7 +27,7 @@ Check HTTP Response Status Code Is
Log Status code validated
Check Operation Occurrence Id
${vnfLcmOpOccId}= Get Value From Json ${response.headers} $..Location
${vnfLcmOpOccId}= Get Value From Json ${response['headers']} $..Location
Should Not Be Empty ${vnfLcmOpOccId}
Check HTTP Response Body Json Schema Is
......@@ -39,12 +39,12 @@ Check HTTP Response Body Json Schema Is
Check resource Instantiated
Check VNF Instance ${vnfInstanceId}
Check HTTP Response Status Code Is 200
Check VNF Status ${response.body.instantiationState} INSTANTIATED
Check VNF Status ${response['body']['instantiationState']} INSTANTIATED
Check resource not Instantiated
Check VNF Instance ${vnfInstanceId}
Check HTTP Response Status Code Is 200
Check VNF Status ${response.body.instantiationState} NOT_INSTANTIATED
Check VNF Status ${response['body']['instantiationState']} NOT_INSTANTIATED
Check VNF Instance
[Arguments] ${vnfId}
......@@ -70,7 +70,7 @@ Check operation resource state is FINALLY_FAILED
Check HTTP Response Header Contains
[Arguments] ${CONTENT_TYPE}
Should Contain ${response.headers} ${CONTENT_TYPE}
Should Contain ${response['headers']} ${CONTENT_TYPE}
Log Header is present
POST Create a new vnfInstance
......@@ -924,7 +924,7 @@ GET test endpoint
Verify Mock Expectation ${req}
Clear Requests ${callback_endpoint}
Check LINK in Header
${linkURL}= Get Value From Json ${response.headers} $..Link
${linkURL}= Get Value From Json ${response['headers']} $..Link
Should Not Be Empty ${linkURL}
Check Subscription resource exist
......
......@@ -383,7 +383,7 @@ Check HTTP Response Body Json Schema Is
Log Json Schema Validation OK
Check LINK in Header
${linkURL}= Get Value From Json ${response.headers} $..Link
${linkURL}= Get Value From Json ${response['headers']} $..Link
Should Not Be Empty ${linkURL}
......@@ -243,7 +243,7 @@ Check HTTP Response Body Json Schema Is
Log Json Schema Validation OK
Check LINK in Header
${linkURL}= Get Value From Json ${response.headers} $..Link
${linkURL}= Get Value From Json ${response['headers']} $..Link
Should Not Be Empty ${linkURL}
......
......@@ -348,5 +348,5 @@ Check Notification Endpoint
Clear Requests ${callback_endpoint}
Check LINK in Header
${linkURL}= Get Value From Json ${response.headers} $..Link
${linkURL}= Get Value From Json ${response['headers']} $..Link
Should Not Be Empty ${linkURL}
......@@ -25,7 +25,7 @@ Check Postcondition FaultManagement Subscription Is Set
Set Suite Variable ${response} ${output}
Check HTTP Response Status Code Is 200
Check Operation Occurrence Id
${opOccId}= Get Value From Json ${response.headers} $..Location
${opOccId}= Get Value From Json ${response['headers']} $..Location
Should Not Be Empty ${opOccId}
Check Postcondition VNF fault management alarms Exists
Log Checking that alarms exists
......@@ -403,7 +403,7 @@ DELETE Individual Subscription
Set Global Variable ${response} ${outputResponse}
Check LINK in Header
${linkURL}= Get Value From Json ${response.headers} $..Link
${linkURL}= Get Value From Json ${response['headers']} $..Link
Should Not Be Empty ${linkURL}
Get subscriptions with filter "id"
......
......@@ -408,7 +408,7 @@ Check Postcondition Indicators for VNF instance Exist
Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/indicators/${vnfInstanceId}
Should Be Equal ${response.status_code} 200
Should Be Equal ${response['status']} 200
Get Individual Indicator for a VNF instance
......@@ -569,5 +569,5 @@ Check Notification Endpoint
Clear Requests ${callback_endpoint}
Check LINK in Header
${linkURL}= Get Value From Json ${response.headers} $..Link
${linkURL}= Get Value From Json ${response['headers']} $..Link
Should Not Be Empty ${linkURL}
......@@ -39,7 +39,7 @@ Check Postcondition VNF Instance Created status is
[Arguments] ${status}
Check VNF Instance ${vnfInstanceId}
Check HTTP Response Status Code Is 200
Check VNF Status ${response.body.instantiationState} ${status}
Check VNF Status ${response['body']['instantiationState']} ${status}
Check Operation Notification For VNF Instance Creation
Check VNF Instance Operation Notification VnfIdentifierCreationNotification ${vnfInstanceId}
......@@ -57,7 +57,7 @@ Check Postcondition VNF Status
Check VNF Instance ${vnfInstanceId}
Should Not Be Empty ${response}
Check HTTP Response Status Code Is 200
Should Be Equal ${response.body.id} ${vnfInstanceId}
Should Be Equal ${response['body']['id']} ${vnfInstanceId}
Check HTTP Response Header Contains Content-Type
Check HTTP Response Body Json Schema Is vnfInstance.schema.json
Check VNF Status ${response.body.instantiationState} ${status}
\ No newline at end of file
Check VNF Status ${response['body']['instantiationState']} ${status}
\ No newline at end of file
......@@ -27,11 +27,11 @@ Check HTTP Response Status Code Is
Log Status code validated
Check Operation Occurrence IdS
${vnfLcmOpOccId}= Get Value From Json ${response.headers} $..Location
${vnfLcmOpOccId}= Get Value From Json ${response['headers']} $..Location
Should Not Be Empty ${vnfLcmOpOccId}
Check Operation Occurrence Id existence
${vnfLcmOpOccId}= Get Value From Json ${response.headers} $..Location
${vnfLcmOpOccId}= Get Value From Json ${response['headers']} $..Location
Should Not Be Empty ${vnfLcmOpOccId}
Check HTTP Response Body Json Schema Is
......@@ -43,12 +43,12 @@ Check HTTP Response Body Json Schema Is
Check resource Instantiated
Check VNF Instance ${vnfInstanceId}
Check HTTP Response Status Code Is 200
Check VNF Status ${response.body.instantiationState} INSTANTIATED
Check VNF Status ${response['body']['instantiationState']} INSTANTIATED
Check resource not Instantiated
Check VNF Instance ${vnfInstanceId}
Check HTTP Response Status Code Is 200
Check VNF Status ${response.body.instantiationState} NOT_INSTANTIATED
Check VNF Status ${response['body']['instantiationState']} NOT_INSTANTIATED
Check VNF Instance
[Arguments] ${vnfId}
......@@ -96,7 +96,7 @@ Get Vnf Ext Link Id
Check HTTP Response Header Contains
[Arguments] ${CONTENT_TYPE}
Should Contain ${response.headers} ${CONTENT_TYPE}
Should Contain ${response['headers']} ${CONTENT_TYPE}
Log Header is present
Send VNF Scale Out Request
......@@ -1150,5 +1150,5 @@ GET test endpoint
Clear Requests ${callback_endpoint}
Check LINK in Header
${linkURL}= Get Value From Json ${response.headers} $..Link
${linkURL}= Get Value From Json ${response['headers']} $..Link
Should Not Be Empty ${linkURL}
......@@ -158,7 +158,7 @@ Check HTTP Response Status Code Is
Log Status code validated
Check Operation Occurrence Id existence
${occId}= Get Value From Json ${response.headers} $..Location
${occId}= Get Value From Json ${response['headers']} $..Location
Should Not Be Empty ${occId}
Check HTTP Response Header Contains
......
......@@ -778,7 +778,7 @@ Check Notification Endpoint
Clear Requests ${callback_endpoint}
Check LINK in Header
${linkURL}= Get Value From Json ${response.headers} $..Link
${linkURL}= Get Value From Json ${response['headers']} $..Link
Should Not Be Empty ${linkURL}
Get all OnBoarded VNF Packages
......
......@@ -383,5 +383,5 @@ Check HTTP Response Body Json Schema Is
Log Json Schema Validation OK
Check LINK in Header
${linkURL}= Get Value From Json ${response.headers} $..Link
${linkURL}= Get Value From Json ${response['headers']} $..Link
Should Not Be Empty ${linkURL}
\ No newline at end of file
......@@ -241,6 +241,6 @@ Check HTTP Response Body Json Schema Is
Log Json Schema Validation OK
Check LINK in Header
${linkURL}= Get Value From Json ${response.headers} $..Link
${linkURL}= Get Value From Json ${response['headers']} $..Link
Should Not Be Empty ${linkURL}
......@@ -345,5 +345,5 @@ Check Notification Endpoint
Wait Until Keyword Succeeds ${total_polling_time} ${polling_interval} Verify Mock Expectation ${notification_request}
Clear Requests ${callback_endpoint}
Check LINK in Header
${linkURL}= Get Value From Json ${response.headers} $..Link
${linkURL}= Get Value From Json ${response['headers']} $..Link
Should Not Be Empty ${linkURL}
\ No newline at end of file
......@@ -178,6 +178,6 @@ Send Delete request for Virtualised Resources Quota Available Notification subsc
Set Global Variable ${response} ${outputResponse}
Check LINK in Header
${linkURL}= Get Value From Json ${response.headers} $..Link
${linkURL}= Get Value From Json ${response['headers']} $..Link
Should Not Be Empty ${linkURL}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment