|
@@ -387,7 +387,11 @@ class TestConfigCommands(unittest.TestCase):
|
|
|
self.tool.send_POST = send_POST_raiseImmediately
|
|
|
self.assertRaises(FailToLogin, self.tool._try_login, "foo", "bar")
|
|
|
expected_printed_messages.append(
|
|
|
- 'Socket error while sending login information: test error')
|
|
|
+ 'Error while sending login information: test error')
|
|
|
+ expected_printed_messages.append(
|
|
|
+ 'Please check the logs of b10-cmdctl, there may have been a '
|
|
|
+ 'problem accepting SSL connections.'
|
|
|
+ )
|
|
|
self.__check_printed_messages(expected_printed_messages)
|
|
|
|
|
|
def create_send_POST_raiseOnRead(exception):
|
|
@@ -406,7 +410,11 @@ class TestConfigCommands(unittest.TestCase):
|
|
|
create_send_POST_raiseOnRead(socket.error("read error"))
|
|
|
self.assertRaises(FailToLogin, self.tool._try_login, "foo", "bar")
|
|
|
expected_printed_messages.append(
|
|
|
- 'Socket error while sending login information: read error')
|
|
|
+ 'Error while sending login information: read error')
|
|
|
+ expected_printed_messages.append(
|
|
|
+ 'Please check the logs of b10-cmdctl, there may have been a '
|
|
|
+ 'problem accepting SSL connections.'
|
|
|
+ )
|
|
|
self.__check_printed_messages(expected_printed_messages)
|
|
|
|
|
|
# connection reset
|
|
@@ -416,12 +424,10 @@ class TestConfigCommands(unittest.TestCase):
|
|
|
create_send_POST_raiseOnRead(exc)
|
|
|
self.assertRaises(FailToLogin, self.tool._try_login, "foo", "bar")
|
|
|
expected_printed_messages.append(
|
|
|
- 'Socket error while sending login information: '
|
|
|
- 'connection reset')
|
|
|
+ 'Error while sending login information: connection reset')
|
|
|
expected_printed_messages.append(
|
|
|
- 'Please check the logs of b10-cmdctl, there may be a '
|
|
|
- 'problem accepting SSL connections, such as a permission '
|
|
|
- 'problem on the server certificate file.'
|
|
|
+ 'Please check the logs of b10-cmdctl, there may have been a '
|
|
|
+ 'problem accepting SSL connections.'
|
|
|
)
|
|
|
self.__check_printed_messages(expected_printed_messages)
|
|
|
|
|
@@ -431,7 +437,11 @@ class TestConfigCommands(unittest.TestCase):
|
|
|
create_send_POST_raiseOnRead(exc)
|
|
|
self.assertRaises(FailToLogin, self.tool._try_login, "foo", "bar")
|
|
|
expected_printed_messages.append(
|
|
|
- 'SSL error while sending login information: .*')
|
|
|
+ 'Error while sending login information: .*')
|
|
|
+ expected_printed_messages.append(
|
|
|
+ 'Please check the logs of b10-cmdctl, there may have been a '
|
|
|
+ 'problem accepting SSL connections.'
|
|
|
+ )
|
|
|
self.__check_printed_messages(expected_printed_messages)
|
|
|
|
|
|
# 'EOF' SSL error
|
|
@@ -441,11 +451,10 @@ class TestConfigCommands(unittest.TestCase):
|
|
|
create_send_POST_raiseOnRead(exc)
|
|
|
self.assertRaises(FailToLogin, self.tool._try_login, "foo", "bar")
|
|
|
expected_printed_messages.append(
|
|
|
- 'SSL error while sending login information: .*')
|
|
|
+ 'Error while sending login information: .*')
|
|
|
expected_printed_messages.append(
|
|
|
- 'Please check the logs of b10-cmdctl, there may be a '
|
|
|
- 'problem accepting SSL connections, such as a permission '
|
|
|
- 'problem on the server certificate file.'
|
|
|
+ 'Please check the logs of b10-cmdctl, there may have been a '
|
|
|
+ 'problem accepting SSL connections.'
|
|
|
)
|
|
|
self.__check_printed_messages(expected_printed_messages)
|
|
|
|