diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2016-11-17 13:52:03 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2016-11-21 10:36:52 +0800 |
commit | 539405270b57a5ee7409a164a38b9fdb0b3624e7 (patch) | |
tree | c8f9a6fd5d61b8060802ec06bba5f9c94fe66bcb /tests | |
parent | caa171ac3796bbeacfdac0939713eedfad85e3c3 (diff) |
Architecture evolution skeleton
- benchmarks will be driven by qtip.runner
- qtip.runner is used by both qtip.cli and qtip.api
- unit test for each module will be placed under tests/unit
- functional tests will be moved to tests/functional
- data as testing sample will be moved to tests/data
NOTE: this patch moves files only, it may fails many tests. To be
followed up in next step.
JIRA: QTIP-148
Change-Id: I27e8169a74783970a1f7818456eb76a7311fb60c
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/__init__.py | 0 | ||||
-rw-r--r-- | tests/data/output/hosts (renamed from tests/output/hosts) | 0 | ||||
-rw-r--r-- | tests/data/schema/test_bm_schema.yaml (renamed from tests/schema/test_bm_schema.yaml) | 0 | ||||
-rw-r--r-- | tests/data/schema/test_vm_schema.yaml (renamed from tests/schema/test_vm_schema.yaml) | 0 | ||||
-rw-r--r-- | tests/data/test_plan/bm_ping.yaml (renamed from tests/test_case/bm_ping.yaml) | 0 | ||||
-rw-r--r-- | tests/data/test_plan/bm_with_proxy.yaml (renamed from tests/test_case/bm_with_proxy.yaml) | 0 | ||||
-rw-r--r-- | tests/data/test_plan/bm_without_proxy.yaml (renamed from tests/test_case/bm_without_proxy.yaml) | 0 | ||||
-rw-r--r-- | tests/data/test_plan/vm.yaml (renamed from tests/test_case/vm.yaml) | 0 | ||||
-rw-r--r-- | tests/data/test_plan/vm_error.yaml (renamed from tests/test_case/vm_error.yaml) | 0 | ||||
-rw-r--r-- | tests/functional/__init__.py | 0 | ||||
-rw-r--r-- | tests/functional/yaml_schema_test.py (renamed from tests/yaml_schema_test.py) | 0 | ||||
-rw-r--r-- | tests/unit/__init__.py | 0 | ||||
-rw-r--r-- | tests/unit/api/__init__.py | 0 | ||||
-rw-r--r-- | tests/unit/api/qtip_server_test.py (renamed from tests/qtip_server_test.py) | 0 | ||||
-rw-r--r-- | tests/unit/cli/__init__.py | 0 | ||||
-rw-r--r-- | tests/unit/runner/__init__.py | 0 | ||||
-rw-r--r-- | tests/unit/runner/perftest_test.py | 13 | ||||
-rw-r--r-- | tests/unit/runner/suite_test.py | 13 | ||||
-rw-r--r-- | tests/unit/runner/test_plan_test.py | 13 | ||||
-rw-r--r-- | tests/unit/utils/__init__.py | 0 | ||||
-rw-r--r-- | tests/unit/utils/ansible_api_test.py (renamed from tests/ansible_api_test.py) | 0 | ||||
-rw-r--r-- | tests/unit/utils/args_handler_test.py (renamed from tests/args_handler_test.py) | 0 | ||||
-rw-r--r-- | tests/unit/utils/cli_test.py (renamed from tests/cli_test.py) | 0 | ||||
-rw-r--r-- | tests/unit/utils/create_zones_test.py (renamed from tests/create_zones_test.py) | 0 | ||||
-rw-r--r-- | tests/unit/utils/driver_test.py (renamed from tests/driver_test.py) | 0 | ||||
-rw-r--r-- | tests/unit/utils/env_setup_test.py (renamed from tests/env_setup_test.py) | 0 | ||||
-rw-r--r-- | tests/unit/utils/spawn_vm_test.py (renamed from tests/spawn_vm_test.py) | 0 |
27 files changed, 39 insertions, 0 deletions
diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tests/__init__.py diff --git a/tests/output/hosts b/tests/data/output/hosts index 9b47df0e..9b47df0e 100644 --- a/tests/output/hosts +++ b/tests/data/output/hosts diff --git a/tests/schema/test_bm_schema.yaml b/tests/data/schema/test_bm_schema.yaml index a7c27e3f..a7c27e3f 100644 --- a/tests/schema/test_bm_schema.yaml +++ b/tests/data/schema/test_bm_schema.yaml diff --git a/tests/schema/test_vm_schema.yaml b/tests/data/schema/test_vm_schema.yaml index 524f8fe4..524f8fe4 100644 --- a/tests/schema/test_vm_schema.yaml +++ b/tests/data/schema/test_vm_schema.yaml diff --git a/tests/test_case/bm_ping.yaml b/tests/data/test_plan/bm_ping.yaml index 41d696e2..41d696e2 100644 --- a/tests/test_case/bm_ping.yaml +++ b/tests/data/test_plan/bm_ping.yaml diff --git a/tests/test_case/bm_with_proxy.yaml b/tests/data/test_plan/bm_with_proxy.yaml index 1d73300b..1d73300b 100644 --- a/tests/test_case/bm_with_proxy.yaml +++ b/tests/data/test_plan/bm_with_proxy.yaml diff --git a/tests/test_case/bm_without_proxy.yaml b/tests/data/test_plan/bm_without_proxy.yaml index a9ae3b71..a9ae3b71 100644 --- a/tests/test_case/bm_without_proxy.yaml +++ b/tests/data/test_plan/bm_without_proxy.yaml diff --git a/tests/test_case/vm.yaml b/tests/data/test_plan/vm.yaml index 4c8453ca..4c8453ca 100644 --- a/tests/test_case/vm.yaml +++ b/tests/data/test_plan/vm.yaml diff --git a/tests/test_case/vm_error.yaml b/tests/data/test_plan/vm_error.yaml index f13d3a00..f13d3a00 100644 --- a/tests/test_case/vm_error.yaml +++ b/tests/data/test_plan/vm_error.yaml diff --git a/tests/functional/__init__.py b/tests/functional/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tests/functional/__init__.py diff --git a/tests/yaml_schema_test.py b/tests/functional/yaml_schema_test.py index a975dca6..a975dca6 100644 --- a/tests/yaml_schema_test.py +++ b/tests/functional/yaml_schema_test.py diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tests/unit/__init__.py diff --git a/tests/unit/api/__init__.py b/tests/unit/api/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tests/unit/api/__init__.py diff --git a/tests/qtip_server_test.py b/tests/unit/api/qtip_server_test.py index 96544c95..96544c95 100644 --- a/tests/qtip_server_test.py +++ b/tests/unit/api/qtip_server_test.py diff --git a/tests/unit/cli/__init__.py b/tests/unit/cli/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tests/unit/cli/__init__.py diff --git a/tests/unit/runner/__init__.py b/tests/unit/runner/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tests/unit/runner/__init__.py diff --git a/tests/unit/runner/perftest_test.py b/tests/unit/runner/perftest_test.py new file mode 100644 index 00000000..798afadd --- /dev/null +++ b/tests/unit/runner/perftest_test.py @@ -0,0 +1,13 @@ +############################################################################## +# 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 +############################################################################## + + +class TestPerfTest: + def test_list(self): + assert True diff --git a/tests/unit/runner/suite_test.py b/tests/unit/runner/suite_test.py new file mode 100644 index 00000000..a2023cf8 --- /dev/null +++ b/tests/unit/runner/suite_test.py @@ -0,0 +1,13 @@ +############################################################################## +# 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 +############################################################################## + + +class TestSuite: + def test_list(self): + assert True diff --git a/tests/unit/runner/test_plan_test.py b/tests/unit/runner/test_plan_test.py new file mode 100644 index 00000000..81f618c7 --- /dev/null +++ b/tests/unit/runner/test_plan_test.py @@ -0,0 +1,13 @@ +############################################################################## +# 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 +############################################################################## + + +class TestTestPlan: + def test_list(self): + assert True diff --git a/tests/unit/utils/__init__.py b/tests/unit/utils/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tests/unit/utils/__init__.py diff --git a/tests/ansible_api_test.py b/tests/unit/utils/ansible_api_test.py index 6b1afb44..6b1afb44 100644 --- a/tests/ansible_api_test.py +++ b/tests/unit/utils/ansible_api_test.py diff --git a/tests/args_handler_test.py b/tests/unit/utils/args_handler_test.py index b67fd993..b67fd993 100644 --- a/tests/args_handler_test.py +++ b/tests/unit/utils/args_handler_test.py diff --git a/tests/cli_test.py b/tests/unit/utils/cli_test.py index 86dd6b98..86dd6b98 100644 --- a/tests/cli_test.py +++ b/tests/unit/utils/cli_test.py diff --git a/tests/create_zones_test.py b/tests/unit/utils/create_zones_test.py index 8b1e97cc..8b1e97cc 100644 --- a/tests/create_zones_test.py +++ b/tests/unit/utils/create_zones_test.py diff --git a/tests/driver_test.py b/tests/unit/utils/driver_test.py index 432ce1ae..432ce1ae 100644 --- a/tests/driver_test.py +++ b/tests/unit/utils/driver_test.py diff --git a/tests/env_setup_test.py b/tests/unit/utils/env_setup_test.py index e28c6a18..e28c6a18 100644 --- a/tests/env_setup_test.py +++ b/tests/unit/utils/env_setup_test.py diff --git a/tests/spawn_vm_test.py b/tests/unit/utils/spawn_vm_test.py index ba237378..ba237378 100644 --- a/tests/spawn_vm_test.py +++ b/tests/unit/utils/spawn_vm_test.py |