Add karaf logging to controller-clustering.txt suites
[integration/test.git] / csit / libraries / TemplatedRequests.robot
index 4b87ee54117dff845a9dcf9b2444c32c7180f992..1903609bd9db2c25a243987a76256b8afe83c7d1 100644 (file)
@@ -293,10 +293,10 @@ Verify_Response_Templated
     ...    ELSE    BuiltIn.Should_Be_Equal    ${expected_text}    ${response}
 
 Get_From_Uri
-    [Arguments]    ${uri}    ${accept}    ${session}=default    ${normalize_json}=False
+    [Arguments]    ${uri}    ${accept}=${ACCEPT_EMPTY}    ${session}=default    ${normalize_json}=False
     [Documentation]    GET data from given URI, check status code and return response text.
-    ...    \${accept} is a mandatory Python object with headers to use.
-    ...    If \${normalize_json}, normalize text before returning.
+    ...    \${accept} is a Python object with headers to use.
+    ...    If \${normalize_json}, normalize as JSON text before returning.
     BuiltIn.Log    ${uri}
     BuiltIn.Log    ${accept}
     ${response} =    RequestsLibrary.Get_Request    alias=${session}    uri=${uri}    headers=${accept}
@@ -371,7 +371,6 @@ Resolve_Text_From_Template_Folder
     ${items} =    BuiltIn.Create_List
     ${separator} =    BuiltIn.Set_Variable_If    '${extension}' != 'json'    ${endline}    ,${endline}
     : FOR    ${iteration}    IN RANGE    ${iter_start}    ${iterations}+${iter_start}
-    \    # Add separator only if we are beyond first item.
     \    BuiltIn.Run_Keyword_If    ${iteration} > ${iter_start}    Collections.Append_To_List    ${items}    ${separator}
     \    ${item} =    BuiltIn.Evaluate    string.Template('''${item_template}''').substitute({"i":"${iteration}"})    modules=string
     \    Collections.Append_To_List    ${items}    ${item}