aboutsummaryrefslogtreecommitdiffstats
path: root/legacy
diff options
context:
space:
mode:
Diffstat (limited to 'legacy')
-rw-r--r--legacy/__init__.py8
-rw-r--r--legacy/api/handler/job_handler.py8
-rw-r--r--legacy/api/model/job_model.py8
-rw-r--r--legacy/api/router/mapper.py8
-rw-r--r--legacy/api/router/mapper.py.orig19
-rw-r--r--legacy/assets/perftest/common/git_proxy_pbook.yaml8
-rw-r--r--legacy/assets/perftest/common/sys_proxy_pbook.yaml8
-rw-r--r--legacy/assets/perftest/dhrystone.yaml8
-rw-r--r--legacy/assets/perftest/dpi.yaml8
-rw-r--r--legacy/assets/perftest/etc/info_collect.py8
-rw-r--r--legacy/assets/perftest/fio.yaml8
-rw-r--r--legacy/assets/perftest/iperf.yaml8
-rw-r--r--legacy/assets/perftest/ramspeed.yaml8
-rw-r--r--legacy/assets/perftest/ssl.yaml8
-rw-r--r--legacy/assets/perftest/whetstone.yaml8
-rw-r--r--legacy/assets/suite/compute.yaml8
-rw-r--r--legacy/assets/testplan/default/compute/dhrystone_bm.yaml8
-rw-r--r--legacy/assets/testplan/default/compute/dhrystone_vm.yaml8
-rw-r--r--legacy/assets/testplan/default/compute/dpi_bm.yaml8
-rw-r--r--legacy/assets/testplan/default/compute/dpi_vm.yaml8
-rw-r--r--legacy/assets/testplan/default/compute/ramspeed_bm.yaml8
-rw-r--r--legacy/assets/testplan/default/compute/ramspeed_vm.yaml8
-rw-r--r--legacy/assets/testplan/default/compute/ssl_bm.yaml8
-rw-r--r--legacy/assets/testplan/default/compute/ssl_vm.yaml8
-rw-r--r--legacy/assets/testplan/default/compute/whetstone_bm.yaml8
-rw-r--r--legacy/assets/testplan/default/compute/whetstone_vm.yaml8
-rw-r--r--legacy/assets/testplan/default/network/iperf_bm.yaml8
-rw-r--r--legacy/assets/testplan/default/network/iperf_vm.yaml8
-rw-r--r--legacy/assets/testplan/default/network/iperf_vm_2.yaml8
-rw-r--r--legacy/assets/testplan/default/storage/fio_bm.yaml8
-rw-r--r--legacy/assets/testplan/default/storage/fio_vm.yaml8
-rw-r--r--legacy/config/SampleHeat.yaml8
-rw-r--r--legacy/data/schema/test_bm_schema.yaml8
-rw-r--r--legacy/data/schema/test_vm_schema.yaml8
-rw-r--r--legacy/data/test.yml8
-rw-r--r--legacy/data/testplan/bm_ping.yaml8
-rw-r--r--legacy/data/testplan/bm_with_proxy.yaml8
-rw-r--r--legacy/data/testplan/bm_without_proxy.yaml8
-rw-r--r--legacy/data/testplan/vm.yaml8
-rw-r--r--legacy/data/testplan/vm_error.yaml8
-rw-r--r--legacy/docs/download/sample_config.yaml8
-rw-r--r--legacy/scripts/ref_results/compute_benchmarks_indices.py8
-rw-r--r--legacy/scripts/ref_results/index_calculation.py8
-rw-r--r--legacy/scripts/ref_results/network_benchmarks_indices.py8
-rw-r--r--legacy/scripts/ref_results/result_accum.py8
-rw-r--r--legacy/scripts/ref_results/storage_benchmarks_indices.py8
-rw-r--r--legacy/tests/api/test_server.py8
-rw-r--r--legacy/tests/cli_test.py8
-rw-r--r--legacy/tests/create_zones_test.py8
-rw-r--r--legacy/tests/driver_test.py8
-rw-r--r--legacy/tests/functional/yaml_schema_test.py8
-rw-r--r--legacy/tests/helper/perftest.yaml8
-rw-r--r--legacy/tests/helper/suite.yaml8
-rw-r--r--legacy/tests/helper/version.yaml8
-rw-r--r--legacy/tests/spawn_vm_test.py8
-rw-r--r--legacy/utils/dashboard/pushtoDB.py8
-rw-r--r--legacy/utils/report/get_indices.py8
-rw-r--r--legacy/utils/report/get_results.py8
-rw-r--r--legacy/utils/report/qtip_graph.py8
-rw-r--r--legacy/utils/report/qtip_report.py8
-rw-r--r--legacy/utils/transform/dpi_transform.py8
-rw-r--r--legacy/utils/transform/final_report.py8
-rw-r--r--[-rwxr-xr-x]legacy/utils/transform/fio_transform.py8
-rw-r--r--legacy/utils/transform/iperf_transform.py8
-rw-r--r--legacy/utils/transform/ramspeed_transform.py8
-rw-r--r--legacy/utils/transform/ssl_transform.py8
-rw-r--r--legacy/utils/transform/ubench_transform.py8
67 files changed, 547 insertions, 0 deletions
diff --git a/legacy/__init__.py b/legacy/__init__.py
index e69de29b..48893ae6 100644
--- a/legacy/__init__.py
+++ b/legacy/__init__.py
@@ -0,0 +1,8 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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/legacy/api/handler/job_handler.py b/legacy/api/handler/job_handler.py
index b75da5ff..4ecc1cee 100644
--- a/legacy/api/handler/job_handler.py
+++ b/legacy/api/handler/job_handler.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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 threading
from copy import copy
diff --git a/legacy/api/model/job_model.py b/legacy/api/model/job_model.py
index f7eb9fda..73baf660 100644
--- a/legacy/api/model/job_model.py
+++ b/legacy/api/model/job_model.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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 flask_restful import fields
from flask_restful_swagger import swagger
diff --git a/legacy/api/router/mapper.py b/legacy/api/router/mapper.py
index cd21fbe1..470d18e2 100644
--- a/legacy/api/router/mapper.py
+++ b/legacy/api/router/mapper.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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 legacy.api.handler.job_handler import Job, JobList
diff --git a/legacy/api/router/mapper.py.orig b/legacy/api/router/mapper.py.orig
new file mode 100644
index 00000000..1acb40b5
--- /dev/null
+++ b/legacy/api/router/mapper.py.orig
@@ -0,0 +1,19 @@
+<<<<<<< HEAD
+from legacy.api.handler.job_handler import Job, JobList
+=======
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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 legacy.api.handler import Job, JobList
+>>>>>>> 615b529... Add licence header according to OPNFV contribution guidelines[1] by script[2]
+
+
+mappers = [
+ (JobList, '/api/v1.0/jobs'),
+ (Job, '/api/v1.0/jobs/<string:id>'),
+]
diff --git a/legacy/assets/perftest/common/git_proxy_pbook.yaml b/legacy/assets/perftest/common/git_proxy_pbook.yaml
index 5cb6f450..e190162b 100644
--- a/legacy/assets/perftest/common/git_proxy_pbook.yaml
+++ b/legacy/assets/perftest/common/git_proxy_pbook.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
#git
- name: set git proxy(http)
shell: "git config --global http.proxy {{ http_proxy }}"
diff --git a/legacy/assets/perftest/common/sys_proxy_pbook.yaml b/legacy/assets/perftest/common/sys_proxy_pbook.yaml
index bf4a8ccb..543285e3 100644
--- a/legacy/assets/perftest/common/sys_proxy_pbook.yaml
+++ b/legacy/assets/perftest/common/sys_proxy_pbook.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
#env
- name: insert shell proxy http
lineinfile: dest=/etc/profile.d/proxy.sh state=present create=yes owner=root group=root mode=0644 regexp="export http_proxy={{ http_proxy }}"
diff --git a/legacy/assets/perftest/dhrystone.yaml b/legacy/assets/perftest/dhrystone.yaml
index 896aadfc..dd098c5e 100644
--- a/legacy/assets/perftest/dhrystone.yaml
+++ b/legacy/assets/perftest/dhrystone.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
- hosts: localhost
connection: local
gather_facts: no
diff --git a/legacy/assets/perftest/dpi.yaml b/legacy/assets/perftest/dpi.yaml
index 2a10bef6..55a5dcb5 100644
--- a/legacy/assets/perftest/dpi.yaml
+++ b/legacy/assets/perftest/dpi.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
- hosts: localhost
connection: local
gather_facts: no
diff --git a/legacy/assets/perftest/etc/info_collect.py b/legacy/assets/perftest/etc/info_collect.py
index 3fc35d5a..3dbe55c2 100644
--- a/legacy/assets/perftest/etc/info_collect.py
+++ b/legacy/assets/perftest/etc/info_collect.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
import pickle
import json
diff --git a/legacy/assets/perftest/fio.yaml b/legacy/assets/perftest/fio.yaml
index 0da9407d..e6d1072d 100644
--- a/legacy/assets/perftest/fio.yaml
+++ b/legacy/assets/perftest/fio.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
- hosts: localhost
connection: local
gather_facts: no
diff --git a/legacy/assets/perftest/iperf.yaml b/legacy/assets/perftest/iperf.yaml
index a1755f7c..6654c556 100644
--- a/legacy/assets/perftest/iperf.yaml
+++ b/legacy/assets/perftest/iperf.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
- hosts: localhost
connection: local
gather_facts: no
diff --git a/legacy/assets/perftest/ramspeed.yaml b/legacy/assets/perftest/ramspeed.yaml
index 83ecd8bf..835d517a 100644
--- a/legacy/assets/perftest/ramspeed.yaml
+++ b/legacy/assets/perftest/ramspeed.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
- hosts: localhost
connection: local
gather_facts: no
diff --git a/legacy/assets/perftest/ssl.yaml b/legacy/assets/perftest/ssl.yaml
index 6002bfff..db77a724 100644
--- a/legacy/assets/perftest/ssl.yaml
+++ b/legacy/assets/perftest/ssl.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
- hosts: localhost
connection: local
gather_facts: no
diff --git a/legacy/assets/perftest/whetstone.yaml b/legacy/assets/perftest/whetstone.yaml
index d6eae85f..0037ded3 100644
--- a/legacy/assets/perftest/whetstone.yaml
+++ b/legacy/assets/perftest/whetstone.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
- hosts: localhost
connection: local
gather_facts: no
diff --git a/legacy/assets/suite/compute.yaml b/legacy/assets/suite/compute.yaml
index 197d5720..ead194a4 100644
--- a/legacy/assets/suite/compute.yaml
+++ b/legacy/assets/suite/compute.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
QPI: compute
description: sample performance index of computing
diff --git a/legacy/assets/testplan/default/compute/dhrystone_bm.yaml b/legacy/assets/testplan/default/compute/dhrystone_bm.yaml
index 64741537..54f27fb6 100644
--- a/legacy/assets/testplan/default/compute/dhrystone_bm.yaml
+++ b/legacy/assets/testplan/default/compute/dhrystone_bm.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
Scenario:
benchmark: dhrystone
diff --git a/legacy/assets/testplan/default/compute/dhrystone_vm.yaml b/legacy/assets/testplan/default/compute/dhrystone_vm.yaml
index 8f5a4165..06377bea 100644
--- a/legacy/assets/testplan/default/compute/dhrystone_vm.yaml
+++ b/legacy/assets/testplan/default/compute/dhrystone_vm.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
Scenario:
benchmark: dhrystone
host: virtualmachine_1, virtualmachine_2
diff --git a/legacy/assets/testplan/default/compute/dpi_bm.yaml b/legacy/assets/testplan/default/compute/dpi_bm.yaml
index 14cb6d0d..deb6a874 100644
--- a/legacy/assets/testplan/default/compute/dpi_bm.yaml
+++ b/legacy/assets/testplan/default/compute/dpi_bm.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
Scenario:
benchmark: dpi
host: machine_1,machine_2
diff --git a/legacy/assets/testplan/default/compute/dpi_vm.yaml b/legacy/assets/testplan/default/compute/dpi_vm.yaml
index 10e86993..4fb16842 100644
--- a/legacy/assets/testplan/default/compute/dpi_vm.yaml
+++ b/legacy/assets/testplan/default/compute/dpi_vm.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
Scenario:
benchmark: dpi
1Run : virtualmachine_1, virtualmachine_2
diff --git a/legacy/assets/testplan/default/compute/ramspeed_bm.yaml b/legacy/assets/testplan/default/compute/ramspeed_bm.yaml
index ed8fc700..c758c18d 100644
--- a/legacy/assets/testplan/default/compute/ramspeed_bm.yaml
+++ b/legacy/assets/testplan/default/compute/ramspeed_bm.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
Scenario:
benchmark: ramspeed
host: machine_1, machine_2
diff --git a/legacy/assets/testplan/default/compute/ramspeed_vm.yaml b/legacy/assets/testplan/default/compute/ramspeed_vm.yaml
index a6a4363f..5f7ab831 100644
--- a/legacy/assets/testplan/default/compute/ramspeed_vm.yaml
+++ b/legacy/assets/testplan/default/compute/ramspeed_vm.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
Scenario:
benchmark: ramspeed
host: virtualmachine_1, virtualmachine_2
diff --git a/legacy/assets/testplan/default/compute/ssl_bm.yaml b/legacy/assets/testplan/default/compute/ssl_bm.yaml
index cc5a8903..bb2ee64a 100644
--- a/legacy/assets/testplan/default/compute/ssl_bm.yaml
+++ b/legacy/assets/testplan/default/compute/ssl_bm.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
Scenario:
benchmark: ssl
host: machine_1,machine_2
diff --git a/legacy/assets/testplan/default/compute/ssl_vm.yaml b/legacy/assets/testplan/default/compute/ssl_vm.yaml
index 37824896..ca18393b 100644
--- a/legacy/assets/testplan/default/compute/ssl_vm.yaml
+++ b/legacy/assets/testplan/default/compute/ssl_vm.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
Scenario:
benchmark: ssl
host: virtualmachine_1, virtualmachine_2
diff --git a/legacy/assets/testplan/default/compute/whetstone_bm.yaml b/legacy/assets/testplan/default/compute/whetstone_bm.yaml
index 3c128b60..1d3add50 100644
--- a/legacy/assets/testplan/default/compute/whetstone_bm.yaml
+++ b/legacy/assets/testplan/default/compute/whetstone_bm.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
Scenario:
benchmark: whetstone
host: machine_1, machine_2
diff --git a/legacy/assets/testplan/default/compute/whetstone_vm.yaml b/legacy/assets/testplan/default/compute/whetstone_vm.yaml
index 0f1e8748..4e0e1d80 100644
--- a/legacy/assets/testplan/default/compute/whetstone_vm.yaml
+++ b/legacy/assets/testplan/default/compute/whetstone_vm.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
Scenario:
benchmark: whetstone
host: virtualmachine_1, virtualmachine_1
diff --git a/legacy/assets/testplan/default/network/iperf_bm.yaml b/legacy/assets/testplan/default/network/iperf_bm.yaml
index 3aa8310d..3b10a383 100644
--- a/legacy/assets/testplan/default/network/iperf_bm.yaml
+++ b/legacy/assets/testplan/default/network/iperf_bm.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
Scenario:
benchmark: iperf
topology: Client and Server on different baremetal Compute nodes
diff --git a/legacy/assets/testplan/default/network/iperf_vm.yaml b/legacy/assets/testplan/default/network/iperf_vm.yaml
index 49bf13ad..e42dc0bb 100644
--- a/legacy/assets/testplan/default/network/iperf_vm.yaml
+++ b/legacy/assets/testplan/default/network/iperf_vm.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
Scenario:
benchmark: iperf
topology: Client and Server on ONE compute
diff --git a/legacy/assets/testplan/default/network/iperf_vm_2.yaml b/legacy/assets/testplan/default/network/iperf_vm_2.yaml
index c5b94715..8a1d1a0d 100644
--- a/legacy/assets/testplan/default/network/iperf_vm_2.yaml
+++ b/legacy/assets/testplan/default/network/iperf_vm_2.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
Scenario:
benchmark: iperf
topology: Client and Server on two different compute nodes
diff --git a/legacy/assets/testplan/default/storage/fio_bm.yaml b/legacy/assets/testplan/default/storage/fio_bm.yaml
index d0001ea2..d226b1af 100644
--- a/legacy/assets/testplan/default/storage/fio_bm.yaml
+++ b/legacy/assets/testplan/default/storage/fio_bm.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
Scenario:
benchmark: fio
host: machine_1, machine_2
diff --git a/legacy/assets/testplan/default/storage/fio_vm.yaml b/legacy/assets/testplan/default/storage/fio_vm.yaml
index 0e7f121b..b1cf3142 100644
--- a/legacy/assets/testplan/default/storage/fio_vm.yaml
+++ b/legacy/assets/testplan/default/storage/fio_vm.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
Scenario:
benchmark: fio
host: virtualmachine_1, virtualmachine_2
diff --git a/legacy/config/SampleHeat.yaml b/legacy/config/SampleHeat.yaml
index a42cdb79..05f4c0b5 100644
--- a/legacy/config/SampleHeat.yaml
+++ b/legacy/config/SampleHeat.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
heat_template_version: 2015-04-30
description: >
diff --git a/legacy/data/schema/test_bm_schema.yaml b/legacy/data/schema/test_bm_schema.yaml
index a7c27e3f..af97da70 100644
--- a/legacy/data/schema/test_bm_schema.yaml
+++ b/legacy/data/schema/test_bm_schema.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
type: map
mapping:
Scenario:
diff --git a/legacy/data/schema/test_vm_schema.yaml b/legacy/data/schema/test_vm_schema.yaml
index 524f8fe4..ca632e50 100644
--- a/legacy/data/schema/test_vm_schema.yaml
+++ b/legacy/data/schema/test_vm_schema.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
type: map
mapping:
Scenario:
diff --git a/legacy/data/test.yml b/legacy/data/test.yml
index 270e86fd..d27bce3c 100644
--- a/legacy/data/test.yml
+++ b/legacy/data/test.yml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
- hosts: sample_group_name
tasks:
- name: just an uname
diff --git a/legacy/data/testplan/bm_ping.yaml b/legacy/data/testplan/bm_ping.yaml
index 41d696e2..39c05aad 100644
--- a/legacy/data/testplan/bm_ping.yaml
+++ b/legacy/data/testplan/bm_ping.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
Scenario:
benchmark: dhrystone
diff --git a/legacy/data/testplan/bm_with_proxy.yaml b/legacy/data/testplan/bm_with_proxy.yaml
index 1d73300b..ef9e651e 100644
--- a/legacy/data/testplan/bm_with_proxy.yaml
+++ b/legacy/data/testplan/bm_with_proxy.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
Scenario:
benchmark: dhrystone
diff --git a/legacy/data/testplan/bm_without_proxy.yaml b/legacy/data/testplan/bm_without_proxy.yaml
index a9ae3b71..8a1f3b05 100644
--- a/legacy/data/testplan/bm_without_proxy.yaml
+++ b/legacy/data/testplan/bm_without_proxy.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
Scenario:
benchmark: dhrystone
diff --git a/legacy/data/testplan/vm.yaml b/legacy/data/testplan/vm.yaml
index 4c8453ca..9ba13b30 100644
--- a/legacy/data/testplan/vm.yaml
+++ b/legacy/data/testplan/vm.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
Scenario:
benchmark: iperf
topology: Client and Server on ONE compute
diff --git a/legacy/data/testplan/vm_error.yaml b/legacy/data/testplan/vm_error.yaml
index f13d3a00..d5cd6df6 100644
--- a/legacy/data/testplan/vm_error.yaml
+++ b/legacy/data/testplan/vm_error.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
+##############################################################################
Scenario:
topology: Client and Server on ONE compute
server : virtualmachine_1
diff --git a/legacy/docs/download/sample_config.yaml b/legacy/docs/download/sample_config.yaml
index 13f6d3fe..72c16bf4 100644
--- a/legacy/docs/download/sample_config.yaml
+++ b/legacy/docs/download/sample_config.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2016 ZTE Corporation and others.
+#
+# 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
+##############################################################################
## This is a sample Config.yaml file
#Scenario would define the test case scenario.
diff --git a/legacy/scripts/ref_results/compute_benchmarks_indices.py b/legacy/scripts/ref_results/compute_benchmarks_indices.py
index 0b6eae36..936b58df 100644
--- a/legacy/scripts/ref_results/compute_benchmarks_indices.py
+++ b/legacy/scripts/ref_results/compute_benchmarks_indices.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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 index_calculation import generic_index as get_index
from index_calculation import get_reference
from result_accum import result_concat as concat
diff --git a/legacy/scripts/ref_results/index_calculation.py b/legacy/scripts/ref_results/index_calculation.py
index 95c3c4a6..14c2d4d2 100644
--- a/legacy/scripts/ref_results/index_calculation.py
+++ b/legacy/scripts/ref_results/index_calculation.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
diff --git a/legacy/scripts/ref_results/network_benchmarks_indices.py b/legacy/scripts/ref_results/network_benchmarks_indices.py
index c19d18eb..67980ee9 100644
--- a/legacy/scripts/ref_results/network_benchmarks_indices.py
+++ b/legacy/scripts/ref_results/network_benchmarks_indices.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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 index_calculation import generic_index as get_index
from index_calculation import get_reference
from result_accum import result_concat as concat
diff --git a/legacy/scripts/ref_results/result_accum.py b/legacy/scripts/ref_results/result_accum.py
index 6cd55886..6eb169e8 100644
--- a/legacy/scripts/ref_results/result_accum.py
+++ b/legacy/scripts/ref_results/result_accum.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
import json
diff --git a/legacy/scripts/ref_results/storage_benchmarks_indices.py b/legacy/scripts/ref_results/storage_benchmarks_indices.py
index a5aef638..e87fe36b 100644
--- a/legacy/scripts/ref_results/storage_benchmarks_indices.py
+++ b/legacy/scripts/ref_results/storage_benchmarks_indices.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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 index_calculation import generic_index as get_index
from index_calculation import get_reference
from result_accum import result_concat as concat
diff --git a/legacy/tests/api/test_server.py b/legacy/tests/api/test_server.py
index e9364d3d..bf316f5d 100644
--- a/legacy/tests/api/test_server.py
+++ b/legacy/tests/api/test_server.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
import time
diff --git a/legacy/tests/cli_test.py b/legacy/tests/cli_test.py
index 0f3e4158..5b7eac65 100644
--- a/legacy/tests/cli_test.py
+++ b/legacy/tests/cli_test.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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 pytest
import mock
import os
diff --git a/legacy/tests/create_zones_test.py b/legacy/tests/create_zones_test.py
index dcfff5ec..1aa37477 100644
--- a/legacy/tests/create_zones_test.py
+++ b/legacy/tests/create_zones_test.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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 pytest
import mock
from mock import Mock, MagicMock
diff --git a/legacy/tests/driver_test.py b/legacy/tests/driver_test.py
index 432ce1ae..abe8cfbb 100644
--- a/legacy/tests/driver_test.py
+++ b/legacy/tests/driver_test.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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 pytest
import mock
from qtip.utils.driver import Driver
diff --git a/legacy/tests/functional/yaml_schema_test.py b/legacy/tests/functional/yaml_schema_test.py
index a975dca6..3c7994a5 100644
--- a/legacy/tests/functional/yaml_schema_test.py
+++ b/legacy/tests/functional/yaml_schema_test.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
import os.path
from pykwalify.core import Core
diff --git a/legacy/tests/helper/perftest.yaml b/legacy/tests/helper/perftest.yaml
index 26c58452..57948b62 100644
--- a/legacy/tests/helper/perftest.yaml
+++ b/legacy/tests/helper/perftest.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 taseer94@gmail.com and others.
+#
+# 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
+##############################################################################
---
tests:
diff --git a/legacy/tests/helper/suite.yaml b/legacy/tests/helper/suite.yaml
index 718ae440..84bf9239 100644
--- a/legacy/tests/helper/suite.yaml
+++ b/legacy/tests/helper/suite.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 taseer94@gmail.com and others.
+#
+# 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
+##############################################################################
---
tests:
diff --git a/legacy/tests/helper/version.yaml b/legacy/tests/helper/version.yaml
index b23f16f2..59be4256 100644
--- a/legacy/tests/helper/version.yaml
+++ b/legacy/tests/helper/version.yaml
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 taseer94@gmail.com and others.
+#
+# 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
+##############################################################################
---
tests:
diff --git a/legacy/tests/spawn_vm_test.py b/legacy/tests/spawn_vm_test.py
index ba237378..ac58db27 100644
--- a/legacy/tests/spawn_vm_test.py
+++ b/legacy/tests/spawn_vm_test.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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 pytest
import mock
from mock import Mock, MagicMock
diff --git a/legacy/utils/dashboard/pushtoDB.py b/legacy/utils/dashboard/pushtoDB.py
index 427d39c4..ce54aebd 100644
--- a/legacy/utils/dashboard/pushtoDB.py
+++ b/legacy/utils/dashboard/pushtoDB.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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 requests
import json
import datetime
diff --git a/legacy/utils/report/get_indices.py b/legacy/utils/report/get_indices.py
index 91219c0b..42db6584 100644
--- a/legacy/utils/report/get_indices.py
+++ b/legacy/utils/report/get_indices.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
diff --git a/legacy/utils/report/get_results.py b/legacy/utils/report/get_results.py
index 23fd5383..6df88235 100644
--- a/legacy/utils/report/get_results.py
+++ b/legacy/utils/report/get_results.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
import json
diff --git a/legacy/utils/report/qtip_graph.py b/legacy/utils/report/qtip_graph.py
index acbda40c..68ed660f 100644
--- a/legacy/utils/report/qtip_graph.py
+++ b/legacy/utils/report/qtip_graph.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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 matplotlib
import matplotlib.pyplot as plt
import numpy as np
diff --git a/legacy/utils/report/qtip_report.py b/legacy/utils/report/qtip_report.py
index 6809e892..1097df5f 100644
--- a/legacy/utils/report/qtip_report.py
+++ b/legacy/utils/report/qtip_report.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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 reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer, Image
from reportlab.lib.styles import getSampleStyleSheet
from reportlab.lib.units import inch
diff --git a/legacy/utils/transform/dpi_transform.py b/legacy/utils/transform/dpi_transform.py
index ee29d8e2..bc837311 100644
--- a/legacy/utils/transform/dpi_transform.py
+++ b/legacy/utils/transform/dpi_transform.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
import pickle
import datetime
diff --git a/legacy/utils/transform/final_report.py b/legacy/utils/transform/final_report.py
index 274742d4..1d7c3001 100644
--- a/legacy/utils/transform/final_report.py
+++ b/legacy/utils/transform/final_report.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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 pickle
import json
import datetime
diff --git a/legacy/utils/transform/fio_transform.py b/legacy/utils/transform/fio_transform.py
index 5ecac823..e8de2f9a 100755..100644
--- a/legacy/utils/transform/fio_transform.py
+++ b/legacy/utils/transform/fio_transform.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
import pickle
import os
diff --git a/legacy/utils/transform/iperf_transform.py b/legacy/utils/transform/iperf_transform.py
index b52e4634..c5eef6f5 100644
--- a/legacy/utils/transform/iperf_transform.py
+++ b/legacy/utils/transform/iperf_transform.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
import datetime
import pickle
diff --git a/legacy/utils/transform/ramspeed_transform.py b/legacy/utils/transform/ramspeed_transform.py
index 960f84fc..9aa713ff 100644
--- a/legacy/utils/transform/ramspeed_transform.py
+++ b/legacy/utils/transform/ramspeed_transform.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
import pickle
import datetime
diff --git a/legacy/utils/transform/ssl_transform.py b/legacy/utils/transform/ssl_transform.py
index de84d24b..24b696e5 100644
--- a/legacy/utils/transform/ssl_transform.py
+++ b/legacy/utils/transform/ssl_transform.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
import pickle
import datetime
diff --git a/legacy/utils/transform/ubench_transform.py b/legacy/utils/transform/ubench_transform.py
index ab5fe171..fe687118 100644
--- a/legacy/utils/transform/ubench_transform.py
+++ b/legacy/utils/transform/ubench_transform.py
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# 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
import json
import pickle