From 01c31c45aa9663e067a97c22092a21cf484d8968 Mon Sep 17 00:00:00 2001 From: Goutham Pratapa Date: Wed, 17 Jan 2018 12:06:58 +0530 Subject: [PATCH] Cleanup resources created in keypair tempest tests In tempest test-case "test_keypair_sync_with_force_true" the main intention is to test resource_sync with force TRUE which will evetually delete the existing resources and then recreate if the resources are already present. Closes-Bug: #1743690 Change-Id: I422b03be34755adcf96a922bbbb79e070ab291da --- .../resource_management/sync_tests/test_keypair_sync_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kingbird/tests/tempest/scenario/resource_management/sync_tests/test_keypair_sync_api.py b/kingbird/tests/tempest/scenario/resource_management/sync_tests/test_keypair_sync_api.py index 9b3f7e3..eabad70 100644 --- a/kingbird/tests/tempest/scenario/resource_management/sync_tests/test_keypair_sync_api.py +++ b/kingbird/tests/tempest/scenario/resource_management/sync_tests/test_keypair_sync_api.py @@ -140,7 +140,8 @@ class KingbirdKeyPairSyncTest(base.BaseKBKeypairTest, lambda: self._check_job_status(), exception=RuntimeError("Timed out waiting for job %s " % job_id_1)) self.delete_db_entries(job_id_1) - job_details_2 = self._keypair_sync_job_create(FORCE) + job_details_2 = self._keypair_sync_job_create( + FORCE, job_details_1['keys']) job_id_2 = job_details_2['job_id'] utils.wait_until_true( lambda: self._check_job_status(),