diff options
author | Kanagaraj Manickam <kanagaraj.manickam@huawei.com> | 2020-09-25 20:28:33 +0530 |
---|---|---|
committer | Kanagaraj Manickam <kanagaraj.manickam@huawei.com> | 2020-10-19 22:19:56 +0530 |
commit | fe4df15d566cd246f159cba826df9909aa83ead3 (patch) | |
tree | dd399b03166360a780f4685010b09cbf3c87aefe | |
parent | f4c52e30cc86c8d54cfaa04aadec46068ed95771 (diff) |
Added Mem-cache for token validation
Issue-ID: DOVETAIL-801
Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com>
Change-Id: I63507882bac7f4fa97983b0ed883e23ae8c1a236
-rw-r--r-- | opnfv_testapi/resources/test_handlers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/opnfv_testapi/resources/test_handlers.py b/opnfv_testapi/resources/test_handlers.py index d4fc445..bded472 100644 --- a/opnfv_testapi/resources/test_handlers.py +++ b/opnfv_testapi/resources/test_handlers.py @@ -440,7 +440,8 @@ class TestsUploadDataHandler(GenericTestHandler): @raise 404: pod/project/testcase not exist @raise 400: body/pod_name/project_name/case_name not provided """ - token = self.get_secure_cookie("token") + mc = memcache.Client(['127.0.0.1:11211'], debug=0) + token = mc.get("token") openid = self.request.headers._dict['Openid'] if openid: self.json_args['owner'] = openid |