Commit 9ae2a5b5 authored by Najam UI Hassan's avatar Najam UI Hassan Committed by Michele Carignani
Browse files

bug-fixes final list v5

parent 04481a86
......@@ -220,9 +220,9 @@ 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
Should Be Equal As Strings ${response[0]['body']['callbackUri']} ${POS_FILTER['callbackUri']}
@{words} = Split String ${POS_FILTER} ,${SEPERATOR}
Should Be Equal As Strings ${response['body'][0]['callbackUri']} @{words}[1]
Create Sessions
Pass Execution If ${VNFM_CHECKS_NOTIF_ENDPOINT} == 0 MockServer not necessary to run
Start Process java -jar ${MOCK_SERVER_JAR} -serverPort ${callback_port} alias=mockInstance
......
......@@ -269,5 +269,7 @@ 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
Should Be True "${response[0]['body']['name']}"=="${POS_FILTER['name']}" and "${response[0]['body']['vnfInstanceId']}"=="${POS_FILTER['vnfInstanceId']}"
\ No newline at end of file
@{attr} = Split String ${POS_FILTER} ,${VAR_SEPERATOR}
@{var_name} = Split String @{attr}[0] ,${SEPERATOR}
@{var_id} = Split String @{attr}[1] ,${SEPERATOR}
Should Be True "${response['body'][0]['name']}"=="@{var_name}[1]" and "${response['body'][0]['vnfInstanceId']}"=="@{var_id}[1]"
\ No newline at end of file
......@@ -200,7 +200,8 @@ 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
Should Be Equal As Strings ${response[0]['body']['name']} ${POS_FIELDS['name']}
@{words} = Split String ${POS_FIELDS} ,${SEPERATOR}
Should Be Equal As Strings ${response['body'][0]['name']} @{words}[1]
Check Postcondition Indicators for VNF instance Exist
Log Check Postcondition Indicators for VNF instance Exist
......
......@@ -7,3 +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
......@@ -4,3 +4,4 @@ ${erroneousVnfInstanceId} erroneousVnfInstanceId
${POS_FIELDS} name=vnfIndicator
${NEG_FIELDS} wrongName=any_value
${response}= httpresponse
${SEPERATOR} =
\ No newline at end of file
......@@ -3,3 +3,5 @@ ${POS_FIELDS} name=vnfIndicator&vnfInstanceId=80b0deba-c398-445b-bef0-ac0fe7
${NEG_FIELDS} wrongName=wrongValue
${response} some_response_object
${vnfIndicators}
${SEPERATOR} =
${VAR_SEPERATOR} &
\ No newline at end of file
......@@ -61,7 +61,7 @@ GET Subscriptions
GET Subscription - Filter
[Documentation] Test ID: 6.3.5.17.5
... Test title: GET Subscriptions - Filter
... Test objective: The objective is Get the list of active subscriptions using a filter
... Test objective: The objective is Get the list of active subscriptions using a "filter"
... Pre-conditions: none
... Reference: clause 5.4.18.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Config ID: Config_prod_VE
......
......@@ -324,7 +324,8 @@ Check HTTP Response Body Matches all_fields selector
Check HTTP Response Body Matches filter
Log Checking that attribute-based filter is matched
Should Be Equal As Strings ${response[0]['body']['objectInstanceIds']} ${POS_FILTER['objectInstanceIds']}
@{words} = Split String ${POS_FILTER} ,${SEPERATOR}
Should Be Equal As Strings ${response['body'][0]['objectInstanceIds']} @{words}[1]
Check HTTP Response Body Does Not Contain reports
Log Checking that field element is missing
......
......@@ -195,7 +195,8 @@ Check Postcondition Threshold Exists
Check HTTP Response Body Thresholds match the requested attribute-based filter
Log Checking that attribute-based filter is matched
Should Be Equal As Strings ${response[0]['body']['objectInstanceId']} ${FILTER_OK['objectInstanceId']}
@{words} = Split String ${FILTER_OK} ,${SEPERATOR}
Should Be Equal As Strings ${response['body'][0]['objectInstanceId']} @{words}[1]
Check HTTP Response Status Code Is
[Arguments] ${expected_status}
......
......@@ -283,7 +283,7 @@ Check HTTP Response Body Is Empty
Check HTTP Response Body Subscriptions Match the requested Attribute-Based Filter
Log Check Response includes VNF Performance Management according to filter
Should Be Equal As Strings ${response[0]['body']['callbackUri']} ${callbackUri}
Should Be Equal As Strings ${response['body'][0]['callbackUri']} ${callbackUri_Sub}
Check HTTP Response Body PmSubscription Attributes Values Match the Issued Subscription
Log Check Response matches subscription
......
......@@ -3,3 +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
*** Variables ***
${callbackUri} http://172.22.1.7:9091/vnfpm/subscriptions
${filter_ok} callbackUri=${callbackUri}
${callbackUri_Sub} http://172.22.1.7:9091/vnfpm/subscriptions
${filter_ok} callbackUri=${callbackUri_Sub}
${filter_ko} erroneousFilter=erroneous
${total_polling_time} 2 min
${polling_interval} 10 sec
......
......@@ -2,3 +2,4 @@
${FILTER_OK} objectInstanceId=1f50d68b-82e8-4deb-bd40-c934d4d1ac0a
${FILTER_KO} criterias=erroneousFilter
${response}= httpresponse
${SEPERATOR} =
\ No newline at end of file
......@@ -12,7 +12,7 @@ Library Process
${original_etag} 1234
*** Keywords ***
Check created Subscription existance
Check created Subscription existence
${subscriptionId} = ${response['body']['id']}
Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
......
......@@ -21,7 +21,7 @@ Create a new Fault Management alarm subscription
Check HTTP Response Status Code Is 201
Check Operation Occurrence Id
Check HTTP Response Body Json Schema Is FmSubscription
Check created Subscription existance
Check created Subscription existence
Create a new alarm subscription - DUPLICATION
......
......@@ -329,8 +329,11 @@ 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
Should Be True "${response[0]['body']['name']}"=="${POS_FIELDS['name']}" and "${response[0]['body']['vnfInstanceId']}"=="${POS_FIELDS['vnfInstanceId']}"
@{attr} = Split String ${POS_FIELDS} ,${VAR_SEPERATOR}
@{var_name} = Split String @{attr}[0] ,${SEPERATOR}
@{var_id} = Split String @{attr}[1] ,${SEPERATOR}
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
Log This resource represents VNF indicators related to a VNF instance.
Set Headers {"Accept": "${ACCEPT_JSON}"}
......
*** Variables ***
${POS_FIELDS} name=vnfIndicator&vnfInstanceId=80b0deba-c398-445b-bef0-ac0fe733e3d0
${NEG_FIELDS} wrongName=wrongValue
${SEPERATOR} =
${VAR_SEPERATOR} &
\ No newline at end of file
......@@ -66,7 +66,7 @@ PATCH Individual VNFInstance
PATCH Individual VNFInstance Precondition failed
[Documentation] Test ID: 7.3.1.2.5
... Test title: PATCH Individual VNFInstance Precondition failed
... Test objective: The objective is to create a new VNF instance resource
... Test objective: The objective is to test that PATCH method is not allowed to modify VNF Instance because pre-condition failed
... Pre-conditions: VNF Instance is already created (Test ID 7.3.1.2.2)
... Reference: clause 5.4.3.3.4 - ETSI GS NFV-SOL 003 [1] v2.4.1
... Config ID: Config_prod_VNFM
......
......@@ -54,7 +54,10 @@ 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
Should Be True "${response[0]['body']['vnfdId']}"=="${POS_FILTER['vnfdId']}" and "${response[0]['body']['vnfProvider']}"=="${POS_FILTER['vnfProvider']}"
@{attr} = Split String ${POS_FILTER} ,${VAR_SEPERATOR}
@{var_id} = Split String @{attr}[0] ,${SEPERATOR}
@{var_provider} = Split String @{attr}[1] ,${SEPERATOR}
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
Log Trying to perform a negative get, filtering by the inexistent filter 'nfvId'
......@@ -631,8 +634,8 @@ 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
Should Be Equal As Strings ${response[0]['body']['callbackUri']} ${filter_ok['callbackUri']}
@{words} = Split String ${filter_ok} ,${SEPERATOR}
Should Be Equal As Strings ${response['body'][0]['callbackUri']} @{words}[1]
Check HTTP Response Body PkgmSubscription Attributes Values Match the Issued Subscription
Log Check Response matches subscription
......
......@@ -4,3 +4,4 @@ ${filter_ko} nfvId=f9f130e4-05eb-4082-a676-4c97d13a883d # Not existant f
${callbackUri} http://172.22.1.7:9091/vnfpkgm/subscriptions
${total_polling_time} 2 min
${polling_interval} 10 sec
${SEPERATOR} =
\ No newline at end of file
Markdown is supported
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