Fix OpenStack CLI Get List error
[integration/test.git] / csit / libraries / DatastoreCRUD.robot
index ba7f091af3cab28a41cdc4dafc41748fb3dc4835..7ac899c9310cc9a11af8c83a378dee077726ef46 100644 (file)
@@ -5,7 +5,8 @@ Variables         ../variables/Variables.py
 
 *** Keywords ***
 Create Records
-    [Arguments]    ${controller_ip}    ${node}    ${first}    ${last}    ${prefix}    ${field bases}    ${postfix}
+    [Arguments]    ${controller_ip}    ${node}    ${first}    ${last}    ${prefix}    ${field bases}
+    ...    ${postfix}
     [Documentation]    POSTs records to a controller's data store. First and last index numbers are specified
     ...    as is a dictionary called field_bases containing the base name for the field contents
     ...    onto which will be appended the index number. Prefix and postfix are used to complete
@@ -15,7 +16,7 @@ Create Records
     \    ${payload}=    Assemble Payload    ${INDEX}    ${prefix}    ${field bases}    ${postfix}
     \    Log    ${payload}
     \    Create_Session    session    http://${controller_ip}:${RESTCONFPORT}${CONFIG_API}    headers=${HEADERS}    auth=${AUTH}
-    \    ${resp}    RequestsLibrary.Post    session    ${node}    ${payload}
+    \    ${resp}    RequestsLibrary.Post Request    session    ${node}    ${payload}
     \    Log    ${resp}
     \    Should Be Equal As Strings    ${resp}    <Response [204]>
 
@@ -23,11 +24,12 @@ Read Records
     [Arguments]    ${controller_ip}    ${node}
     [Documentation]    GETs records from a shard on a controller's data store.
     Create_Session    session    http://${controller_ip}:${RESTCONFPORT}${CONFIG_API}    headers=${HEADERS}    auth=${AUTH}
-    ${resp}=    RequestsLibrary.Get    session    ${node}
+    ${resp}=    RequestsLibrary.Get Request    session    ${node}
     [Return]    ${resp.json()}
 
 Update Records
-    [Arguments]    ${controller_ip}    ${node}    ${first}    ${last}    ${prefix}    ${field bases}    ${postfix}
+    [Arguments]    ${controller_ip}    ${node}    ${first}    ${last}    ${prefix}    ${field bases}
+    ...    ${postfix}
     [Documentation]    PUTs records to shard on a controller's data store. First and last index numbers are specified
     ...    as is a dictionary called field_bases containing the base name for the field contents
     ...    onto which will be appended the index number. Prefix and postfix are used to complete
@@ -37,7 +39,7 @@ Update Records
     \    ${payload}=    Assemble Payload    ${INDEX}    ${prefix}    ${field bases}    ${postfix}
     \    Log    ${payload}
     \    Create_Session    session    http://${controller_ip}:${RESTCONFPORT}${CONFIG_API}    headers=${HEADERS}    auth=${AUTH}
-    \    ${resp}=    RequestsLibrary.Put    session    ${node}/${INDEX}    ${payload}
+    \    ${resp}=    RequestsLibrary.Put Request    session    ${node}/${INDEX}    ${payload}
     \    Log    ${resp}
     \    Should Be Equal As Strings    ${resp}    <Response [200]>
 
@@ -47,14 +49,14 @@ Delete Records
     ${last}    Convert to Integer    ${last}
     : FOR    ${INDEX}    IN RANGE    ${first}    ${last+1}
     \    Create_Session    session    http://${controller_ip}:${RESTCONFPORT}${CONFIG_API}    headers=${HEADERS}    auth=${AUTH}
-    \    ${resp}=    RequestsLibrary.Delete    session    ${node}/${INDEX}
+    \    ${resp}=    RequestsLibrary.Delete Request    session    ${node}/${INDEX}
     \    Should Be Equal As Strings    ${resp}    <Response [200]>
 
 Delete All Records
     [Arguments]    ${controller_ip}    ${node}
     [Documentation]    DELETEs all records from a shard on a controller's data store.
     Create_Session    session    http://${controller_ip}:${RESTCONFPORT}${CONFIG_API}    headers=${HEADERS}    auth=${AUTH}
-    ${resp}=    RequestsLibrary.Delete    session    ${node}
+    ${resp}=    RequestsLibrary.Delete Request    session    ${node}
     Should Be Equal As Strings    ${resp}    <Response [200]>
 
 Assemble Payload