From 1adc7f91ba536c2f4c71410738fe2d26bbf7866e Mon Sep 17 00:00:00 2001 From: root <root@DESKTOP-A5SJGL5.localdomain> Date: Wed, 12 Feb 2020 10:23:35 +0500 Subject: [PATCH] bug-fixes --- .../VnfIndicatorsInVnfInstanceId.robot | 2 +- .../VNFIndicatorsKeywords.robot | 2 +- .../NSDManagementKeywords.robot | 22 ++++++++----------- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/SOL002/VNFIndicator-API/VnfIndicatorsInVnfInstanceId.robot b/SOL002/VNFIndicator-API/VnfIndicatorsInVnfInstanceId.robot index c4810ff3..79a4b97c 100644 --- a/SOL002/VNFIndicator-API/VnfIndicatorsInVnfInstanceId.robot +++ b/SOL002/VNFIndicator-API/VnfIndicatorsInVnfInstanceId.robot @@ -196,7 +196,7 @@ 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 - Should Be Equal As Strings ${response['body'][0]['vnfInstanceId']} ${vnfInstanceId} + 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 diff --git a/SOL003/VNFIndicator-API/VNFIndicatorsKeywords.robot b/SOL003/VNFIndicator-API/VNFIndicatorsKeywords.robot index 0772a4eb..4b1e7758 100644 --- a/SOL003/VNFIndicator-API/VNFIndicatorsKeywords.robot +++ b/SOL003/VNFIndicator-API/VNFIndicatorsKeywords.robot @@ -397,7 +397,7 @@ 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 - Should Be Equal As Strings ${response['body'][0]['vnfInstanceId']} ${vnfInstanceId} + Should Be Equal As Strings ${response['body']['vnfInstanceId']} ${vnfInstanceId} Check Postcondition Indicators for VNF instance Exist Log Check Postcondition Indicators for VNF instance Exist diff --git a/SOL005/NSDManagement-API/NSDManagementKeywords.robot b/SOL005/NSDManagement-API/NSDManagementKeywords.robot index f8273712..94c38ed2 100644 --- a/SOL005/NSDManagement-API/NSDManagementKeywords.robot +++ b/SOL005/NSDManagement-API/NSDManagementKeywords.robot @@ -421,17 +421,8 @@ 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 - +==== BASE ==== +==== BASE ==== 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}"} @@ -512,7 +503,9 @@ 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 - Should Be Equal As Strings ${response['body'][0]['pnfdName']} ${PNFD_NAME['pnfdName']} +==== BASE ==== + #todo +==== BASE ==== 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 @@ -902,7 +895,10 @@ 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 - Should Be Equal As Strings ${response['body'][0]['callbackUri']} ${filter_ok['callbackUri']} +==== BASE ==== + #TODO + +==== BASE ==== Check HTTP Response Body NsdmSubscription Attributes Values Match the Issued Subscription Log Check Response matches subscription -- GitLab