Commit 0ec9147b authored by root's avatar root Committed by Michele Carignani
Browse files

bug-fixes

parent 6bb58542
......@@ -220,7 +220,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
#todo
Should Be Equal As Strings ${response[0]['body']['callbackUri']} ${POS_FILTER['callbackUri']}
Create Sessions
......
......@@ -269,4 +269,5 @@ 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
#todo
\ No newline at end of file
Should Be True "${response[0]['body']['name']}"=="${POS_FILTER['name']}" and "${response[0]['body']['vnfInstanceId']}"=="${POS_FILTER['vnfInstanceId']}"
\ No newline at end of file
......@@ -196,12 +196,16 @@ Check HTTP Response Body Json Schema Is
Check HTTP Response Body Includes Requested VNF Instance ID
Log Check Response includes Indicators according to resource identifier
#todo
Should Be Equal As Strings ${response['body']['vnfInstanceId']} ${vnfInstanceId}
Check HTTP Response Body Matches Attribute-Based Filter
Log Check Response includes VNF Indicators according to filter
#todo
Should Be Equal As Strings ${response[0]['body']['name']} ${POS_FIELDS['name']}
Check Postcondition Indicators for VNF instance Exist
Log Check Response includes VNF Indicators according to filter
#todo
Log 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
......@@ -324,7 +324,7 @@ Check HTTP Response Body Matches all_fields selector
Check HTTP Response Body Matches filter
Log Checking that attribute-based filter is matched
#todo
Should Be Equal As Strings ${response[0]['body']['objectInstanceIds']} ${POS_FILTER['objectInstanceIds']}
Check HTTP Response Body Does Not Contain reports
Log Checking that field element is missing
......
......@@ -195,7 +195,7 @@ Check Postcondition Threshold Exists
Check HTTP Response Body Thresholds match the requested attribute-based filter
Log Checking that attribute-based filter is matched
#todo
Should Be Equal As Strings ${response[0]['body']['objectInstanceId']} ${FILTER_OK['objectInstanceId']}
Check HTTP Response Status Code Is
[Arguments] ${expected_status}
......
......@@ -283,8 +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['body']['callbackUri']} ${callbackUri}
#TODO
Should Be Equal As Strings ${response[0]['body']['callbackUri']} ${callbackUri}
Check HTTP Response Body PmSubscription Attributes Values Match the Issued Subscription
Log Check Response matches subscription
......
......@@ -17,7 +17,14 @@ Check created Subscription existance
Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Get ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId}
Integer response status 200
Integer response status 200
Check Postcondition FaultManagement Subscription Is Set
Log Check Postcondition subscription exist
Set Headers {"Accept": "${ACCEPT_JSON}"}
GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${response['body']['id']}
${output}= Output response
Set Suite Variable ${response} ${output}
Check HTTP Response Status Code Is 200
Check Operation Occurrence Id
${opOccId}= Get Value From Json ${response.headers} $..Location
Should Not Be Empty ${opOccId}
......
......@@ -37,7 +37,7 @@ Create a new alarm subscription - DUPLICATION
Check HTTP Response Status Code Is 201
Check Operation Occurrence Id
Check HTTP Response Body Json Schema Is FmSubscription
Check created Subscription existance
Check Postcondition FaultManagement Subscription Is Set
Create a new alarm subscription - NO DUPLICATION
[Documentation] Test ID: 7.3.5.3.3
......
......@@ -183,7 +183,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
#TODO
Should Be Equal As Strings ${response[0]['body']['callbackUri']} ${filter_ok['callbackUri']}
Check HTTP Response Body Matches the Subscription
Log Check Response matches subscription
......@@ -329,7 +329,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
#todo
Should Be True "${response[0]['body']['name']}"=="${POS_FIELDS['name']}" and "${response[0]['body']['vnfInstanceId']}"=="${POS_FIELDS['vnfInstanceId']}"
Get all indicators for a VNF instance
Log This resource represents VNF indicators related to a VNF instance.
......@@ -397,11 +397,15 @@ Send DELETE Request for indicators in VNF instance
Check HTTP Response Body Includes Requested VNF Instances ID
Log Check Response includes Indicators according to resource identifier
#todo
Should Be Equal As Strings ${response['body']['vnfInstanceId']} ${vnfInstanceId}
Check Postcondition Indicators for VNF instance Exist
Log Check Response includes VNF Indicators according to filter
#todo
Log 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
Get Individual Indicator for a VNF instance
Log This resource represents a VNF indicator related to a VNF instance.
......
......@@ -54,7 +54,7 @@ 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
#todo
Should Be True "${response[0]['body']['vnfdId']}"=="${POS_FILTER['vnfdId']}" and "${response[0]['body']['vnfProvider']}"=="${POS_FILTER['vnfProvider']}"
GET VNF Packages with invalid attribute-based filter
Log Trying to perform a negative get, filtering by the inexistent filter 'nfvId'
......@@ -631,7 +631,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
#TODO
Should Be Equal As Strings ${response[0]['body']['callbackUri']} ${filter_ok['callbackUri']}
Check HTTP Response Body PkgmSubscription Attributes Values Match the Issued Subscription
......
......@@ -324,7 +324,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
#todo
Should Be Equal As Strings ${response[0]['body']['objectInstanceIds']} ${POS_FILTER['objectInstanceIds']}
Check HTTP Response Body Does Not Contain reports
Log Checking that field element is missing
......
......@@ -283,8 +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['body']['callbackUri']} ${callbackUri}
#TODO
Should Be Equal As Strings ${response[0]['body']['callbackUri']} ${filter_ok['callbackUri']}
Check HTTP Response Body PmSubscription Attributes Values Match the Issued Subscription
Log Check Response matches subscription
......
......@@ -147,9 +147,11 @@ Upload NSD Content as Zip file in asynchronous mode
... Reference: clause 5.4.4.3.4 - ETSI GS NFV-SOL 005 [3] v2.4.1
... Config ID: Config_prod_NFVO
... Applicability: The NFVO supports the upload of NSD contents in asynchronous mode
... Post-Conditions: none
... Post-Conditions: NSD Uploaded
Send PUT Request to upload NSD Content as zip file in asynchronous mode
Check HTTP Response Status Code Is 202
Check Post Condition NSD Content has been Uploaded
Upload NSD Content as plain text file in asynchronous mode
[Documentation] Test ID: 5.3.1.3.12
......@@ -162,6 +164,7 @@ Upload NSD Content as plain text file in asynchronous mode
... Post-Conditions: none
Send PUT Request to upload NSD Content as plain text file in asynchronous mode
Check HTTP Response Status Code Is 202
Check Post Condition NSD Content has been Uploaded
Upload NSD Content as Zip file in synchronous mode
[Documentation] Test ID: 5.3.1.3.13
......
......@@ -32,7 +32,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
#todo
GET Network Service Descriptors Information with invalid attribute-based filter
Log The GET method queries multiple NS descriptors using Attribute-based filtering parameters. Negative case, with erroneous attribute name
......@@ -421,6 +421,17 @@ Send PUT Request to upload NSD Content as plain text file in asynchronous mode
${output}= Output response
Set Suite Variable ${response} ${output}
Check Post Condition NSD Content has been Uploaded
Log Checking NsdOnboardingNotification Recieved
Wait Untill Keyword Succeeds ${retry} ${interval} Check Response is NsdOnboardingNotification
Check Response is NsdOnboardingNotification
${response}= Output response body
Should Contain ${response['headers']['Content-Type']} application/json
${schema} = NsdOnboardingNotification.schema.json
Validate Json ${schema} ${response['body']}
Log Json Schema Validation OK
Send PUT Request to upload NSD Content as zip file in synchronous mode
Log Trying to perform a PUT. This method upload the content of a NSD
Set Headers {"Accept": "${ACCEPT_ZIP}"}
......@@ -501,7 +512,6 @@ 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
#todo
GET PNF Descriptors Information with invalid attribute-based filter
Log The GET method queries multiple PNF descriptors using Attribute-based filtering parameters. Negative case, with erroneous attribute name
......@@ -888,12 +898,10 @@ Check HTTP Response Body Json Schema Is
Check HTTP Response Body Is Empty
Should Be Empty ${response['body']}
Log No json schema is provided. Validation OK
Check HTTP Response Body Subscriptions Match the requested Attribute-Based Filter
Log Check Response includes NSD Management Management according to filter
#TODO
Should Be Equal As Strings ${response[0]['body']['callbackUri']} ${filter_ok['callbackUri']}
Check HTTP Response Body NsdmSubscription Attributes Values Match the Issued Subscription
Log Check Response matches subscription
......
......@@ -37,3 +37,5 @@ ${NFVO_ALLOWS_DUPLICATE_SUBS} 1
${total_polling_time} 2 min
${polling_interval} 10 sec
${response}
${retry} 5x
${interval} 5 sec
\ No newline at end of file
......@@ -49,7 +49,6 @@ Create a new alarm subscription - NO DUPLICATION
Post Create subscription - NO-DUPLICATION
Check HTTP Response Status Code Is 303
Check Operation Occurrence Id
Check HTTP Response Body Json Schema Is FmSubscription
Retrieve a list of alarm subscriptions
[Documentation] Test ID: 5.3.3.3.4
......
......@@ -70,7 +70,7 @@ GET NSInstances with "all_fields" attribute selector
... Post-Conditions:
Get NSInstances with all_fields attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is FmSubscriptions
Check HTTP Response Body Json Schema Is NsInstances
GET NSInstances with "exclude_default" attribute selector
[Documentation] Test ID: 5.3.2.1.6
......@@ -83,7 +83,7 @@ GET NSInstances with "exclude_default" attribute selector
... Post-Conditions:
Get NSInstances with exclude_default attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is FmSubscriptions
Check HTTP Response Body Json Schema Is NsInstances
GET NSInstances with "fields" attribute selector
[Documentation] Test ID: 5.3.2.1.7
......@@ -96,7 +96,7 @@ GET NSInstances with "fields" attribute selector
... Post-Conditions:
Get NSInstances with fields attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is FmSubscriptions
Check HTTP Response Body Json Schema Is NsInstances
GET NSInstances with "exclude_fields" attribute selector
[Documentation] Test ID: 5.3.2.1.8
......@@ -109,7 +109,7 @@ GET NSInstances with "exclude_fields" attribute selector
... Post-Conditions:
Get NSInstances with exclude_fields attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is FmSubscriptions
Check HTTP Response Body Json Schema Is NsInstances
PUT NSInstances - Method not implemented
[Documentation] Test ID: 5.3.2.1.9
......
......@@ -172,7 +172,9 @@ 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
#todo
${user}= Get Value From Json ${response['body']} $..userDefinedData
Validate Json UserDefinedData.schema.json ${user[0]}
Log Validation for schema OK
Check HTTP Response Body PmJobs Do Not Contain reports
Log Checking that field element is missing
......@@ -420,7 +422,8 @@ Check Postcondition Threshold Exists
Check HTTP Response Body Thresholds match the requested attribute-based filter
Log Checking that attribute-based filter is matched
#todo
Should Be Equal As Strings ${response[0]['body']['objectInstanceId']} ${filter_ok['objectInstanceId']}
GET Individual NS performance Threshold
Log Trying to get a Threhsold present in the NFVO
......@@ -653,7 +656,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
#TODO
Should Be Equal As Strings ${response[0]['body']['callbackUri']} ${filter_ok['callbackUri']}
Check HTTP Response Body PmSubscription Attributes Values Match the Issued Subscription
......
......@@ -37,7 +37,7 @@ Get VNF Package Subscriptions with attribute-based filter
... Post-Conditions: none
Get VNF Package Subscriptions with attribute-based filters
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is PkgmSubscription
Check HTTP Response Body Json Schema Is PkgmSubscriptions
Check HTTP Response Body Subscriptions Match the requested Attribute-Based Filter
......
......@@ -59,7 +59,7 @@ 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
#todo
Should Be True "${response[0]['body']['vnfdId']}"=="${POS_FILTER['vnfdId']}" and "${response[0]['body']['vnfProvider']}"=="${POS_FILTER['vnfProvider']}"
GET VNF Packages with invalid attribute-based filter
Log Trying to perform a negative get, filtering by the inexistent filter 'nfvId'
......@@ -907,7 +907,7 @@ Check HTTP Response Body Json Schema Is
Check HTTP Response Body Subscriptions Match the requested Attribute-Based Filter
Log Check Response includes VNF Package Management according to filter
#TODO
Should Be Equal As Strings ${response[0]['body']['callbackUri']} ${filter_ok['callbackUri']}
Check HTTP Response Body Subscription Identifier matches the requested Subscription
Log Trying to check response ID
......
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