summaryrefslogtreecommitdiffstats
path: root/result_collection_api/opnfv_testapi/tests
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
commit4ab58917d2310dcc92d94a7060ac147906c9ecd6 (patch)
treecfe56038131a5a861a44587cf1f5494d276b53ce /result_collection_api/opnfv_testapi/tests
parent49b5222176be54fe13b5dc3e85d6d2c43c21931d (diff)
parent8c8212b4487a2ba6005743ffbaaa2e6d31e08c75 (diff)
Merge "add copyright to files in testAPI"
Diffstat (limited to 'result_collection_api/opnfv_testapi/tests')
-rw-r--r--result_collection_api/opnfv_testapi/tests/unit/__init__.py10
-rw-r--r--result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py11
-rw-r--r--result_collection_api/opnfv_testapi/tests/unit/test_base.py8
-rw-r--r--result_collection_api/opnfv_testapi/tests/unit/test_dashboard.py10
-rw-r--r--result_collection_api/opnfv_testapi/tests/unit/test_fake_pymongo.py9
-rw-r--r--result_collection_api/opnfv_testapi/tests/unit/test_pod.py8
-rw-r--r--result_collection_api/opnfv_testapi/tests/unit/test_project.py8
-rw-r--r--result_collection_api/opnfv_testapi/tests/unit/test_result.py10
-rw-r--r--result_collection_api/opnfv_testapi/tests/unit/test_testcase.py11
-rw-r--r--result_collection_api/opnfv_testapi/tests/unit/test_version.py10
10 files changed, 82 insertions, 13 deletions
diff --git a/result_collection_api/opnfv_testapi/tests/unit/__init__.py b/result_collection_api/opnfv_testapi/tests/unit/__init__.py
index 3ed9fd0..3fc79f1 100644
--- a/result_collection_api/opnfv_testapi/tests/unit/__init__.py
+++ b/result_collection_api/opnfv_testapi/tests/unit/__init__.py
@@ -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'
diff --git a/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py b/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py
index bebb9e8..e556968 100644
--- a/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py
+++ b/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py
@@ -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)
diff --git a/result_collection_api/opnfv_testapi/tests/unit/test_base.py b/result_collection_api/opnfv_testapi/tests/unit/test_base.py
index 01c43f0..ff1a193 100644
--- a/result_collection_api/opnfv_testapi/tests/unit/test_base.py
+++ b/result_collection_api/opnfv_testapi/tests/unit/test_base.py
@@ -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
diff --git a/result_collection_api/opnfv_testapi/tests/unit/test_dashboard.py b/result_collection_api/opnfv_testapi/tests/unit/test_dashboard.py
index 16a3140..8f729c0 100644
--- a/result_collection_api/opnfv_testapi/tests/unit/test_dashboard.py
+++ b/result_collection_api/opnfv_testapi/tests/unit/test_dashboard.py
@@ -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):
diff --git a/result_collection_api/opnfv_testapi/tests/unit/test_fake_pymongo.py b/result_collection_api/opnfv_testapi/tests/unit/test_fake_pymongo.py
index 6920fca..9bc311c 100644
--- a/result_collection_api/opnfv_testapi/tests/unit/test_fake_pymongo.py
+++ b/result_collection_api/opnfv_testapi/tests/unit/test_fake_pymongo.py
@@ -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
diff --git a/result_collection_api/opnfv_testapi/tests/unit/test_pod.py b/result_collection_api/opnfv_testapi/tests/unit/test_pod.py
index 2f5d84d..a1184d5 100644
--- a/result_collection_api/opnfv_testapi/tests/unit/test_pod.py
+++ b/result_collection_api/opnfv_testapi/tests/unit/test_pod.py
@@ -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
diff --git a/result_collection_api/opnfv_testapi/tests/unit/test_project.py b/result_collection_api/opnfv_testapi/tests/unit/test_project.py
index 1b4af91..d473060 100644
--- a/result_collection_api/opnfv_testapi/tests/unit/test_project.py
+++ b/result_collection_api/opnfv_testapi/tests/unit/test_project.py
@@ -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
diff --git a/result_collection_api/opnfv_testapi/tests/unit/test_result.py b/result_collection_api/opnfv_testapi/tests/unit/test_result.py
index 50a0b96..fc1e9ba 100644
--- a/result_collection_api/opnfv_testapi/tests/unit/test_result.py
+++ b/result_collection_api/opnfv_testapi/tests/unit/test_result.py
@@ -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):
diff --git a/result_collection_api/opnfv_testapi/tests/unit/test_testcase.py b/result_collection_api/opnfv_testapi/tests/unit/test_testcase.py
index dc20821..a145c00 100644
--- a/result_collection_api/opnfv_testapi/tests/unit/test_testcase.py
+++ b/result_collection_api/opnfv_testapi/tests/unit/test_testcase.py
@@ -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()
diff --git a/result_collection_api/opnfv_testapi/tests/unit/test_version.py b/result_collection_api/opnfv_testapi/tests/unit/test_version.py
index 13574c7..b6fbf45 100644
--- a/result_collection_api/opnfv_testapi/tests/unit/test_version.py
+++ b/result_collection_api/opnfv_testapi/tests/unit/test_version.py
@@ -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 TestVersionBase(TestBase):
def setUp(self):