X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Flib%2Fopenstack_lib.robot;fp=robot-systest%2Flib%2Fopenstack_lib.robot;h=d544bb5c1be79c3b7ab5c1ff3ce523354735178d;hb=dd1b09d71863817370cf0740c00632326ea7eb6f;hp=884ec4f6eb387fffb1a07181f9cf43f506ceac4a;hpb=f25782945b1e3db0a2442c572a5f8607bb42460e;p=osm%2Ftests.git diff --git a/robot-systest/lib/openstack_lib.robot b/robot-systest/lib/openstack_lib.robot index 884ec4f..d544bb5 100644 --- a/robot-systest/lib/openstack_lib.robot +++ b/robot-systest/lib/openstack_lib.robot @@ -71,6 +71,18 @@ Get Server Property [Return] ${stdout} +Check VM In Server Group + [Documentation] Check if a given server is included in an Openstack server group + [Arguments] ${server_id} ${server_group_name} + + Should Not Be Empty ${server_group_name} + Should Not Be Empty ${server_id} + ${rc} ${stdout}= Run and Return RC and Output openstack server group show ${server_group_name} -c members -f value + log ${stdout} + Should Be Equal As Integers ${rc} ${success_return_code} + Should Contain ${stdout} ${server_id} + + Check If Volume Exists [Documentation] Checks if a volume id exists [Arguments] ${volume_id}