Add timeout for the connection session to expire
From http://docs.python-requests.org/en/master/user/advanced/
"Most requests to external servers should have a timeout attached,
in case the server is not responding in a timely manner. By default,
requests do not time out unless a timeout value is set explicitly.
Without a timeout, your code may hang for minutes or more."
Resolves openbmc/openbmc-test-automation#1334
Change-Id: I3ff5fb67a409a1004149482dc5618ce16f5bcada
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/security/test_ssl.robot b/tests/security/test_ssl.robot
index 1e8ead2..bd13dec 100644
--- a/tests/security/test_ssl.robot
+++ b/tests/security/test_ssl.robot
@@ -25,5 +25,5 @@
[Documentation] Test that OpenBmc does not accept the non-secure
... http connection at port 443 and would expect a connection error.
[Tags] Test_Non_SSL_Connection_To_Port_443
- Create Session openbmc http://${OPENBMC_HOST}:443/
+ Create Session openbmc http://${OPENBMC_HOST}:443/ timeout=3
Run Keyword And Expect Error ConnectionError* Get Request openbmc /list