summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2017-05-11 21:54:16 -0400
committerxudan <xudan16@huawei.com>2017-05-11 21:54:16 -0400
commit772dbf4d9708669eec7aaaf875363b67a8ecaf61 (patch)
tree52e5b6db68adcae90017eb3ca4a98a2d3d2b19b9
parent4c254bc9dc3ea11daf22d408f331930b8e063227 (diff)
Add test case tempest_custom into the local database
JIRA: DOVETAIL-429 Test case tempst_custom is not in the initial local database. Add this test case into local database. Change-Id: I53d3f6ebdde7ff680e33faf8296551d81f3c0496 Signed-off-by: xudan <xudan16@huawei.com>
-rw-r--r--dovetail/utils/local_db/init_db.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/dovetail/utils/local_db/init_db.py b/dovetail/utils/local_db/init_db.py
index 246139c4..2aac6fc5 100644
--- a/dovetail/utils/local_db/init_db.py
+++ b/dovetail/utils/local_db/init_db.py
@@ -60,6 +60,7 @@ def cases():
post(target, c)
except:
print("useless data")
+ add_case("functest", "tempest_custom")
def add_pod(name, mode):
@@ -74,6 +75,15 @@ def add_pod(name, mode):
post(pod_url, data)
+def add_case(project, case):
+ data = {
+ "project_name": project,
+ "name": case,
+ }
+ case_url = '{}/projects/{}/cases'.format(target_url, project)
+ post(case_url, data)
+
+
if __name__ == '__main__':
pod()
project()