Implement async shell result handling

Change-Id: I946839c0414a7facbdad0ad948d948adc849206f
This commit is contained in:
Federico Ressi
2019-05-27 09:36:06 +02:00
parent 8b3df80590
commit 48ca748bb4
11 changed files with 902 additions and 281 deletions

View File

@@ -136,13 +136,13 @@ class FloatingIPTest(base.TobikoTest):
"""Test SSH connectivity to floating IP address"""
result = sh.execute("hostname", ssh_client=self.ssh_client)
self.assertEqual([self.server_name.lower()],
result.stdout.splitlines())
str(result.stdout).splitlines())
def test_ssh_from_cli(self):
"""Test SSH connectivity to floating IP address from CLI"""
result = sh.execute(self.floating_ip_stack.ssh_command + ['hostname'])
self.assertEqual([self.server_name.lower()],
result.stdout.splitlines())
str(result.stdout).splitlines())
def test_ping(self):
"""Test ICMP connectivity to floating IP address"""