*** Keywords ***
Get VNFDs List
${rc} ${stdout}= Run and Return RC and Output osm vnfpkg-list
- log ${stdout}
- log ${rc}
+ Log ${stdout}
+ Log ${rc}
Should Be Equal As Integers ${rc} ${success_return_code}
# Proceedes with the onboarding with the appropriate arguments
${rc} ${stdout}= Run and Return RC and Output osm vnfpkg-create ${overrides} ${vnfd_pkg}
- log ${stdout}
+ Log ${stdout}
Should Be Equal As Integers ${rc} ${success_return_code}
${lines}= Get Line Count ${stdout}
${last}= Evaluate ${lines} - 1
# Proceedes with the onboarding with the appropriate arguments
${rc} ${stdout}= Run and Return RC and Output osm vnfpkg-update --content ${vnfd_pkg} ${vnfd_name}
- log ${stdout}
+ Log ${stdout}
Should Be Equal As Integers ${rc} ${success_return_code}
${lines}= Get Line Count ${stdout}
${last}= Evaluate ${lines} - 1
# Proceedes with the onboarding with the appropriate arguments
${rc} ${stdout}= Run and Return RC and Output osm vnfpkg-create ${overrides} ${vnfd_pkg} --override '${override_fields}'
- log ${stdout}
+ Log ${stdout}
Should Be Equal As Integers ${rc} ${success_return_code}
${lines}= Get Line Count ${stdout}
${last}= Evaluate ${lines} - 1
[Arguments] ${vnfd_id}
${rc} ${stdout}= Run and Return RC and Output osm vnfpkg-delete ${vnfd_id}
- log ${stdout}
+ Log ${stdout}
Should Be Equal As Integers ${rc} ${success_return_code}
WAIT UNTIL KEYWORD SUCCEEDS ${delete_max_wait_time} ${delete_pol_time} Check For VNFD ${vnfd_id}
[Arguments] ${vnfd_id}
${rc} ${stdout}= Run and Return RC and Output osm vnfpkg-delete ${vnfd_id}
- log ${stdout}
+ Log ${stdout}
Should Be Equal As Integers ${rc} ${failure_return_code}
Should Contain ${stdout} 409 msg=Expected Conflict values=False
WAIT UNTIL KEYWORD SUCCEEDS ${delete_max_wait_time} ${delete_pol_time} Check For VNFD ${vnfd_id} True