From: mpany Date: Thu, 19 Jul 2018 14:40:06 +0000 (+0530) Subject: Add keywords in Openstack robot file X-Git-Tag: pre-potassium~671 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F20%2F74220%2F2;p=integration%2Ftest.git Add keywords in Openstack robot file Change-Id: I11e1880bbda242961b0361228b0e32616fcde8a9 Signed-off-by: mpany --- diff --git a/csit/libraries/OpenStackOperations.robot b/csit/libraries/OpenStackOperations.robot index 01984e30d0..61d6e06aa1 100644 --- a/csit/libraries/OpenStackOperations.robot +++ b/csit/libraries/OpenStackOperations.robot @@ -1118,3 +1118,15 @@ Verify Expected Default Tables BuiltIn.Log ${flow_dump} : FOR ${table} IN @{DEFAULT_FLOW_TABLES} \ Builtin.Should Match Regexp ${flow_dump} .*table=${table}.*priority=0 + +Get Project Id + [Arguments] ${project_name} + [Documentation] Returns project ID for the given project name. + ${project_id} = OpenStack CLI openstack project show ${project_name} -f value -c id + [Return] ${project_id} + +Set Instance Quota For Project + [Arguments] ${num_instances} ${project_id} + [Documentation] Set quota for the created instances using the specific project id. + ${output} = OpenStack CLI openstack quota set --instances ${num_instances} ${project_id} + [Return] ${output}