Fix wrong mapping type for templated requests in netconf
[integration/test.git] / csit / suites / netconf / clustering / entity.robot
index af5ef15099c0175994f569d9119eb3728336cf5f..e6f2f8b4495c70cd49309eeb0a2f14d462b0a0e7 100644 (file)
@@ -1,16 +1,16 @@
 *** Settings ***
 Documentation     Test suite for netconf device entity ownership handling during outages.
-...           
+...
 ...               Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
-...           
+...
 ...               This program and the accompanying materials are made available under the
 ...               terms of the Eclipse Public License v1.0 which accompanies this distribution,
 ...               and is available at http://www.eclipse.org/legal/epl-v10.html
-...           
-...           
+...
+...
 ...               Perform basic operations (Create, Read, Update and Delete or CRUD) on device
 ...               data mounted onto a netconf connector and see if they work.
-...           
+...
 ...               The suite recognizes 3 nodes, "CONFIGURER" (the node that configures the
 ...               device at the beginning and then deconfigures it at the end), "SETTER" (the
 ...               node that manipulates the data on the device) and "CHECKER" (the node that
@@ -18,13 +18,13 @@ Documentation     Test suite for netconf device entity ownership handling during
 ...               data operation on it is expected to be visible on all nodes so after each
 ...               operation three test cases make sure they can see the result on their
 ...               respective nodes.
-...           
+...
 ...               The 3 nodes are configured by placing "node1", "node2" or "node3" into the
 ...               ${NODE_CONFIGURER}, ${NODE_SETTER} and ${NODE_CHECKER} to make the node
 ...               a "CONFIGURER", "SETTER" and "CHECKER" respectively. The "nodeX" name refers
 ...               to the node with its IP address configured with the ${ODL_SYSTEM_X_IP}
 ...               variable where the "X" is 1, 2 or 3.
-...           
+...
 ...               The suite checks the integrity of the presence of the device and the data
 ...               seen on the device only for nodes that have at least one of the roles
 ...               ("CONFIGURER", "SETTER" and "CHECKER") assigned. A better design would have
@@ -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
@@ -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