Fix Fail01 to get openstack quota properly after updating client version 37/13437/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 23 May 2023 09:59:47 +0000 (11:59 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 23 May 2023 10:00:58 +0000 (12:00 +0200)
Change-Id: Ief7b4d5f150d67cecf944021c2598456672a30e0
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
robot-systest/lib/openstack_lib.robot

index 1f1020d..80bc22b 100644 (file)
@@ -64,7 +64,7 @@ Get Project Quota
     [Arguments]   ${field}
 
     Should Not Be Empty   ${field}
-    ${rc}   ${stdout}=   Run and Return RC and Output   openstack quota show -c ${field} -f value
+    ${rc}   ${stdout}=   Run and Return RC and Output   openstack quota show -f yaml | yq '.[] | select(.Resource=="${field}") | .Limit'
     Log   ${stdout}
     Should Be Equal As Integers   ${rc}   ${success_return_code}
     [Return]   ${stdout}