summaryrefslogtreecommitdiffstats
path: root/utils/test/result_collection_api/opnfv_testapi/tornado_swagger
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-06-03 06:58:01 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-06-03 06:58:01 +0000
commit7a8c4df8fcb74e04b4b6dbbe2b28698030282338 (patch)
treef33fac3b302802375be7e63c09a3771f69535403 /utils/test/result_collection_api/opnfv_testapi/tornado_swagger
parent6804b533d83cde9400229430c5324ac6d4834067 (diff)
parent42e8032b74ef4489a8c77a9dc9e5e7a7cc02b997 (diff)
Merge "add copyright to files in testAPI"
Diffstat (limited to 'utils/test/result_collection_api/opnfv_testapi/tornado_swagger')
-rw-r--r--utils/test/result_collection_api/opnfv_testapi/tornado_swagger/__init__.py12
-rw-r--r--utils/test/result_collection_api/opnfv_testapi/tornado_swagger/handlers.py12
-rw-r--r--utils/test/result_collection_api/opnfv_testapi/tornado_swagger/settings.py14
-rw-r--r--utils/test/result_collection_api/opnfv_testapi/tornado_swagger/swagger.py17
-rw-r--r--utils/test/result_collection_api/opnfv_testapi/tornado_swagger/views.py18
5 files changed, 46 insertions, 27 deletions
diff --git a/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/__init__.py b/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/__init__.py
index 031a4a20e..363bc388e 100644
--- a/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/__init__.py
+++ b/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/__init__.py
@@ -1,4 +1,8 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
-__author__ = 'serena'
+##############################################################################
+# Copyright (c) 2016 ZTE Corporation
+# feng.xiaowei@zte.com.cn
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
diff --git a/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/handlers.py b/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/handlers.py
index 8bcb9668f..2154b4697 100644
--- a/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/handlers.py
+++ b/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/handlers.py
@@ -1,13 +1,17 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
+##############################################################################
+# Copyright (c) 2016 ZTE Corporation
+# feng.xiaowei@zte.com.cn
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
from tornado.web import URLSpec, StaticFileHandler
from settings import default_settings, \
SWAGGER_API_DOCS, SWAGGER_API_LIST, SWAGGER_API_SPEC
from views import SwaggerUIHandler, SwaggerResourcesHandler, SwaggerApiHandler
-__author__ = 'serena'
-
def swagger_handlers():
prefix = default_settings.get('swagger_prefix', '/swagger')
diff --git a/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/settings.py b/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/settings.py
index 8f43c4a96..001d55820 100644
--- a/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/settings.py
+++ b/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/settings.py
@@ -1,15 +1,17 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
+##############################################################################
+# Copyright (c) 2016 ZTE Corporation
+# feng.xiaowei@zte.com.cn
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
import os.path
-__author__ = 'serena'
-
SWAGGER_VERSION = '1.2'
-
SWAGGER_API_DOCS = 'swagger-api-docs'
SWAGGER_API_LIST = 'swagger-api-list'
SWAGGER_API_SPEC = 'swagger-api-spec'
-
STATIC_PATH = os.path.join(os.path.dirname(os.path.normpath(__file__)),
'static')
diff --git a/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/swagger.py b/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/swagger.py
index b290e058d..3d21edefb 100644
--- a/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/swagger.py
+++ b/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/swagger.py
@@ -1,16 +1,21 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
+##############################################################################
+# Copyright (c) 2016 ZTE Corporation
+# feng.xiaowei@zte.com.cn
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
import inspect
from functools import wraps
-import epydoc.markup
from HTMLParser import HTMLParser
+
+import epydoc.markup
import tornado.web
+
from settings import default_settings, models
from handlers import swagger_handlers
-__author__ = 'serena'
-
class EpytextParser(HTMLParser):
a_text = False
diff --git a/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/views.py b/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/views.py
index 7624023e8..7190c671b 100644
--- a/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/views.py
+++ b/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/views.py
@@ -1,16 +1,20 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
+##############################################################################
+# Copyright (c) 2016 ZTE Corporation
+# feng.xiaowei@zte.com.cn
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
import urlparse
import json
import inspect
+
import tornado.web
import tornado.template
-from settings import SWAGGER_VERSION, \
- SWAGGER_API_LIST, \
- SWAGGER_API_SPEC
-from settings import models
-__author__ = 'serena'
+from settings import SWAGGER_VERSION, SWAGGER_API_LIST, SWAGGER_API_SPEC
+from settings import models
def json_dumps(obj, pretty=False):