Fix insufficient check for failed requests 91/35191/2
authorJozef Behran <jbehran@cisco.com>
Mon, 22 Feb 2016 13:36:35 +0000 (14:36 +0100)
committerVratko Polák <vrpolak@cisco.com>
Mon, 22 Feb 2016 14:36:43 +0000 (14:36 +0000)
Some request failures are reported with "Status code: XYZ"
where "XYZ" is some error status code. This is not caught by
the failed requests checking test case, leading to a spurious
test pass.

Change-Id: Icbc32036590fcff86ca025deef4dcc1e1a3226b4
Signed-off-by: Jozef Behran <jbehran@cisco.com>
csit/suites/netconf/restperfclient/performance.robot

index fa5506a35a871eb30fa46cf65507c7badcc9a272..3f47865a6bfd7e9da404f5d207b9746c7845a79e 100644 (file)
@@ -86,6 +86,8 @@ Check_For_Failed_Requests
     ...    we don't want to test performance of ODL rejecting our requests.
     ${result}=    SSHLibrary.Execute_Command    grep "Request failed" ${restperfclientlog}
     BuiltIn.Should_Be_Equal    '${result}'    ''
+    ${result}=    SSHLibrary.Execute_Command    grep "Status code" ${restperfclientlog}
+    BuiltIn.Should_Be_Equal    '${result}'    ''
 
 Deconfigure_Device_From_Netconf
     [Documentation]    Deconfigure the testtool device on Netconf connector.