commit | a795ae6ffcf2c95b58dfb43d8cf51d97d570f0f1 | [log] [tgz] |
---|---|---|
author | Adam Harwell <flux.adam@gmail.com> | Mon Apr 23 12:11:19 2018 -0700 |
committer | Adam Harwell <flux.adam@gmail.com> | Fri Apr 27 23:27:00 2018 +0000 |
tree | 35bb6119cfa926d70cf24817819f2b4720634927 | |
parent | 51e91b4dfe9bed364912034b7f8a51528b46fd84 [diff] |
Fix tests for Octavia API compat changes Change-Id: I524c5a3534914e6c130dd4c5bed2be77d7e38c74 Depends-On: https://review.openstack.org/#/c/563341/
diff --git a/octavia_tempest_plugin/tests/waiters.py b/octavia_tempest_plugin/tests/waiters.py index 7825782..44138a4 100644 --- a/octavia_tempest_plugin/tests/waiters.py +++ b/octavia_tempest_plugin/tests/waiters.py
@@ -49,7 +49,14 @@ LOG.info('Waiting for {name} status to update to {status}'.format( name=show_client.__name__, status=status)) while True: - response = show_client(id) + if status == const.DELETED: + try: + response = show_client(id) + except exceptions.NotFound: + return + else: + response = show_client(id) + if root_tag: object_details = response[root_tag] else: