X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Flib%2Fopenstack_lib.robot;h=c335963e6a9607ac88fe162fbff9c0fefe4f6a35;hb=44c59336599f1e0e58fe8a8ed78a5cd335419dad;hp=d544bb5c1be79c3b7ab5c1ff3ce523354735178d;hpb=dd1b09d71863817370cf0740c00632326ea7eb6f;p=osm%2Ftests.git diff --git a/robot-systest/lib/openstack_lib.robot b/robot-systest/lib/openstack_lib.robot index d544bb5..c335963 100644 --- a/robot-systest/lib/openstack_lib.robot +++ b/robot-systest/lib/openstack_lib.robot @@ -103,3 +103,24 @@ Delete Volume log ${stdout} Should Be Equal As Integers ${rc} ${success_return_code} [Return] ${stdout} + + +Stop Server + [Documentation] Stop a server + [Arguments] ${server_id} + + Should Not Be Empty ${server_id} + ${rc} ${stdout}= Run and Return RC and Output openstack server stop ${server_id} + log ${stdout} + Should Be Equal As Integers ${rc} ${success_return_code} + [Return] ${stdout} + +Halt Server + [Documentation] Reset a server + [Arguments] ${server_id} + + Should Not Be Empty ${server_id} + ${rc} ${stdout}= Run and Return RC and Output openstack server set --state error ${server_id} + log ${stdout} + Should Be Equal As Integers ${rc} ${success_return_code} + [Return] ${stdout}