Merge "Use assertTrue in checking pod connectivity"

This commit is contained in:
Zuul 2019-01-15 13:08:50 +00:00 committed by Gerrit Code Review
commit d35a5d5c0e
1 changed files with 4 additions and 3 deletions

View File

@ -66,9 +66,10 @@ class TestKuryrRestartScenario(base.BaseKuryrScenarioTest):
pod_name, pod = self.create_pod()
self.addCleanup(self.delete_pod, pod_name)
pod_fip = self.assign_fip_to_pod(pod_name)
if not self.ping_ip_address(
pod_fip['floatingip']['floating_ip_address']):
raise lib_exc.CommandFailed()
self.assertIsNotNone(pod_fip['floatingip'][
'floating_ip_address'])
self.assertTrue(self.ping_ip_address(pod_fip[
'floatingip']['floating_ip_address']))
# Check that both kuryr-pods are up and running
# The newly created pods are running because create_pod is written