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

Fix issue #155

parent 02d14ee1
......@@ -254,7 +254,7 @@ Check Postcondition VNF Indicator Subscription Is Set
Check HTTP Response Body Subscriptions Match the requested Attribute-Based Filter
Log Check Response includes VNF Indicators according to filter
@{words} = Split String ${POS_FILTER} ,${SEPERATOR}
@{words} = Split String ${POS_FILTER} ${SEPARATOR}
Should Be Equal As Strings ${response['body'][0]['callbackUri']} @{words}[1]
Create Sessions
......
......@@ -296,9 +296,9 @@ Check Postcondition VNF Indicators Exist
Check HTTP Response Body vnfIndicators Matches the requested attribute-based filter
Log Check Response includes VNF Indicators according to filter
@{attr} = Split String ${POS_FILTER} ,${VAR_SEPERATOR}
@{var_name} = Split String @{attr}[0] ,${SEPERATOR}
@{var_id} = Split String @{attr}[1] ,${SEPERATOR}
@{attr} = Split String ${POS_FILTER} ${VAR_SEPARATOR}
@{var_name} = Split String @{attr}[0] ${SEPARATOR}
@{var_id} = Split String @{attr}[1] ${SEPARATOR}
Should Be True "${response['body'][0]['name']}"=="@{var_name}[1]" and "${response['body'][0]['vnfInstanceId']}"=="@{var_id}[1]"
Check LINK in Header
......
......@@ -227,7 +227,7 @@ Check HTTP Response Body Includes Requested VNF Instance ID
Check HTTP Response Body Matches Attribute-Based Filter
Log Check Response includes VNF Indicators according to filter
@{words} = Split String ${POS_FIELDS} ,${SEPERATOR}
@{words} = Split String ${POS_FIELDS} ${SEPARATOR}
Should Be Equal As Strings ${response['body'][0]['name']} @{words}[1]
Check Postcondition Indicators for VNF instance Exist
......
......@@ -7,4 +7,4 @@ ${NEG_FILTER} callback=http://127.0.0.1/subscribe
${response}= httpresponse
${total_polling_time} 2 min
${polling_interval} 10 sec
${SEPERATOR} =
\ No newline at end of file
${SEPARATOR} =
\ No newline at end of file
......@@ -4,4 +4,4 @@ ${erroneousVnfInstanceId} erroneousVnfInstanceId
${POS_FIELDS} name=vnfIndicator
${NEG_FIELDS} wrongName=any_value
${response}= httpresponse
${SEPERATOR} =
\ No newline at end of file
${SEPARATOR} =
\ No newline at end of file
......@@ -3,6 +3,6 @@ ${POS_FIELDS} name=vnfIndicator&vnfInstanceId=80b0deba-c398-445b-bef0-ac0fe7
${NEG_FIELDS} wrongName=wrongValue
${response} some_response_object
${vnfIndicators} =
${SEPERATOR} =
${VAR_SEPERATOR} &
${SEPARATOR} =
${VAR_SEPARATOR} &
${POS_FILTER} =
\ No newline at end of file
......@@ -352,7 +352,7 @@ Check HTTP Response Body Matches all_fields selector
Check HTTP Response Body Matches filter
Log Checking that attribute-based filter is matched
@{words} = Split String ${POS_FILTER} ,${SEPERATOR}
@{words} = Split String ${POS_FILTER} ${SEPARATOR}
Should Be Equal As Strings ${response['body'][0]['objectInstanceIds']} @{words}[1]
Check HTTP Response Body Does Not Contain reports
......
......@@ -222,7 +222,7 @@ Check Postcondition Threshold Exists
Check HTTP Response Body Thresholds match the requested attribute-based filter
Log Checking that attribute-based filter is matched
@{words} = Split String ${FILTER_OK} ,${SEPERATOR}
@{words} = Split String ${FILTER_OK} ${SEPARATOR}
Should Be Equal As Strings ${response['body'][0]['objectInstanceId']} @{words}[1]
Check HTTP Response Status Code Is
......
......@@ -3,4 +3,4 @@ ${POS_FILTER} objectInstanceIds=1f50d68b-82e8-4deb-bd40-c934d4d1ac0a
${NEG_FILTER} criteriaPmJob=erroneousAttributeName
${fields} criteria,reports
${response}= httpresponse
${SEPERATOR} =
\ No newline at end of file
${SEPARATOR} =
\ No newline at end of file
......@@ -2,4 +2,4 @@
${FILTER_OK} objectInstanceId=1f50d68b-82e8-4deb-bd40-c934d4d1ac0a
${FILTER_KO} criterias=erroneousFilter
${response}= httpresponse
${SEPERATOR} =
\ No newline at end of file
${SEPARATOR} =
\ No newline at end of file
......@@ -334,9 +334,9 @@ Check Postcondition VNF Indicators Exist
Check HTTP Response Body vnfIndicators Matches the requested attribute-based filter
Log Check Response includes VNF Indicators according to filter
@{attr} = Split String ${POS_FIELDS} ,${VAR_SEPERATOR}
@{var_name} = Split String @{attr}[0] ,${SEPERATOR}
@{var_id} = Split String @{attr}[1] ,${SEPERATOR}
@{attr} = Split String ${POS_FIELDS} ${VAR_SEPARATOR}
@{var_name} = Split String @{attr}[0] ${SEPARATOR}
@{var_id} = Split String @{attr}[1] ${SEPARATOR}
Should Be True "${response['body'][0]['name']}"=="@{var_name}[1]" and "${response['body'][0]['vnfInstanceId']}"=="@{var_id}[1]"
Get all indicators for a VNF instance
......
*** Variables ***
${POS_FIELDS} name=vnfIndicator&vnfInstanceId=80b0deba-c398-445b-bef0-ac0fe733e3d0
${NEG_FIELDS} wrongName=wrongValue
${SEPERATOR} =
${VAR_SEPERATOR} &
\ No newline at end of file
${VAR_SEPARATOR} &
${SEPARATOR} =
\ No newline at end of file
......@@ -55,9 +55,9 @@ GET VNF Packages with attribute-based filter
Check HTTP Response Body VnfPkgsInfo Matches the requested Attribute-Based Filter
Log Checking that attribute-based filter is matched
@{attr} = Split String ${POS_FILTER} ,${VAR_SEPERATOR}
@{var_id} = Split String @{attr}[0] ,${SEPERATOR}
@{var_provider} = Split String @{attr}[1] ,${SEPERATOR}
@{attr} = Split String ${POS_FILTER} ${VAR_SEPARATOR}
@{var_id} = Split String @{attr}[0] ${SEPARATOR}
@{var_provider} = Split String @{attr}[1] ${SEPARATOR}
Should Be True "${response['body'][0]['vnfdId']}"=="@{var_id}[1]" and "${response['body'][0]['vnfProvider']}"=="@{var_provider}[1]"
GET VNF Packages with invalid attribute-based filter
......@@ -664,7 +664,7 @@ Check HTTP Response Body Is Empty
Check HTTP Response Body Subscriptions Match the requested Attribute-Based Filter
Log Check Response includes VNF Package Management according to filter
@{words} = Split String ${filter_ok} ,${SEPERATOR}
@{words} = Split String ${filter_ok} ${SEPARATOR}
Should Be Equal As Strings ${response['body'][0]['callbackUri']} @{words}[1]
Check HTTP Response Body PkgmSubscription Attributes Values Match the Issued Subscription
......
......@@ -3,5 +3,5 @@ ${POS_FILTER} vnfdId=41fdd38a-3d4c-465c-83e0-f80e014425f8 ,vnfProvider=NXW
${NEG_FILTER} nfvId=41fdd38a-3d4c-465c-83e0-f80e014425f8 # Negative case, using wrong name of field
${fields} softwareImages,additionalArtifacts
${response} httpresponse
${SEPERATOR} =
${VAR_SEPERATOR} &
\ No newline at end of file
${SEPARATOR} =
${VAR_SEPARATOR} &
\ No newline at end of file
......@@ -351,7 +351,7 @@ Check HTTP Response Body PmJobs Matches the requested all_fields selector
Check HTTP Response Body PmJobs Matches the requested Attribute-Based Filter
Log Checking that attribute-based filter is matched
@{words} = Split String ${POS_FILTER} ,${SEPERATOR}
@{words} = Split String ${POS_FILTER} ${SEPARATOR}
Should Be Equal As Strings ${response['body'][0]['objectInstanceIds']} @{words}[1]
Check HTTP Response Body Does Not Contain reports
......
......@@ -3,4 +3,4 @@ ${POS_FILTER} objectInstanceIds=1f50d68b-82e8-4deb-bd40-c934d4d1ac0a
${NEG_FILTER} criteriaPmJob=erroneousAttributeName
${fields} criteria,objectInstanceIds
${response} httpresponse
${SEPERATOR} =
\ No newline at end of file
${SEPARATOR} =
\ No newline at end of file
......@@ -34,7 +34,7 @@ GET Network Service Descriptors Information with attribute-based filter
Check HTTP Response Body NsdInfos Matches the requested attribute-based filter
Log Checking that attribute-based filter is matched
@{words} = Split String ${NSD_NAME} ,${SEPERATOR}
@{words} = Split String ${NSD_NAME} ${SEPARATOR}
Should Be Equal As Strings ${response['body'][0]['nsdName']} @{words}[1]
GET Network Service Descriptors Information with invalid attribute-based filter
......@@ -509,7 +509,7 @@ GET PNF Descriptors Information with attribute-based filter
Check HTTP Response Body PnfdInfos Matches the requested attribute-based filter
Log Checking that attribute-based filter is matched
@{words} = Split String ${PNFD_NAME} ,${SEPERATOR}
@{words} = Split String ${PNFD_NAME} ${SEPARATOR}
Should Be Equal As Strings ${response['body'][0]['pnfdName']} @{words}[1]
GET PNF Descriptors Information with invalid attribute-based filter
......@@ -918,7 +918,7 @@ Check HTTP Response Body Is Empty
Check HTTP Response Body Subscriptions Match the requested Attribute-Based Filter
Log Check Response includes NSD Management Management according to filter
@{words} = Split String ${filter_ok} ,${SEPERATOR}
@{words} = Split String ${filter_ok} ${SEPARATOR}
Should Be Equal As Strings ${response['body'][0]['callbackUri']} @{words}[1]
Check HTTP Response Body NsdmSubscription Attributes Values Match the Issued Subscription
......
......@@ -31,4 +31,4 @@ ${length} 1024
${createdNsdInfoId} f27200b1-1d8b-48c2-9d98-a993b8ab117f
${NSD_NAME} nsdName=onBoardedNSD
${PNFD_NAME} pnfdName=onBoardedPNFD
${SEPERATOR} =
${SEPARATOR} =
*** Variables ***
${filter_ok} callbackUri=http://172.22.1.7:9091/nsd/subscriptions
${filter_ko} nfvId=f9f130e4-05eb-4082-a676-4c97d13a883d # Not existant filter attribute-based
${SEPERATOR} =
\ No newline at end of file
......@@ -423,7 +423,7 @@ Check Postcondition Threshold Exists
Check HTTP Response Body Thresholds match the requested attribute-based filter
Log Checking that attribute-based filter is matched
@{words} = Split String ${FILTER_OK_Threshold} ,${SEPERATOR}
@{words} = Split String ${FILTER_OK_Threshold} ${SEPARATOR}
Should Be Equal As Strings ${response['body'][0]['objectInstanceId']} @{words}[1]
......@@ -673,7 +673,7 @@ Check HTTP Response Body Is Empty
Check HTTP Response Body Subscriptions Match the requested Attribute-Based Filter
Log Check Response includes NS Package Management according to filter
@{words} = Split String ${filter_ok} ,${SEPERATOR}
@{words} = Split String ${filter_ok} ${SEPARATOR}
Should Be Equal As Strings ${response['body'][0]['callbackUri']} @{words}[1]
Check HTTP Response Body PmSubscription Attributes Values Match the Issued Subscription
......
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