X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=robot-systest%2Flib%2Fvnfd_lib.robot;h=2d50170465831ba8c5831f554de155cc799cf6d8;hb=6cd74807debed3f4414da8b4d3fc4c17b1b56c14;hp=f1cc95ea3a4d9d9666ac80a13d0c18afd981fda2;hpb=90e287af9f44412009affa25f2415c6bbffd2abb;p=osm%2Ftests.git diff --git a/robot-systest/lib/vnfd_lib.robot b/robot-systest/lib/vnfd_lib.robot index f1cc95e..2d50170 100644 --- a/robot-systest/lib/vnfd_lib.robot +++ b/robot-systest/lib/vnfd_lib.robot @@ -71,6 +71,24 @@ Create VNFD [Return] ${id} +Update VNFD + [Documentation] Onboards ("Updates") a NF Package into OSM. + ... - Parameters: + ... - vnfd_pkg: Name (and location) of the NF Package + ... - vnfd_name: Name of the existing NF Package + + [Arguments] ${vnfd_pkg} ${vnfd_name} + + # 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} + Should Be Equal As Integers ${rc} ${success_return_code} + ${lines}= Get Line Count ${stdout} + ${last}= Evaluate ${lines} - 1 + ${id}= Get Line ${stdout} ${last} + [Return] ${id} + + Create VNFD Overriding Fields [Documentation] Onboards ("creates") a NF Package into OSM. ... - Parameters: