Should Be Equal As Strings${response['body']['vnfInstance']['vnfdId']}${descriptor_id}
Should Be Equal As Strings${response['body']['vnfInstance']['vnfProvider']}${provider}
Should Be Equal As Strings${response['body']['vnfInstance']['vnfProductName']}${product_name}
Should Be Equal As Strings${response['body']['vnfInstance']['vnfSoftwareVesion']}${software_version}
Should Be Equal As Strings${response['body']['vnfInstance']['vnfdVersion']}${descriptor_version}
Should Be Equal As Strings${response['body']['vnfInstance']['instantiatedVnfInfo']['extCpInfo']['cpdId']}${external_cp}
Should Be Equal As Strings${response['body']['vnfInstance']['instantiatedVnfInfo']['vnfcResourceInfo']['vduId']}${vdu_id}
Should Be Equal As Strings${response['body']['vnfInstance']['instantiatedVnfInfo']['extCpInfo']['cpdId']}${vdu_cpid}
Should Be Equal As Strings${response['body']['vnfInstance']['instantiatedVnfInfo']['virtualStorageResourceInfo']['virtualStorageDescId']}${virtual_storage}
Should Be Equal As Strings${response['body']['vnfInstance']['instantiatedVnfInfo']['extManagedVirtualLinkInfo']['vnfVirtualLinkDescId']}${virtual_link}
Append To List${internal_CPs}${nfv.vnfd[0].vdu[${vdu}].int_cpd[${i}].id}
END
Set Global Variable${internalCP_IDs}${internal_CPs}
Get External CP IDs
[Arguments]${count}
@{external_CPs}=Create List
FOR${i}IN RANGE${count}
Append To List${external_CPs}${nfv.vnfd[0].ext_cpd[${i}].id}
END
Set Global Variable${externalCP_IDs}${external_CPs}
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 Response Attributes with Descriptors
#Checking Response attributes with VNF Descriptors
Should Be Equal As Strings${response['body']['vnfInstance']['vnfdId']}${Descriptor_ID}
Should Be Equal As Strings${response['body']['vnfInstance']['vnfProvider']}${Provider}
Should Be Equal As Strings${response['body']['vnfInstance']['vnfProductName']}${Product_Name}
Should Be Equal As Strings${response['body']['vnfInstance']['vnfSoftwareVesion']}${Software_Version}
Should Be Equal As Strings${response['body']['vnfInstance']['vnfdVersion']}${Descriptor_Version}
Should Be Equal As Strings${response['body']['vnfInstance']['instantiatedVnfInfo']['flavourId']}${Flavour_ID}
List Should Contain Value${VDU_IDs}${response['body']['vnfInstance']['instantiatedVnfInfo']['vnfcResourceInfo']['vduId']}
Run Keyword If'${descriptorType}'=='SOL006'List Should Contain Value${externalCP_IDs}${response['body']['vnfInstance']['instantiatedVnfInfo']['extCpInfo']['cpdId']}
Run Keyword If'${descriptorType}'=='SOL006'List Should Contain Value${internalCP_IDs}${response['body']['vnfInstance']['instantiatedVnfInfo']['extCpInfo']['cpdId']}
Run Keyword If'${descriptorType}'=='SOL001'List Should Contain Value@{CP_IDs}${response['body']['vnfInstance']['instantiatedVnfInfo']['extCpInfo']['cpdId']}
List Should Contain value${Storage_IDs}${response['body']['vnfInstance']['instantiatedVnfInfo']['virtualStorageResourceInfo']['virtualStorageDescId']}
List Should Contain Value${VirtualLink_IDs}${response['body']['vnfInstance']['instantiatedVnfInfo']['extManagedVirtualLinkInfo']['vnfVirtualLinkDescId']}
POST New nsInstance with DISABLED nsd
LogCreate NS instance by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/ns_instances
@@ -518,9 +603,9 @@ POST scale nsInstance
Set Headers{"Accept":"${ACCEPT}"}
Set Headers{"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
Run Keyword If${check_descriptors}== 1Add VNF Descriptor Content to NS Instance
Run Keyword If${check_descriptors}== 1PARSE the Descriptor File