Updated deprecated command-line osm commands: vnfd-, nsd-
[osm/tests.git] / robot-systest / lib / vnfd_lib.robot
index 5785172..8251cb2 100644 (file)
@@ -34,7 +34,7 @@ ${delete_pol_time}   15sec
 
 *** Keywords ***
 Get VNFDs List
-    ${rc}   ${stdout}=   Run and Return RC and Output   osm vnfd-list
+    ${rc}   ${stdout}=   Run and Return RC and Output   osm vnfpkg-list
     log   ${stdout}
     log   ${rc}
     Should Be Equal As Integers   ${rc}   ${success_return_code}
@@ -61,7 +61,7 @@ Create VNFD
     ${overrides}=   Get Environment Variable    OVERRIDES   default=${overrides}
 
     # Proceedes with the onboarding with the appropriate arguments
-    ${rc}   ${stdout}=   Run and Return RC and Output   osm vnfd-create ${overrides} ${vnfd_pkg}
+    ${rc}   ${stdout}=   Run and Return RC and Output   osm vnfpkg-create ${overrides} ${vnfd_pkg}
     log   ${stdout}
     Should Be Equal As Integers   ${rc}   ${success_return_code}
     ${lines}=  Get Line Count  ${stdout}
@@ -73,7 +73,7 @@ Create VNFD
 Delete VNFD
     [Arguments]   ${vnfd_id}
 
-    ${rc}   ${stdout}=   Run and Return RC and Output   osm vnfd-delete ${vnfd_id}
+    ${rc}   ${stdout}=   Run and Return RC and Output   osm vnfpkg-delete ${vnfd_id}
     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}
@@ -82,5 +82,5 @@ Delete VNFD
 Check For VNFD
     [Arguments]   ${vnfd_id}
 
-    ${rc}   ${stdout}=   Run and Return RC and Output   osm vnfd-list | awk '{print $2}' | grep ${vnfd_id}
+    ${rc}   ${stdout}=   Run and Return RC and Output   osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id}
     Should Not Be Equal As Strings   ${stdout}   ${vnfd_id}