From: Linda Wang <wangwulin@huawei.com>
Date: Thu, 30 Mar 2017 08:14:16 +0000 (+0000)
Subject: Make tempest cleanup resources after running
X-Git-Tag: danube.1.RC1~2
X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=5e0babe9c87fb70fb0a123790390afb4ed7e986b;p=functest.git

Make tempest cleanup resources after running

JIRA: FUNCTEST-773

1. When running refstack_defcore, create tenant and user failed due to conflict
   with those created when runnning tempest_smoke_serial.
2. Clean all resources created for tempest_smoke_serial.

Change-Id: Icf8ec95f6db0b2f93bf6c56ec10a6e8ea1a91ab1
Signed-off-by: Linda Wang <wangwulin@huawei.com>
(cherry picked from commit f94a1744e7a4d3a48466b6171a205e1ed84026d7)
---

diff --git a/functest/ci/testcases.yaml b/functest/ci/testcases.yaml
index ba5c99d43..af7aab60a 100755
--- a/functest/ci/testcases.yaml
+++ b/functest/ci/testcases.yaml
@@ -102,7 +102,7 @@ tiers:
                 name: tempest_smoke_serial
                 criteria: 'success_rate == 100%'
                 blocking: false
-                clean_flag: false
+                clean_flag: true
                 description: >-
                     This test case runs the smoke subset of the OpenStack
                     Tempest suite. The list of test cases is generated by
@@ -134,7 +134,7 @@ tiers:
                 name: refstack_defcore
                 criteria: 'success_rate == 100%'
                 blocking: false
-                clean_flag: false
+                clean_flag: true
                 description: >-
                     This test case runs a sub group of tests of the OpenStack
                     Defcore testcases by using refstack client.
@@ -412,7 +412,7 @@ tiers:
                 name: tempest_full_parallel
                 criteria: 'success_rate >= 80%'
                 blocking: false
-                clean_flag: false
+                clean_flag: true
                 description: >-
                     The list of test cases is generated by
                     Tempest automatically and depends on the parameters of
@@ -427,7 +427,7 @@ tiers:
                 name: tempest_custom
                 criteria: 'success_rate == 100%'
                 blocking: false
-                clean_flag: false
+                clean_flag: true
                 description: >-
                     The test case allows running a customized list of tempest
                     test cases defined in a file under