Change addCleanup create_tenant to delete_tenant, fix gate
Tempest patch with Change-Id of:
I3fe7b6b7f81a0b20888b2c70a717065e4b43674f
Changed the v2 Keystone tenant API create_tenant to keyword
arguments. This broke our API tests that used create_tenant
with a tenant_id... It looks like the addCleanup that was supposed
to delete the newly created tenant actually created a second
tenant. The existing create_tenant calls were unaffected
by the Tempest change as it is backwards compatible.
Change-Id: Ie82c16ebf8dde988d68a01fc8dfa073085af4728
Closes-Bug: #1594593
diff --git a/neutron/tests/tempest/api/admin/test_quotas.py b/neutron/tests/tempest/api/admin/test_quotas.py
index 3bf52c5..7195693 100644
--- a/neutron/tests/tempest/api/admin/test_quotas.py
+++ b/neutron/tests/tempest/api/admin/test_quotas.py
@@ -36,7 +36,7 @@
name=test_tenant,
description=test_description)['tenant']
self.addCleanup(
- self.identity_admin_client.create_tenant, tenant['id'])
+ self.identity_admin_client.delete_tenant, tenant['id'])
return tenant
def _setup_quotas(self, project_id, **new_quotas):