From: Jozef Behran Date: Mon, 25 Jan 2016 15:01:20 +0000 (+0100) Subject: Fixed spurious MDSAL commit tests failures. X-Git-Tag: release/beryllium-sr1~190 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=integration%2Ftest.git;a=commitdiff_plain;h=41500f5cc4c91e959eae23fdf7796e191786ca7b Fixed spurious MDSAL commit tests failures. The fixed "commit" operation always returns OK when the candidate configuration is exactly the same as the running configuration. Which makes sense as the commit's task is to turn the running configuration to be exactly the same as the (currently present) active configuration. However the tests were expecting the commit to fail in this situation and thus are now producing spurious failures. Change-Id: I2f25e3d53a9519a5987e386e7ebe4d7161c0b767 Signed-off-by: Jozef Behran --- diff --git a/csit/suites/netconf/MDSAL/northbound.robot b/csit/suites/netconf/MDSAL/northbound.robot index 87926f467c..87fc0fc8a6 100644 --- a/csit/suites/netconf/MDSAL/northbound.robot +++ b/csit/suites/netconf/MDSAL/northbound.robot @@ -132,8 +132,8 @@ Restconf_Get_Modules_Shall_Return_404 BuiltIn.Should_Be_Equal_As_Strings 404 ${response.status_code} Commit_No_Transaction - [Documentation] Attempt to perform "commit" when there are no changes in the candidate configuration and check that it fails with the correct error. - Test_Commit_With_No_Transactions + [Documentation] Attempt to perform "commit" when there are no changes in the candidate configuration and check that it returns OK status. + Perform_Test commit-no-transaction Edit_Config_Another_Modules_Merge_For_Discard [Documentation] Create an element to be discarded and check the reply. @@ -268,8 +268,7 @@ Delete_Not_Existing_Module Commit_Delete_Not_Existing_Module [Documentation] Attempt to commit and check the reply. - Test_Commit_With_No_Transactions - [Teardown] Utils.Report_Failure_Due_To_Bug 4455 + Perform_Test commit-no-transaction Remove_Not_Existing_Module [Documentation] Attempt to remove the "module" element again and check that the operation is "silently ignored". @@ -419,9 +418,3 @@ Send_And_Check [Arguments] ${name} ${expected} ${actual}= Load_And_Send_Message ${name} BuiltIn.Should_Be_Equal ${expected} ${actual} - -Test_Commit_With_No_Transactions - [Documentation] Issue a "commit" RPC request and check that it fails with "No current transactions" error. - ${reply}= Load_And_Send_Message commit-no-transaction - ${expected}= Load_Expected_Reply commit-no-transaction - BuiltIn.Should_Contain ${reply} ${expected} diff --git a/csit/variables/netconf/MDSAL/commit-no-transaction-reply.msg b/csit/variables/netconf/MDSAL/commit-no-transaction-reply.msg index ee6a9acbc6..f3f586f39b 100644 --- a/csit/variables/netconf/MDSAL/commit-no-transaction-reply.msg +++ b/csit/variables/netconf/MDSAL/commit-no-transaction-reply.msg @@ -1,6 +1,4 @@ - - -application -operation-failed -error -No candidateTransaction found for session \ No newline at end of file + + + +