WARNING! Gitlab maintenance operation scheduled for Monday, 20 April between 12:00 and 14:00 (CET). During this time window, short service interruptions (less than 5 minutes) may occur. Thank you in advance for your understanding.
${check1}=Run Keyword And Return StatusShould Be Equal As Strings${topology_template.node_templates.${key}.type}tosca.nodes.nfv.VNF
Run Keyword If${check1}Set Global Variable${vnfKey}${key}
Get Virtual Link IDs
[Arguments]${count}
${VirtualLink_labels}=Create List
FOR${i}IN RANGE${count}
Append To List${VirtualLink_labels}${nfv.vnfd[0]['int-virtual-link-desc'][${i}]['id']}
END
Set Global Variable${VirtualLink_IDs}${VirtualLink_labels}
Get Instantiation Levels
[Arguments]${count}
@{Instantiation_Levels}=Create List
FOR${i}IN RANGE${count}
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 of Individual VNF LCM Operation occurrences content against VNF Descriptor
Run Keyword If${check_descriptors}== 1Check Individual VNF LCM Operation Occurence Content