Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup after lbaas management script #30

Open
wants to merge 11 commits into
base: neutron-ha-tool-maintenance
Choose a base branch
from
Prev Previous commit
Next Next commit
Add test: timeout is passed down to connect()
  • Loading branch information
Mate Lakat committed May 8, 2017
commit d6e7a89fb3b698e44233f6d60f6894d8a8209d51
7 changes: 7 additions & 0 deletions files/default/test-neutron-ha-tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,3 +695,10 @@ class TestSSHHost(unittest.TestCase):
def test_str_prints_hostname(self, ssh_client):
with ha_tool.connect_to_host('somehost', 10) as ssh_host:
self.assertEqual('somehost', str(ssh_host))

@mocked_ssh_client
def test_connect_timeout(self, ssh_client):
with ha_tool.connect_to_host('somehost', 10):
pass

ssh_client.connect.assert_called_once_with('somehost', timeout=10)