Append To List${Instantiation_Levels}${nfv.vnfd[0].df.instantiation_level[${i}].id}
END
Set Global Variable${InstantiationLevel_IDs}${Instantiation_Levels}
Match the VNF Instance Response Attributes with Descriptors
#Checking Response attributes with VNF Descriptors
Should Be Equal As Strings${response['body']['vnfdId']}${Descriptor_ID}
Should Be Equal As Strings${response['body']['vnfProvider']}${Provider}
Should Be Equal As Strings${response['body']['vnfProductName']}${Product_Name}
Should Be Equal As Strings${response['body']['vnfSoftwareVesion']}${Software_Version}
Should Be Equal As Strings${response['body']['vnfdVersion']}${Descriptor_Version}
Should Be Equal As Strings${response['body']['instantiatedVnfInfo']['flavourId']}${Flavour_ID}
List Should Contain Value${VDU_IDs}${response['body']['instantiatedVnfInfo']['vnfcResourceInfo']['vduId']}
Run Keyword If'${descriptorType}'=='SOL006'List Should Contain Value${externalCP_IDs}${response['body']['instantiatedVnfInfo']['extCpInfo']['cpdId']}
Run Keyword If'${descriptorType}'=='SOL006'List Should Contain Value${internalCP_IDs}${response['body']['instantiatedVnfInfo']['vnfcResourceInfo']['vnfcCpInfo']['cpdId']}
Run Keyword If'${descriptorType}'=='SOL001'List Should Contain Value@{CP_IDs}${response['body']['instantiatedVnfInfo']['extCpInfo']['cpdId']}
Run Keyword If'${descriptorType}'=='SOL001'List Should Contain Value@{CP_IDs}${response['body']['instantiatedVnfInfo']['vnfcResourceInfo']['vnfcCpInfo']['cpdId']}
List Should Contain value${Storage_IDs}${response['body']['instantiatedVnfInfo']['virtualStorageResourceInfo']['virtualStorageDescId']}
List Should Contain Value${VirtualLink_IDs}${response['body']['instantiatedVnfInfo']['extManagedVirtualLinkInfo']['vnfVirtualLinkDescId']}
Check HTTP Response Body vnf LCM OpOCCs content against VNF Descriptor
#{check_multiple_instances} flag, set to 1 to check multiple instances against descriptors
Run Keyword If${check_multiple_instances}== 1Check Multiple VNF LCM OpOCCs Content
Check Multiple VNF LCM OpOCCs Content
#${number_of_instances}= Get Length ${response['body']}
#FOR ${i} IN RANGE ${number_of_instances}
${response['body']}=Get Variable Value${response['body'][0]}#Gets the first instance at index 0