summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/common
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2018-02-26 10:11:50 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2018-02-26 10:26:11 +0800
commitc3e868997d30bb907aca48abdb99b2ada2f70c1c (patch)
tree645e66031170cd1034f823f1a06f881b1d1fdc74 /testapi/opnfv_testapi/common
parente2bbce72ca32d3bfdde04149b9d702b0a82d3279 (diff)
remove deprecated upload-related codes
upload result file is used by dovetail, since now dovetail has leveraged its own cvp repo, and TestAPI is mostly and should be used as a realtime results collecting, no need to keep such function. Change-Id: Ibd56035d5d63020e224a382c8040705f63b63386 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'testapi/opnfv_testapi/common')
-rw-r--r--testapi/opnfv_testapi/common/constants.py1
-rw-r--r--testapi/opnfv_testapi/common/message.py4
2 files changed, 0 insertions, 5 deletions
diff --git a/testapi/opnfv_testapi/common/constants.py b/testapi/opnfv_testapi/common/constants.py
index 70c9223..c7f82d9 100644
--- a/testapi/opnfv_testapi/common/constants.py
+++ b/testapi/opnfv_testapi/common/constants.py
@@ -1,4 +1,3 @@
TESTAPI_ID = 'testapi_id'
CSRF_TOKEN = 'csrf_token'
-ROLE = 'role'
TESTAPI_USERS = ['opnfv-testapi-users']
diff --git a/testapi/opnfv_testapi/common/message.py b/testapi/opnfv_testapi/common/message.py
index b92b7f0..c82d5dc 100644
--- a/testapi/opnfv_testapi/common/message.py
+++ b/testapi/opnfv_testapi/common/message.py
@@ -10,10 +10,6 @@ not_found_base = 'Could Not Found'
exist_base = 'Already Exists'
-def key_error(key):
- return "KeyError: '{}'".format(key)
-
-
def no_body():
return 'No Body'