add copyright to files in testAPI 63/15063/2
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Thu, 2 Jun 2016 07:04:41 +0000 (15:04 +0800)
committerSerena Feng <feng.xiaowei@zte.com.cn>
Thu, 2 Jun 2016 07:10:37 +0000 (07:10 +0000)
add copyright head to new created files

JIRA: FUNCTEST-289

Change-Id: Idbedcf6d63156570dfa4b85dd8125b3882251765
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
28 files changed:
utils/test/result_collection_api/opnfv_testapi/__init__.py
utils/test/result_collection_api/opnfv_testapi/cmd/__init__.py
utils/test/result_collection_api/opnfv_testapi/resources/dashboard_handlers.py
utils/test/result_collection_api/opnfv_testapi/resources/pod_handlers.py
utils/test/result_collection_api/opnfv_testapi/resources/pod_models.py
utils/test/result_collection_api/opnfv_testapi/resources/project_handlers.py
utils/test/result_collection_api/opnfv_testapi/resources/project_models.py
utils/test/result_collection_api/opnfv_testapi/resources/result_handlers.py
utils/test/result_collection_api/opnfv_testapi/resources/result_models.py
utils/test/result_collection_api/opnfv_testapi/resources/testcase_handlers.py
utils/test/result_collection_api/opnfv_testapi/resources/testcase_models.py
utils/test/result_collection_api/opnfv_testapi/router/__init__.py
utils/test/result_collection_api/opnfv_testapi/router/url_mappings.py
utils/test/result_collection_api/opnfv_testapi/tests/unit/__init__.py
utils/test/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py
utils/test/result_collection_api/opnfv_testapi/tests/unit/test_base.py
utils/test/result_collection_api/opnfv_testapi/tests/unit/test_dashboard.py
utils/test/result_collection_api/opnfv_testapi/tests/unit/test_fake_pymongo.py
utils/test/result_collection_api/opnfv_testapi/tests/unit/test_pod.py
utils/test/result_collection_api/opnfv_testapi/tests/unit/test_project.py
utils/test/result_collection_api/opnfv_testapi/tests/unit/test_result.py
utils/test/result_collection_api/opnfv_testapi/tests/unit/test_testcase.py
utils/test/result_collection_api/opnfv_testapi/tests/unit/test_version.py
utils/test/result_collection_api/opnfv_testapi/tornado_swagger/__init__.py
utils/test/result_collection_api/opnfv_testapi/tornado_swagger/handlers.py
utils/test/result_collection_api/opnfv_testapi/tornado_swagger/settings.py
utils/test/result_collection_api/opnfv_testapi/tornado_swagger/swagger.py
utils/test/result_collection_api/opnfv_testapi/tornado_swagger/views.py

index e69de29..363bc38 100644 (file)
@@ -0,0 +1,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
+##############################################################################
index e69de29..363bc38 100644 (file)
@@ -0,0 +1,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
+##############################################################################
index 82bf8d2..84e7bc1 100644 (file)
@@ -1,3 +1,12 @@
+##############################################################################
+# Copyright (c) 2015 Orange
+# guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com
+# 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 HTTPError
 
 from opnfv_testapi.common.constants import HTTP_NOT_FOUND
index d9e6686..df4112f 100644 (file)
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2015 Orange
+# guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com
+# 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 opnfv_testapi.tornado_swagger import swagger
 from handlers import GenericApiHandler
 from pod_models import Pod
index 3e6f5a8..7231806 100644 (file)
@@ -1,7 +1,13 @@
+##############################################################################
+# Copyright (c) 2015 Orange
+# guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com
+# 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 opnfv_testapi.tornado_swagger import swagger
 
-__author__ = '__serena__'
-
 # name: name of the POD e.g. zte-1
 # mode: metal or virtual
 # details: any detail
index 30fb402..171ab76 100644 (file)
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2015 Orange
+# guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com
+# 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 opnfv_testapi.tornado_swagger import swagger
 from handlers import GenericApiHandler
 from opnfv_testapi.common.constants import HTTP_FORBIDDEN
index 1014254..f70630c 100644 (file)
@@ -1,7 +1,13 @@
+##############################################################################
+# Copyright (c) 2015 Orange
+# guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com
+# 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 opnfv_testapi.tornado_swagger import swagger
 
-__author__ = '__serena__'
-
 
 @swagger.model()
 class ProjectCreateRequest(object):
index 9358c71..4955472 100644 (file)
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2015 Orange
+# guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com
+# 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 datetime import datetime, timedelta
 
 from bson.objectid import ObjectId
