Change-Id: Ide0e00e3aa6ee4a484fd9d1b7c9bc52b598267ea
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
results_per_page = 20
# With debug_on set to true, error traces will be shown in HTTP responses
-debug = True
+debug = False
token_check = False
authenticate = True
@raise 400: body/pod_name/project_name/case_name not provided
"""
logging.info('file upload')
+ if not self.request.files:
+ raises.NotFound(message.key_error('file'))
fileinfo = self.request.files['file'][0]
is_public = self.get_body_argument('public')
logging.warning('public:%s', is_public)
assert CONF.mongo_url == 'mongodb://127.0.0.1:27017/'
assert CONF.mongo_dbname == 'test_results_collection'
assert CONF.api_port == 8000
- assert CONF.api_debug is True
+ assert CONF.api_debug is False
assert CONF.api_token_check is False
assert CONF.api_authenticate is True
assert CONF.ui_url == 'http://localhost:8000'