From 772dbf4d9708669eec7aaaf875363b67a8ecaf61 Mon Sep 17 00:00:00 2001 From: xudan Date: Thu, 11 May 2017 21:54:16 -0400 Subject: 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 --- dovetail/utils/local_db/init_db.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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() -- cgit 1.2.3-korg