aboutsummaryrefslogtreecommitdiffstats
path: root/legacy
diff options
context:
space:
mode:
Diffstat (limited to 'legacy')
-rw-r--r--legacy/__init__.py8
-rw-r--r--legacy/api/cmd/__init__.py0
-rw-r--r--legacy/api/cmd/server.py31
-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.py10
-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_info_pbook.yaml42
-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.yaml58
-rw-r--r--legacy/docs/overview/index.rst14
-rw-r--r--legacy/docs/overview/overview.rst21
-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
72 files changed, 664 insertions, 43 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/cmd/__init__.py b/legacy/api/cmd/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/legacy/api/cmd/__init__.py
diff --git a/legacy/api/cmd/server.py b/legacy/api/cmd/server.py
new file mode 100644
index 00000000..eea45ad3
--- /dev/null
+++ b/legacy/api/cmd/server.py
@@ -0,0 +1,31 @@
+##############################################################################
+# Copyright (c) 2016 ZTE Corp 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 import Flask
+from flask_restful import Api
+from flask_restful_swagger import swagger
+
+import legacy.api.router.mapper as mapper
+
+app = Flask(__name__)
+api = swagger.docs(Api(app), apiVersion='0.1', description='QTIP API specs')
+
+
+def add_routers():
+ for (handler, url) in mapper.mappers:
+ api.add_resource(handler, url)
+
+
+def main():
+ add_routers()
+ app.run(host='0.0.0.0')
+
+
+if __name__ == "__main__":
+ main()
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 8839f3f5..470d18e2 100644
--- a/legacy/api/router/mapper.py
+++ b/legacy/api/router/mapper.py
@@ -1,4 +1,12 @@
-from legacy.api.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.job_handler import Job, JobList
mappers = [
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_info_pbook.yaml b/legacy/assets/perftest/common/sys_info_pbook.yaml
deleted file mode 100644
index 5c2d8f79..00000000
--- a/legacy/assets/perftest/common/sys_info_pbook.yaml
+++ /dev/null
@@ -1,42 +0,0 @@
- - name: Epel Release install when CentOS
- shell: sudo yum install epel-release -y
- when: ansible_os_family == "RedHat"
-
- - name: Inxi install when CentOS
- shell: sudo yum install inxi -y
- when: ansible_os_family == "RedHat"
-
- - name: Software Properties Common
- shell: sudo apt-get install software-properties-common -y
- when: ansible_os_family == "Debian"
-
- - name: adding trusty-backport main repo
- shell: sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse"
- when: ansible_os_family == "Debian"
-
- - name: adding trusty main repo
- shell: sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse"
- when: ansible_os_family == "Debian"
-
- - name: system info collection tool install when Ubuntu
- shell: sudo apt-get update && apt-get install inxi -y
- when: ansible_os_family == "Debian"
-
- - name: Install ansible copy dependencies if remote host has selinux enabled
- shell: sudo yum install libselinux-python -y
- when: ansible_os_family == "RedHat"
-
- - name: Install ansiblle copy dependencies if remote host has selinux enaled
- shell: sudo apt-get install python-selinux -y
- when: ansible_os_family == "Debian"
-
- - name: system_info script copy
- copy: src=../etc/info_collect.py dest={{home_dir.stdout}}/qtip_result/
-
- - name: collecting system informaton for non-network test cases
- shell: cd $HOME/qtip_result && sudo python info_collect.py c
- when: not network
-
- - name: collecting system information for network test cases
- shell: cd $HOME/qtip_result && sudo python info_collect.py n
- when: network
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
new file mode 100644
index 00000000..72c16bf4
--- /dev/null
+++ b/legacy/docs/download/sample_config.yaml
@@ -0,0 +1,58 @@
+##############################################################################
+# 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.
+#The benchmark key contains the benchmark to run such as dhrystone,whetstone,dpi,ssh etc.
+# Host and server list the different machines on which the benchmark would run.
+# On machines listed within hosts, the benchmarks would run in parallel.
+# On machines listed within server, the benchmarks would run when the benechmarks running on hosts have been completed.
+# This has been used to control the folow of the testcase. For example, running the testcases on a vm vs hostmachin, we would like to run the test case serially. It should run first on the host machine and then on the vm. This testcase flow control could be used for other testcases to be developed such as those for networking.
+Scenario:
+ benchmark: dhrystone
+ host: machine_1, machine_2, virtualmachine_1
+ server:
+
+
+#Context would define the environment on which to run:
+#Host Machine keys would contain Host_Machines/ Baremetal machines to run the benchmarks on
+#e.g in Host Machine , machine_1 and machine_2 are the bare metal machines. For each baremetal machine its IP(which should be reachable from the location on which you run QTIP), passwords and its role(host or server). If your installer is 'fuel' or 'compass' and you left baremetal machine IP empty,qtip will get compute node ip from installer automaticly.
+Context:
+ Host_Machines:
+ machine_1:
+ ip: 172.18.0.16
+ pw: Op3nStack
+ role: host
+ Virtual_Machines:
+ virtualmachine_1:
+ availability_zone: nova
+ public_network: 'net04_ext'
+ OS_image: QTIP_CentOS
+ flavor: m1.large
+ role: server
+#Proxy_Environment key was optional.If all the Machines could access the public network, no need to define Proxy_Environment.Could be used later for getting http,https proxy infos which would be setted on all the Host_Manchines and Virtual_Machines.
+ Proxy_Environment:
+ http_proxy: http://10.20.0.1:8118
+ https_proxy: http://10.20.0.1:8118
+ no_proxy: localhost,127.0.0.1,10.20.*,192.168.*
+
+# A general description of the testcase. Could be used later for reports.
+Test_Description:
+ Test_category: "Compute"
+ Benchmark: "dhrystone"
+ Overview: >
+ ''' This test will run the dhrystone benchmark in serial on machine_1 and machine_2.\n
+ if you wish to add a virtual machine add the following information under the Virtual_Machine tag
+
+ virtualmachine_1:
+ availability_zone:
+ public_network:
+ OS_image:
+ flavor:
+ role: '''
diff --git a/legacy/docs/overview/index.rst b/legacy/docs/overview/index.rst
new file mode 100644
index 00000000..9a387360
--- /dev/null
+++ b/legacy/docs/overview/index.rst
@@ -0,0 +1,14 @@
+.. This work is licensed under a Creative Commons Attribution 4.0 International License.
+.. http://creativecommons.org/licenses/by/4.0
+.. (c) 2016 ZTE Corp.
+
+
+
+#####################
+QTIP Project Overview
+#####################
+
+.. toctree::
+ :maxdepth: 2
+
+ ./overview.rst
diff --git a/legacy/docs/overview/overview.rst b/legacy/docs/overview/overview.rst
new file mode 100644
index 00000000..4fd42356
--- /dev/null
+++ b/legacy/docs/overview/overview.rst
@@ -0,0 +1,21 @@
+.. This work is licensed under a Creative Commons Attribution 4.0 International License.
+.. http://creativecommons.org/licenses/by/4.0
+.. (c) 2015 Dell Inc.
+.. (c) 2016 ZTE Corp.
+
+********
+Overview
+********
+
+.. _QTIP: https://wiki.opnfv.org/platform_performance_benchmarking
+
+QTIP_ is an OPNFV Project.
+
+QTIP aims to benchmark OPNFV platforms through a "Bottom up" approach, testing
+bare-metal components first.
+
+The overall problem this project tries to solve is the general
+characterization of an OPNFV platform. It will focus on general performance
+questions that are common to the platform itself, or applicable to multiple
+OPNFV use cases. QTIP will provide the capability to quantify a platform's
+performance behavior in a standardized, rigorous, and open way.
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