*** 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
... 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
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
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
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