index b3bb95b..fb6a809 100644 (file)
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2015 Orange
+# guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com
+# 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 opnfv_testapi.tornado_swagger import swagger
 
 
index 4b825f2..b4f9db9 100644 (file)
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2015 Orange
+# guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com
+# 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 opnfv_testapi.common.constants import HTTP_FORBIDDEN
 from opnfv_testapi.resources.handlers import GenericApiHandler
 from opnfv_testapi.resources.testcase_models import Testcase
index e3718a6..c9dce60 100644 (file)
@@ -1,7 +1,13 @@
+##############################################################################
+# Copyright (c) 2015 Orange
+# guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com
+# 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 opnfv_testapi.tornado_swagger import swagger
 
-__author__ = '__serena__'
-
 
 @swagger.model()
 class TestcaseCreateRequest(object):
index 3ed9fd0..3fc79f1 100644 (file)
@@ -1 +1,9 @@
-__author__ = 'root'
+##############################################################################
+# 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
+##############################################################################
+__author__ = 'serena'
index c299ada..874754b 100644 (file)
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2015 Orange
+# guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com
+# 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 opnfv_testapi.resources.handlers import VersionHandler
 from opnfv_testapi.resources.testcase_handlers import TestcaseCLHandler, \
     TestcaseGURHandler
index 3ed9fd0..3fc79f1 100644 (file)
@@ -1 +1,9 @@
-__author__ = 'root'
+##############################################################################
+# 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
+##############################################################################
+__author__ = 'serena'
index bebb9e8..e556968 100644 (file)
@@ -1,10 +1,15 @@
+##############################################################################
+# 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 bson.objectid import ObjectId
 from concurrent.futures import ThreadPoolExecutor
 
 
-__author__ = 'serena'
-
-
 def thread_execute(method, *args, **kwargs):
         with ThreadPoolExecutor(max_workers=2) as executor:
             result = executor.submit(method, *args, **kwargs)
index 01c43f0..ff1a193 100644 (file)
@@ -1,3 +1,11 @@
+##############################################################################
+# 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 json
 
 from tornado.web import Application
index 16a3140..8f729c0 100644 (file)
@@ -1,10 +1,16 @@
+##############################################################################
+# 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 unittest
 
 from test_result import TestResultBase
 from opnfv_testapi.common.constants import HTTP_NOT_FOUND, HTTP_OK
 
-__author__ = '__serena__'
-
 
 class TestDashboardBase(TestResultBase):
     def setUp(self):
index 6920fca..9bc311c 100644 (file)
@@ -1,4 +1,13 @@
+##############################################################################
+# 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 unittest
+
 from tornado.web import Application
 from tornado import gen
 from tornado.testing import AsyncHTTPTestCase, gen_test
index 2f5d84d..a1184d5 100644 (file)
@@ -1,3 +1,11 @@
+##############################################################################
+# 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 unittest
 
 from test_base import TestBase
index 1b4af91..d473060 100644 (file)
@@ -1,3 +1,11 @@
+##############################################################################
+# 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 unittest
 
 from test_base import TestBase
index 23a745f..7863fe7 100644 (file)
@@ -1,3 +1,11 @@
+##############################################################################
+# 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 unittest
 import copy
 
@@ -10,8 +18,6 @@ from opnfv_testapi.resources.result_models import ResultCreateRequest, \
 from opnfv_testapi.common.constants import HTTP_OK, HTTP_BAD_REQUEST, \
     HTTP_NOT_FOUND
 
-__author__ = '__serena__'
-
 
 class Details(object):
     def __init__(self, timestart=None, duration=None, status=None):
index dc20821..a145c00 100644 (file)
@@ -1,3 +1,11 @@
+##############################################################################
+# 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 unittest
 
 from test_base import TestBase
@@ -8,9 +16,6 @@ from opnfv_testapi.common.constants import HTTP_OK, HTTP_BAD_REQUEST, \
     HTTP_FORBIDDEN, HTTP_NOT_FOUND
 
 
-__author__ = '__serena__'
-
-
 class TestCaseBase(TestBase):
     def setUp(self):
         super(TestCaseBase, self).setUp()
index 626b290..907812b 100644 (file)
@@ -1,10 +1,16 @@
+##############################################################################
+# 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 unittest
 
 from test_base import TestBase
 from opnfv_testapi.resources.models import Versions
 
-__author__ = 'serena'
-
 
 class TestVersionbBase(TestBase):
     def setUp(self):
index 031a4a2..363bc38 100644 (file)
@@ -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
+##############################################################################
index 8bcb966..2154b46 100644 (file)
@@ -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')
index 8f43c4a..001d558 100644 (file)
@@ -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')
 
index b290e05..3d21ede 100644 (file)
@@ -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
index 7624023..7190c67 100644 (file)
@@ -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):