summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhongbo tian <hongbo.tianhongbo@huawei.com>2017-05-23 03:44:31 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-05-23 03:44:31 +0000
commitbd5ff3bd10fffd84e79dad47be4d6fb7eea66d26 (patch)
tree3e9907d805494a9badc0175fa0786099a8101bea
parent84e7b3b030018fd3f464bfa9c47c1df9d07ce675 (diff)
parent772dbf4d9708669eec7aaaf875363b67a8ecaf61 (diff)
Merge "Add test case tempest_custom into the local database"
-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()