Add token based authentication for post/update/delete 87/28787/24
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)
commit914c2788ae0f240c1a7a4e060213c531a602d6c7
tree1dc2bd078345ade2f65dd2fbd1f7b06d46a9b1ad
parentbf3316238f541feb41b259b7e32c279433a7daee
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>
utils/test/testapi/etc/config.ini
utils/test/testapi/opnfv_testapi/cmd/server.py
utils/test/testapi/opnfv_testapi/common/config.py
utils/test/testapi/opnfv_testapi/common/constants.py
utils/test/testapi/opnfv_testapi/resources/handlers.py
utils/test/testapi/opnfv_testapi/tests/unit/test_base.py