Create api+scenario tests for members
This patch implements member tests for the Octavia
Tempest Plugin.
Depends-On: https://review.openstack.org/#/c/567955/
Change-Id: I8813f90538b9ec9047a1777b6cab76485a150498
Story: 2001387
Task: 5970
diff --git a/octavia_tempest_plugin/tests/waiters.py b/octavia_tempest_plugin/tests/waiters.py
index 6598fcc..5abb26e 100644
--- a/octavia_tempest_plugin/tests/waiters.py
+++ b/octavia_tempest_plugin/tests/waiters.py
@@ -27,7 +27,8 @@
def wait_for_status(show_client, id, status_key, status,
- check_interval, check_timeout, root_tag=None):
+ check_interval, check_timeout, root_tag=None,
+ **kwargs):
"""Waits for an object to reach a specific status.
:param show_client: The tempest service client show method.
@@ -51,11 +52,11 @@
while True:
if status == const.DELETED:
try:
- response = show_client(id)
+ response = show_client(id, **kwargs)
except exceptions.NotFound:
return
else:
- response = show_client(id)
+ response = show_client(id, **kwargs)
if root_tag:
object_details = response[root_tag]
@@ -127,7 +128,7 @@
def wait_for_deleted_status_or_not_found(
show_client, id, status_key, check_interval, check_timeout,
- root_tag=None):
+ root_tag=None, **kwargs):
"""Waits for an object to reach a DELETED status or be not found (404).
:param show_client: The tempest service client show method.
@@ -149,7 +150,7 @@
'found(404)'.format(name=show_client.__name__))
while True:
try:
- response = show_client(id)
+ response = show_client(id, **kwargs)
except exceptions.NotFound:
return