Fix wrong mapping type for templated requests in netconf
[integration/test.git] / csit / suites / netconf / clustering / CRUD.robot
index 989ed9846e1eebc6c201abf7498b8bd19c4347d7..7cf3f6637cc351c802bfba04f195772f716e1d96 100644 (file)
@@ -1,16 +1,16 @@
 *** Settings ***
 Documentation     netconf clustered CRUD test suite.
-...           
+...
 ...               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     netconf clustered CRUD test suite.
 ...               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
@@ -105,7 +105,7 @@ Check_Device_Data_Is_Seen_As_Empty_On_Setter
 
 Create_Device_Data
     [Documentation]    Send some sample test data into the device and check that the request went OK.
-    ${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=${NODE_SETTER}
 
 Check_New_Device_Data_Is_Visible_On_Setter
@@ -122,7 +122,7 @@ Check_New_Device_Data_Is_Visible_On_Configurer
 
 Modify_Device_Data
     [Documentation]    Send a request to change the sample test data and check that the request went OK.
-    ${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=${NODE_SETTER}
     [Teardown]    Utils.Report_Failure_Due_To_Bug    4968
 
@@ -143,7 +143,7 @@ Check_Modified_Device_Data_Is_Visible_On_Configurer
 
 Delete_Device_Data
     [Documentation]    Send a request to delete the sample test data on the device and check that the request went OK.
-    ${template_as_string}=    BuiltIn.Set_Variable    {'DEVICE_NAME': '${DEVICE_NAME}'}
+    ${template_as_string}=    BuiltIn.Create_Dictionary    DEVICE_NAME=${device_name}
     TemplatedRequests.Delete_Templated    ${directory_with_template_folders}${/}datamod1    ${template_as_string}    session=${NODE_SETTER}
     [Teardown]    Utils.Report_Failure_Due_To_Bug    4968