Skip to content

Commit

Permalink
Merge pull request #36 from pjbreaux/stable/newton
Browse files Browse the repository at this point in the history
Stable/newton
  • Loading branch information
jlongstaf authored Jun 12, 2017
2 parents 0976953 + 60454fa commit fb40247
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions neutron_lbaas/tests/tempest/v2/scenario/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from six.moves.urllib import request as urllib2
from tempest.common import waiters
from tempest import config
from tempest import exceptions
from tempest.lib.common.utils import test_utils
from tempest.lib import exceptions as lib_exc
from tempest import test
Expand Down Expand Up @@ -521,7 +520,7 @@ def try_connect(check_ip, port):
if (time.time() - start) > timeout:
message = ("Timed out trying to connect to {0}:{1} after "
"{2} seconds".format(check_ip, port, timeout))
raise exceptions.TimeoutException(message)
raise lib_exc.TimeoutException(message)

def _send_requests(self, vip_ip, servers):
counters = dict.fromkeys(servers, 0)
Expand Down
14 changes: 7 additions & 7 deletions neutron_lbaas/tests/tempest/v2/scenario/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ def ping():
'should_succeed':
'reachable' if should_succeed else 'unreachable'
})
result = test_utils.call_until_true(ping, timeout, 1)
result = tempest.test.call_until_true(ping, timeout, 1)
LOG.debug('%(caller)s finishes ping %(ip)s in %(timeout)s sec and the '
'ping result is %(result)s', {
'caller': caller, 'ip': ip_address, 'timeout': timeout,
Expand Down Expand Up @@ -887,9 +887,9 @@ def refresh():
show_floatingip(floatingip_id)['floatingip'])
return status == result['status']

test_utils.call_until_true(refresh,
CONF.network.build_timeout,
CONF.network.build_interval)
tempest.test.call_until_true(refresh,
CONF.network.build_timeout,
CONF.network.build_interval)
floating_ip = self.floating_ips_client.show_floatingip(
floatingip_id)['floatingip']
self.assertEqual(status, floating_ip['status'],
Expand Down Expand Up @@ -944,9 +944,9 @@ def ping_remote():
return not should_succeed
return should_succeed

return test_utils.call_until_true(ping_remote,
CONF.validation.ping_timeout,
1)
return tempest.test.call_until_true(ping_remote,
CONF.validation.ping_timeout,
1)

def _create_security_group(self, security_group_rules_client=None,
tenant_id=None,
Expand Down

0 comments on commit fb40247

Please sign in to comment.