Fix wrong mapping type for templated requests in netconf
[integration/test.git] / csit / suites / netconf / clustering / entity.robot
index 78cb990946a518ec9ea40089195e4dc3ac10738b..e6f2f8b4495c70cd49309eeb0a2f14d462b0a0e7 100644 (file)
@@ -85,7 +85,7 @@ Check_Config_Data_Before_Data_Creation
 
 Create_Device_Data
     [Documentation]    Create some data on the device and propagate it throughout the cluster.
-    ${template_as_string}=    BuiltIn.Set_Variable    {'DEVICE_NAME': '${DEVICE_NAME}'}
+    ${template_as_string}=    BuiltIn.Create_Dictionary    DEVICE_NAME=${device_name}
     TemplatedRequests.Post_As_Xml_Templated    ${directory_with_template_folders}${/}dataorig    ${template_as_string}    session=${node2_session}
 
 Check_Config_Data_After_Data_Creation
@@ -100,8 +100,8 @@ Find_And_Shutdown_Device_Entity_Owner
     Log    ${followers}
     Length Should Be    ${followers}    2    Wrong count of followers returned
     BuiltIn.Set_Suite_Variable    ${original_device_owner}    ${owner}
-    BuiltIn.Set_Suite_Variable    ${follower1}    @{followers}[0]
-    BuiltIn.Set_Suite_Variable    ${follower2}    @{followers}[1]
+    BuiltIn.Set_Suite_Variable    ${follower1}    ${followers}[0]
+    BuiltIn.Set_Suite_Variable    ${follower2}    ${followers}[1]
     ${original_device_owner_session} =    ClusterManagement.Resolve_Http_Session_For_Member    member_index=${original_device_owner}
     ${follower1_session} =    ClusterManagement.Resolve_Http_Session_For_Member    member_index=${follower1}
     ${follower2_session} =    ClusterManagement.Resolve_Http_Session_For_Member    member_index=${follower2}
@@ -123,7 +123,7 @@ Check_Config_Data_Before_Modification_With_Original_Owner_Down
 
 Modify_Device_Data_When_Original_Owner_Is_Down
     [Documentation]    Attempt to modify the data on the device after recovery and see if it still works.
-    ${template_as_string}=    BuiltIn.Set_Variable    {'DEVICE_NAME': '${DEVICE_NAME}'}
+    ${template_as_string}=    BuiltIn.Create_Dictionary    DEVICE_NAME=${device_name}
     TemplatedRequests.Put_As_Xml_Templated    ${directory_with_template_folders}${/}datamod1    ${template_as_string}    session=${follower1_session}
     [Teardown]    Utils.Report_Failure_Due_To_Bug    4968
 
@@ -144,7 +144,7 @@ Check_Config_Data_After_Original_Owner_Restart
 
 Modify_Device_Data_With_Original_Owner
     [Documentation]    Check that the original owner of the entity is still able to modify the data on the device
-    ${template_as_string}=    BuiltIn.Set_Variable    {'DEVICE_NAME': '${DEVICE_NAME}'}
+    ${template_as_string}=    BuiltIn.Create_Dictionary    DEVICE_NAME=${device_name}
     TemplatedRequests.Put_As_Xml_Templated    ${directory_with_template_folders}${/}datamod2    ${template_as_string}    session=${original_device_owner_session}
     [Teardown]    Utils.Report_Failure_Due_To_Bug    5761
 
@@ -167,7 +167,7 @@ Deconfigure_Device_In_Netconf
 Setup_Everything
     [Documentation]    Setup everything needed for the test cases.
     # Setup resources used by the suite.
-    SetupUtils.Setup_Utils_For_Setup_And_Teardown
+    SetupUtils.Setup_Utils_For_Setup_And_Teardown    http_timeout=2
     ClusterManagement.ClusterManagement_Setup
     NetconfKeywords.Setup_Netconf_Keywords    create_session_for_templated_requests=False
     ${node1_session} =    ClusterManagement.Resolve_Http_Session_For_Member    member_index=1