X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Flib%2Fopenstack_lib.robot;h=c72892e41c55136688d264040d683a9f40f1fcd8;hb=ceb1cb4895ab114adf256eafccacb7acb4621fc3;hp=cd03eb8c027388f0bca988eccffabe67b008f52d;hpb=3422ec3dae4cb95c855f8809e70a126ae6d23558;p=osm%2Ftests.git diff --git a/robot-systest/lib/openstack_lib.robot b/robot-systest/lib/openstack_lib.robot index cd03eb8..c72892e 100644 --- a/robot-systest/lib/openstack_lib.robot +++ b/robot-systest/lib/openstack_lib.robot @@ -46,3 +46,15 @@ Check NS Servers In VIM @{servers} = Split String ${stdout} ${n_servers}= Get Length ${servers} Should Be Equal As Integers ${number} ${n_servers} + + +Get Project Quota + [Documentation] Get a field (ram, cores, ports, etc.) from quota in current project. + [Arguments] ${field} + + Should Not Be Empty ${field} + ${rc} ${stdout}= Run and Return RC and Output openstack quota show -c ${field} -f value + log ${stdout} + Should Be Equal As Integers ${rc} ${success_return_code} + [Return] ${stdout} +