X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=utils%2Ftest%2Ftestapi%2Fopnfv_testapi%2Fcmd%2Fserver.py;h=a5ac5eb6bf5abbe80020c1e574a2ee788f5788cd;hb=822cd5c32c9a129aa8aad9952f25a37123c96733;hp=e640d5f8c06661c497d4c080845f9a89bbff262f;hpb=cbcabf6643e68c019b407c95b1526e77337f7697;p=releng.git diff --git a/utils/test/testapi/opnfv_testapi/cmd/server.py b/utils/test/testapi/opnfv_testapi/cmd/server.py index e640d5f8c..a5ac5eb6b 100644 --- a/utils/test/testapi/opnfv_testapi/cmd/server.py +++ b/utils/test/testapi/opnfv_testapi/cmd/server.py @@ -29,7 +29,6 @@ TODOs : """ -import motor import tornado.ioloop from opnfv_testapi.common.config import CONF @@ -37,16 +36,11 @@ from opnfv_testapi.router import url_mappings from opnfv_testapi.tornado_swagger import swagger -def get_db(): - return motor.MotorClient(CONF.mongo_url)[CONF.mongo_dbname] - - def make_app(): swagger.docs(base_url=CONF.swagger_base_url, static_path=CONF.static_path) return swagger.Application( url_mappings.mappings, - db=get_db(), debug=CONF.api_debug, auth=CONF.api_authenticate, cookie_secret='opnfv-testapi',