Magnesium support for mdsal netconf 78/85178/29
authorBhuvanaVignesh <bvignesh@luminanetworks.com>
Thu, 17 Oct 2019 09:43:17 +0000 (15:13 +0530)
committerBhuvanaVignesh <bvignesh@luminanetworks.com>
Tue, 22 Oct 2019 10:35:46 +0000 (16:05 +0530)
Signed-off-by: BhuvanaVignesh <bvignesh@luminanetworks.com>
Change-Id: I6366185c8050762f020969835bee4d51e16aeb79

csit/suites/netconf/MDSAL/northbound.robot

index 45101fd20902202abd21dfc8a0a53719f6918b9d..57198539cc404ebd6626c84e063e6cb918a44b11 100644 (file)
@@ -35,6 +35,8 @@ Test Setup        SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
 Test Teardown     SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
 Library           RequestsLibrary
 Library           SSHLibrary
+Library           String
+Library           XML
 Resource          ${CURDIR}/../../../libraries/CompareStream.robot
 Resource          ${CURDIR}/../../../libraries/FailFast.robot
 Resource          ${CURDIR}/../../../libraries/SetupUtils.robot
@@ -401,8 +403,7 @@ Load_Expected_Reply
     [Arguments]    ${name}
     [Documentation]    Load the expected reply from the data file set and return it.
     ${expected_reply}=    Get_Data    ${name}-reply
-    ${expected}=    Prepare_For_Search    ${expected_reply}
-    [Return]    ${expected}
+    [Return]    ${expected_reply}
 
 Abort_ODL_Netconf_Connection
     [Documentation]    Correctly close the Netconf connection and make sure it is really dead.
@@ -508,8 +509,9 @@ Perform_Test
     [Documentation]    Load and send the request from the dataset and compare the returned reply to the one stored in the dataset.
     ${actual}=    Load_And_Send_Message    ${name}
     ${expected}=    Load_Expected_Reply    ${name}
-    ${newline}=    BuiltIn.Evaluate    "\\r\\n"
-    BuiltIn.Should_Be_Equal    ${newline}${expected}${ODL_NETCONF_PROMPT}    ${actual}
+    ${actual}=    String.Remove String    ${actual}    ]]>]]>
+    ${actual}=    String.Strip String    ${actual}    mode=both
+    XML.Elements Should Be Equal    ${actual}    ${expected}    normalize_whitespace=True
     [Return]    ${actual}
 
 Send_And_Check