Add token based authentication for post/update/delete
authorrohitsakala <rohitsakala@gmail.com>
Thu, 16 Feb 2017 07:52:05 +0000 (13:22 +0530)
committerRohit Sakala <rohitsakala@gmail.com>
Tue, 21 Feb 2017 19:32:25 +0000 (19:32 +0000)
commitdab82680003368d358df501fddc5a8c03561664e
treeb8c9c30c3955105052e9d792c36a09f3043b8472
parentfd9becfdd2ac98ad55541987a2104ab46ca8fc99
Add token based authentication for post/update/delete

As the mongodb database is not so secure today, this has been added.
The token is stored in the mongoDB database. For now, authenticate variable is set
false so that there would be no problem in accessing the databse by jenkins
jobs.

JIRA: FUNCTEST-730

Change-Id: I12b3907d650fc63efbdb031ebf3dd09519750109
Signed-off-by: rohitsakala <rohitsakala@gmail.com>
testapi/etc/config.ini
testapi/opnfv_testapi/cmd/server.py
testapi/opnfv_testapi/common/config.py
testapi/opnfv_testapi/common/constants.py
testapi/opnfv_testapi/resources/handlers.py
testapi/opnfv_testapi/tests/unit/test_base.py