[VOL-2595] Enhance validation using wpa reassociate

Change-Id: I0a0cadb0f7026ef5510fc92fa5d24c7c241b7146
diff --git a/libraries/utils.robot b/libraries/utils.robot
index cd27aa4..2d9dd0a 100644
--- a/libraries/utils.robot
+++ b/libraries/utils.robot
@@ -107,13 +107,17 @@
     [Documentation]
     ...    Executes a particular reassociate request on the RG using wpa_cli.
     ...    auth_pass determines if authentication should pass
+    ${output}=    Login And Run Command On Remote System    truncate -s 0 /tmp/wpa.log; cat /tmp/wpa.log
+    ...    ${ip}    ${user}    ${pass}    ${container_type}    ${container_name}
+    Log    ${output}
+    Should Not Contain    ${output}    authentication completed successfully
     WPA Reassociate    ${iface}    ${ip}    ${user}    ${pass}    ${container_type}    ${container_name}
     Run Keyword If    '${auth_pass}' == 'True'    Wait Until Keyword Succeeds    ${timeout}    2s
     ...    Check Remote File Contents    True    /tmp/wpa.log    authentication completed successfully
     ...    ${ip}    ${user}    ${pass}    ${container_type}    ${container_name}
     Run Keyword If    '${auth_pass}' == 'False'    Sleep    20s
-    Run Keyword If    '${auth_pass}' == 'False'    Check Remote File Contents    False    /tmp/wpa.log
-    ...    authentication completed successfully    ${ip}    ${user}    ${pass}
+    Run Keyword If    '${auth_pass}' == 'False'    Check Remote File Contents    True    /tmp/wpa.log
+    ...    authentication failed    ${ip}    ${user}    ${pass}
     ...    ${container_type}    ${container_name}
 
 Send Dhclient Request To Release Assigned IP