FAIL01 test: read the RAM quota in Openstack
Now the test sets the memory of VDU with the amount of memory obtained from the Openstack quota.
Change-Id: Id3efc8caee01092e4aeb3b83588b91a096d03a34
Signed-off-by: aguilard <e.dah.tid@telefonica.com>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
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 @@
@{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}
+